Tensor Shape.With Dimension Method
Definition
Namespace: Numerics.NET.Tensors
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.5
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.5
Overload List
| With | Replaces the specified dimensions with the specified size. |
| With | Returns a tensor shape that has one dimension changed from this shape. |
| With | Returns a tensor shape that has one dimension changed from this shape. |
WithDimension(Axes, Int32)
Replaces the specified dimensions with the specified size.
public TensorShape WithDimension(
Axes axes,
int size
)Parameters
Return Value
TensorShapeA new tensor shape with the dimensions specified by axes replaced with size.
WithDimension(Index, Int32)
Returns a tensor shape that has one dimension
changed from this shape.
public TensorShape WithDimension(
Index axis,
int length
)Parameters
Return Value
TensorShapeA tensor shape with the same dimensions as this shape, except along the axis with index axis which has size length.
Exceptions
| Argument | axis is less than zero or greather than or equal to the rank of the tensor shape. |
WithDimension(Int32, Int32)
Returns a tensor shape that has one dimension
changed from this shape.
public TensorShape WithDimension(
int axis,
int length
)Parameters
Return Value
TensorShapeA tensor shape with the same dimensions as this shape, except along the axis with index axis which has size length.
Exceptions
| Argument | axis is less than zero or greather than or equal to the rank of the tensor shape. |