SparseVector Objects — python-oracledb 3.2.0b1 documentation (original) (raw)

A SparseVector Object stores information about a sparse vector. This object can be created with oracledb.SparseVector().

See Using SPARSE Vectors for more information.

Added in version 3.0.0.

14.1. SparseVector Attributes

SparseVector.indices

This read-only attribute is an array that returns the indices (zero-based) of non-zero values in the vector.

SparseVector.num_dimensions

This read-only attribute is an integer that returns the number of dimensions of the vector.

SparseVector.values

This read-only attribute is an array that returns the non-zero values stored in the vector.