Tensor<T>.InsertAxis Method

Definition

Namespace: Numerics.NET.Tensors
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.3

Overload List

InsertAxis(Index) Inserts a singleton dimension at the specified position.
InsertAxis(Int32) Inserts a singleton dimension at the specified position.

InsertAxis(Index)

Inserts a singleton dimension at the specified position.
C#
public Tensor<T> InsertAxis(
	Index axis
)

Parameters

axis  Index
The axis where the dimension should be inserted.

Return Value

Tensor<T>
A new tensor that holds the same data but has a singleton dimension inserted at axis.

InsertAxis(Int32)

Inserts a singleton dimension at the specified position.
C#
public Tensor<T> InsertAxis(
	int axis
)

Parameters

axis  Int32
The axis where the dimension should be inserted.

Return Value

Tensor<T>
A new tensor that holds the same data but has a singleton dimension inserted at axis.

See Also