TensorShape Implicit  Conversion Operators

Definition

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

Overload List

Implicit Conversion (Int32 to TensorShape)

Implicitly converts a single integer to a TensorShape.
C#
public static implicit operator TensorShape (
	int dimension
)

Parameters

dimension  Int32
An integer that contains the length of the dimension.

Return Value

TensorShape

Implicit Conversion (Int32[] to TensorShape)

Implicitly converts an integer array to a TensorShape.
C#
public static implicit operator TensorShape (
	int[] dimensions
)

Parameters

dimensions  Int32[]
An integer array that contains the length of each dimension.

Return Value

TensorShape

Implicit Conversion (ValueTuple<Int32, Int32> to TensorShape)

Implicitly converts an integer tuple to a TensorShape.
C#
public static implicit operator TensorShape (
	(int , int ) dimensions
)

Parameters

dimensions  ValueTuple<Int32, Int32>
An integer tuple that contains the length of each dimension.

Return Value

TensorShape

Implicit Conversion (ValueTuple<Int32, Int32, Int32> to TensorShape)

Implicitly converts an integer tuple to a TensorShape.
C#
public static implicit operator TensorShape (
	(int , int , int ) dimensions
)

Parameters

dimensions  ValueTuple<Int32, Int32, Int32>
An integer tuple that contains the length of each dimension.

Return Value

TensorShape

Implicit Conversion (ValueTuple<Int32, Int32, Int32, Int32> to TensorShape)

Implicitly converts an integer tuple to a TensorShape.
C#
public static implicit operator TensorShape (
	(int , int , int , int ) dimensions
)

Parameters

dimensions  ValueTuple<Int32, Int32, Int32, Int32>
An integer tuple that contains the length of each dimension.

Return Value

TensorShape

Implicit Conversion (ValueTuple<Int32, Int32, Int32, Int32, Int32> to TensorShape)

Implicitly converts an integer tuple to a TensorShape.
C#
public static implicit operator TensorShape (
	(int , int , int , int , int ) dimensions
)

Parameters

dimensions  ValueTuple<Int32, Int32, Int32, Int32, Int32>
An integer tuple that contains the length of each dimension.

Return Value

TensorShape

Implicit Conversion (ValueTuple<Int32, Int32, Int32, Int32, Int32, Int32> to TensorShape)

Implicitly converts an integer tuple to a TensorShape.
C#
public static implicit operator TensorShape (
	(int , int , int , int , int , int ) dimensions
)

Parameters

dimensions  ValueTuple<Int32, Int32, Int32, Int32, Int32, Int32>
An integer tuple that contains the length of each dimension.

Return Value

TensorShape

Implicit Conversion (ValueTuple<Int32, Int32, Int32, Int32, Int32, Int32, Int32> to TensorShape)

Implicitly converts an integer tuple to a TensorShape.
C#
public static implicit operator TensorShape (
	(int , int , int , int , int , int , int ) dimensions
)

Parameters

dimensions  ValueTuple<Int32, Int32, Int32, Int32, Int32, Int32, Int32>
An integer tuple that contains the length of each dimension.

Return Value

TensorShape

See Also