ILNumerics - Technical Application Development
Assembly: ILNumerics.numpy (in ILNumerics.numpy.dll) Version: 5.5.0.0 (5.5.7503.3146)
New array based on this array with the same number of elements but reordered dimensions.
[numpy API] Returns a version of this array having the dimensions reordered according to axes.
[ILNumerics numpy Module]
Namespace: ILNumerics
Assembly: ILNumerics.numpy (in ILNumerics.numpy.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax
public static RetT transpose<T1, LocalT, InT, OutT, RetT, StorageT>( this ConcreteArray<T1, LocalT, InT, OutT, RetT, StorageT> A, InArray<long> axes ) where LocalT : Mutable<T1, LocalT, InT, OutT, RetT, StorageT> where InT : Immutable<T1, LocalT, InT, OutT, RetT, StorageT> where OutT : Mutable<T1, LocalT, InT, OutT, RetT, StorageT> where RetT : ConcreteRetArray<T1, LocalT, InT, OutT, RetT, StorageT> where StorageT : new(), BaseStorage<T1, LocalT, InT, OutT, RetT, StorageT>
Parameters
- A
- Type: ILNumerics.Core.ArraysConcreteArrayT1, LocalT, InT, OutT, RetT, StorageT
- axes
- Type: ILNumericsInArrayInt64
The new dimension indices order.
Type Parameters
- T1
- LocalT
- InT
- OutT
- RetT
- StorageT
Return Value
Type: RetTNew array based on this array with the same number of elements but reordered dimensions.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type ConcreteArrayT1, LocalT, InT, OutT, RetT, StorageT. 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
This function does not alter the source array. Instead, it creates a lazy copy and reorders the dimensions on the copy.
[ILNumerics numpy Module]
See Also
Reference
Size.SwapDimensions