ILNumerics Ultimate VS

ExtensionMethodsGetValueT Method (BaseArrayBaseArray)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Retrieves a clone of the value of a scalar (0-dim) cell array as an array. Supports deep indexing.

[ILNumerics Core Module]

Namespace:  ILNumerics
Assembly:  ILNumerics.Core (in ILNumerics.Core.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax

public static T GetValue<T>(
	this BaseArray<BaseArray> A
)

Parameters

A
Type: ILNumericsBaseArrayBaseArray
The cell instance.

Type Parameters

T

Return Value

Type: T
Copy/clone of the element value. Scalar values are not wrapped and returned as their natural type T.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type BaseArrayBaseArray. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions

ExceptionCondition
IndexOutOfRangeExceptionif A is not a 0-dimensional (numpy) scalar.
Remarks

This functions retrieves the value of the only element of a 0-dim scalar cell array.

The type of the array returned corresponds to the type of the element stored. Use GetValueT(BaseArrayBaseArray) in order to retrieve the element as its natural type. IsTypeOfCellT(ConcreteArrayBaseArray, Cell, InCell, OutCell, RetCell, CellStorage, Int64) can be used to inspect the element type.

Note, that the value addressed is not wrapped into a scalar cell before returning as would be the case for indexers on cells, which always return cells. Thus the return value might be a cell or an ILNumerics array of any element type.

[ILNumerics Core Module]

See Also

Reference

ExtensionMethods.ToRetArray``1(BaseArray)