ILNumerics Ultimate VSExtensionMethodstransposeT1, LocalT, InT, OutT, RetT, StorageT Method (ConcreteArrayT1, LocalT, InT, OutT, RetT, StorageT, InArrayInt64)ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
[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.3.0.0 (5.3.7131.2749)
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: RetT
New 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