Package com.sap.cds
Interface CdsVector
@Beta
public interface CdsVector
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the dimension of the vector space this vector is embedded in.float[]
floats()
Returns the float[] representation of this vector.static CdsVector
of
(float[] vector) Returns a newCdsVector
.static CdsVector
Returns a newCdsVector
.toString()
Returns the String representation of this vector.
-
Field Details
-
factory
-
-
Method Details
-
of
Returns a newCdsVector
.- Parameters:
vector
- the vector as float[]- Returns:
- a new
CdsVector
-
of
Returns a newCdsVector
.- Parameters:
vector
- in String format "[0.42, -0.73, ...]"- Returns:
- a new
CdsVector
-
floats
float[] floats()Returns the float[] representation of this vector.- Returns:
- the float[] representation of this vector
-
dimension
int dimension()Returns the dimension of the vector space this vector is embedded in.- Returns:
- the dimension of the vector space
-
toString
String toString()Returns the String representation of this vector.
-