Reference documentation and code samples for the Vector Search V1 API class Google::Cloud::VectorSearch::V1::SparseVector.
A sparse vector.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#indices
def indices() -> ::Array<::Integer>
Returns
- (::Array<::Integer>) — Required. The corresponding indices for the values.
#indices=
def indices=(value) -> ::Array<::Integer>
Parameter
- value (::Array<::Integer>) — Required. The corresponding indices for the values.
Returns
- (::Array<::Integer>) — Required. The corresponding indices for the values.
#values
def values() -> ::Array<::Float>
Returns
- (::Array<::Float>) — Required. The values of the vector.
#values=
def values=(value) -> ::Array<::Float>
Parameter
- value (::Array<::Float>) — Required. The values of the vector.
Returns
- (::Array<::Float>) — Required. The values of the vector.