Package com.oracle.coherence.ai
Interface Vector<T>
- Type Parameters:
T
- the type of the vector
- All Superinterfaces:
ExternalizableLite
,PortableObject
,Serializable
- All Known Implementing Classes:
BitVector
,Float32Vector
,Int8Vector
public sealed interface Vector<T>
extends ExternalizableLite, PortableObject
permits BitVector, Int8Vector, Float32Vector
A representation of a vector.
-
Method Summary
Methods inherited from interface com.tangosol.io.ExternalizableLite
readExternal, writeExternal
Methods inherited from interface com.tangosol.io.pof.PortableObject
readExternal, writeExternal
-
Method Details
-
dimensions
int dimensions()Returns the number of dimensions in this vector.- Returns:
- the number of dimensions in this vector
-
get
T get()Return the vector. Mutating the returned vector will result in changes to the internal state of this vector.- Returns:
- the actual wrapped vector
-
binaryQuant
BitVector binaryQuant()Return binary quantized value for thisVector
as a bit vector.- Returns:
- binary quantized value for this
Vector
as a bit vector
-