OracleSparseVector(dimensions, indices, sparseValue)

This constructor creates an instance of the OracleSparseVector class with a specified number of dimensions and non-zero vector values stored in a float[].

Declaration

// C#
public OracleSparseVector(long dimensions, long[] indices, float[] sparseValue);

Parameters

  • dimensions

    The number of sparse vector dimensions.

  • indices

    The long[] for the zero-based sparse vector's non-zero indices.

  • sparseValue

    The float[] for the vector values of the non-zero indices.

Exceptions

ArgumentOutOfRangeException – dimensions index is less than zero, or an element in indices is less than zero or greater than or equal to dimensions.

ArgumentNullException - The indices or sparseValue parameter is null.

ArgumentException - The dimensions are fewer than the length of indices or sparseValue, or the length of indices and sparseValue are not equal.

Remarks

The ProviderType is OracleDbType.Vector_Float32.