Record Class SparseMatrix.Valued
java.lang.Object
java.lang.Record
ai.beestream.jitnn.SparseMatrix.Valued
- Enclosing class:
SparseMatrix
A structure with fixed values.
-
Constructor Summary
ConstructorsConstructorDescriptionValued(SparseMatrix matrix, Tensor values) Creates an instance of aValuedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.matrix()Returns the value of thematrixrecord component.This matrix times dense [cols, feat].final StringtoString()Returns a string representation of this record class.values()Returns the value of thevaluesrecord component.
-
Constructor Details
-
Valued
Creates an instance of aValuedrecord class.- Parameters:
matrix- the value for thematrixrecord componentvalues- the value for thevaluesrecord component
-
-
Method Details
-
mm
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
matrix
Returns the value of thematrixrecord component.- Returns:
- the value of the
matrixrecord component
-
values
Returns the value of thevaluesrecord component.- Returns:
- the value of the
valuesrecord component
-