VectorValue

actual class VectorValue(source)

A vector of doubles stored in a document, such as an embedding for vector search, mirroring com.google.firebase.firestore.VectorValue from the Firebase Android SDK; FieldValue.vector creates one. Vectors are equal when their values are, compared as DoubleArray.contentEquals does (NaN equals itself, 0.0 and -0.0 differ), as on Android.

expect class VectorValue(source)

A vector of doubles stored in a document, such as an embedding for vector search, mirroring com.google.firebase.firestore.VectorValue from the Firebase Android SDK; FieldValue.vector creates one. Vectors are equal when their values are, compared as DoubleArray.contentEquals does (NaN equals itself, 0.0 and -0.0 differ), as on Android.

actual class VectorValue(source)

A copy of values; converted to the platform SDK's vector value when written.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
actual fun toArray(): DoubleArray

A copy of the values.

expect fun toArray(): DoubleArray

A copy of the values.

actual fun toArray(): DoubleArray

A copy of the values.

Link copied to clipboard
open override fun toString(): String