TensorShape.Insert Method

Definition

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

Overload List

Insert(Index, Int32) Inserts a dimension of the specified size at the specified position in the current shape.
Insert(Int32, Int32) Inserts a dimension of the specified size at the specified position in the current shape.

Insert(Index, Int32)

Inserts a dimension of the specified size at the specified position in the current shape.
C#
public TensorShape Insert(
	Index position,
	int size
)

Parameters

position  Index
The zero-based index of the new dimension.
size  Int32
The size of the added dimension.

Return Value

TensorShape
A new tensor shape with a dimension of size size inserted at position position.

Insert(Int32, Int32)

Inserts a dimension of the specified size at the specified position in the current shape.
C#
public TensorShape Insert(
	int position,
	int size
)

Parameters

position  Int32
The zero-based index of the new dimension.
size  Int32
The size of the added dimension.

Return Value

TensorShape
A new tensor shape with a dimension of size size inserted at position position.

See Also