ILNumerics Ultimate VS

ExtensionMethodsswapaxesT1, LocalT, InT, OutT, RetT, StorageT Method

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
[numpy API] Returns a similar array having two axes exchanged.

[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 swapaxes<T1, LocalT, InT, OutT, RetT, StorageT>(
	this ConcreteArray<T1, LocalT, InT, OutT, RetT, StorageT> A,
	uint axis1,
	uint axis2
)
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
The source array. Will not be changed.
axis1
Type: SystemUInt32
The first axis.
axis2
Type: SystemUInt32
The second axis.

Type Parameters

T1
LocalT
InT
OutT
RetT
StorageT

Return Value

Type: RetT
An array having the same number of dimensions, number of elements and elements as A with dimensions axis1 and axis2 exchanged.

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).
Exceptions

ExceptionCondition
ArgumentExceptionif axis1 or axis2 are out of range of [!:A.Size.NumberOfDimensions].
Remarks

[ILNumerics numpy Module]

See Also

Reference