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 short[].

Declaration

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

Parameters

  • dimensions

    The number of sparse vector dimensions.

  • indices

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

  • sparseValue

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

Exceptions

ArgumentOutOfRangeException - dimensions index is less than zero; an indices element is less than zero or greater than or equal to dimensions; or a vector value is either too large or too small for a signed byte (INT8).

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_Int8.

If the vector parameter has a length of zero, then the constructed instance will have null value and IsNull will be true.