Tensor<T>.Insert Axis Method
Definition
Namespace: Numerics.NET.Tensors
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.3
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.3
Overload List
Insert | Inserts a singleton dimension at the specified position. |
Insert | Inserts a singleton dimension at the specified position. |
InsertAxis(Index)
Inserts a singleton dimension at the specified position.
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.
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.