VectorDataViewType Constructors

Definition

Overloads

VectorDataViewType(PrimitiveDataViewType, ImmutableArray<Int32>)

Constructs a potentially multi-dimensional vector type.

VectorDataViewType(PrimitiveDataViewType, Int32)

Constructs a new single-dimensional vector type.

VectorDataViewType(PrimitiveDataViewType, Int32[])

Constructs a potentially multi-dimensional vector type.

VectorDataViewType(PrimitiveDataViewType, ImmutableArray<Int32>)

Constructs a potentially multi-dimensional vector type.

public VectorDataViewType (Microsoft.ML.Data.PrimitiveDataViewType itemType, System.Collections.Immutable.ImmutableArray<int> dimensions);
new Microsoft.ML.Data.VectorDataViewType : Microsoft.ML.Data.PrimitiveDataViewType * System.Collections.Immutable.ImmutableArray<int> -> Microsoft.ML.Data.VectorDataViewType
Public Sub New (itemType As PrimitiveDataViewType, dimensions As ImmutableArray(Of Integer))

Parameters

itemType
PrimitiveDataViewType

The type of the items contained in the vector.

dimensions
ImmutableArray<Int32>

The dimensions. Note that, like Dimensions, must be non-empty, with all non-negative values. Also, because Size is the product of Dimensions, the result of multiplying all these values together must not overflow Int32.

Applies to

VectorDataViewType(PrimitiveDataViewType, Int32)

Constructs a new single-dimensional vector type.

public VectorDataViewType (Microsoft.ML.Data.PrimitiveDataViewType itemType, int size = 0);
new Microsoft.ML.Data.VectorDataViewType : Microsoft.ML.Data.PrimitiveDataViewType * int -> Microsoft.ML.Data.VectorDataViewType
Public Sub New (itemType As PrimitiveDataViewType, Optional size As Integer = 0)

Parameters

itemType
PrimitiveDataViewType

The type of the items contained in the vector.

size
Int32

The size of the single dimension.

Applies to

VectorDataViewType(PrimitiveDataViewType, Int32[])

Constructs a potentially multi-dimensional vector type.

public VectorDataViewType (Microsoft.ML.Data.PrimitiveDataViewType itemType, params int[] dimensions);
new Microsoft.ML.Data.VectorDataViewType : Microsoft.ML.Data.PrimitiveDataViewType * int[] -> Microsoft.ML.Data.VectorDataViewType
Public Sub New (itemType As PrimitiveDataViewType, ParamArray dimensions As Integer())

Parameters

itemType
PrimitiveDataViewType

The type of the items contained in the vector.

dimensions
Int32[]

The dimensions. Note that, like Dimensions, must be non-empty, with all non-negative values. Also, because Size is the product of Dimensions, the result of multiplying all these values together must not overflow Int32.

Applies to