Package com.sap.cds
Interface CdsVector
@Beta
public interface CdsVector
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintReturns the dimension of the vector space this vector is embedded in.float[]floats()Returns the float[] representation of this vector.static CdsVectorof(float[] vector) Returns a newCdsVector.static CdsVectorReturns 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.
-