ILNumerics - Technical Application Development
Assembly: ILNumerics.numpy (in ILNumerics.numpy.dll) Version: 5.5.0.0 (5.5.7503.3146)
New array with the same shape as this array, having the element type converted to Tout.
[numpy API] Create a new array from generic input array, specify element type and storage order. This function is provided for compatibility with generic array types.
[ILNumerics numpy Module]
Namespace: ILNumerics
Assembly: ILNumerics.numpy (in ILNumerics.numpy.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax
public static RetArray<Tout> astype<Tin, Tout>( this BaseArray<Tin> A, Nullable<StorageOrders> order = null ) where Tin : struct, new() where Tout : struct, new()
Parameters
- A
- Type: ILNumericsBaseArrayTin
This array. - order (Optional)
- Type: SystemNullableStorageOrders
[Optional] Storage order for the target array. Choices: null (default) - auto, ColumnMajor or RowMajor.
Type Parameters
- Tin
- The element type of the input. Must be a non-nullable value type.
- Tout
- The target element type. Must be a non-nullable value type.
Return Value
Type: RetArrayToutNew array with the same shape as this array, having the element type converted to Tout.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type BaseArrayTin. 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).Remarks
[ILNumerics numpy Module]
See Also