Package rocks.palaiologos.maja.matrix
Record Class DoubleSVDResult
java.lang.Object
java.lang.Record
rocks.palaiologos.maja.matrix.DoubleSVDResult
@Desugar
public record DoubleSVDResult(int rank, double norm, double conditionNumber, double inverseConditionNumber, double[] singularValues, DoubleMatrix U, DoubleMatrix V)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final doubleThe field for theconditionNumberrecord component.private final doubleThe field for theinverseConditionNumberrecord component.private final doubleThe field for thenormrecord component.private final intThe field for therankrecord component.private final double[]The field for thesingularValuesrecord component.private final DoubleMatrixThe field for theUrecord component.private final DoubleMatrixThe field for theVrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDoubleSVDResult(int rank, double norm, double conditionNumber, double inverseConditionNumber, double[] singularValues, DoubleMatrix U, DoubleMatrix V) Creates an instance of aDoubleSVDResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theconditionNumberrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of theinverseConditionNumberrecord component.doublenorm()Returns the value of thenormrecord component.intrank()Returns the value of therankrecord component.double[]Returns the value of thesingularValuesrecord component.final StringtoString()Returns a string representation of this record class.U()Returns the value of theUrecord component.V()Returns the value of theVrecord component.
-
Field Details
-
rank
private final int rankThe field for therankrecord component. -
norm
private final double normThe field for thenormrecord component. -
conditionNumber
private final double conditionNumberThe field for theconditionNumberrecord component. -
inverseConditionNumber
private final double inverseConditionNumberThe field for theinverseConditionNumberrecord component. -
singularValues
private final double[] singularValuesThe field for thesingularValuesrecord component. -
U
The field for theUrecord component. -
V
The field for theVrecord component.
-
-
Constructor Details
-
DoubleSVDResult
public DoubleSVDResult(int rank, double norm, double conditionNumber, double inverseConditionNumber, double[] singularValues, DoubleMatrix U, DoubleMatrix V) Creates an instance of aDoubleSVDResultrecord class.- Parameters:
rank- the value for therankrecord componentnorm- the value for thenormrecord componentconditionNumber- the value for theconditionNumberrecord componentinverseConditionNumber- the value for theinverseConditionNumberrecord componentsingularValues- the value for thesingularValuesrecord componentU- the value for theUrecord componentV- the value for theVrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
rank
public int rank()Returns the value of therankrecord component.- Returns:
- the value of the
rankrecord component
-
norm
public double norm()Returns the value of thenormrecord component.- Returns:
- the value of the
normrecord component
-
conditionNumber
public double conditionNumber()Returns the value of theconditionNumberrecord component.- Returns:
- the value of the
conditionNumberrecord component
-
inverseConditionNumber
public double inverseConditionNumber()Returns the value of theinverseConditionNumberrecord component.- Returns:
- the value of the
inverseConditionNumberrecord component
-
singularValues
public double[] singularValues()Returns the value of thesingularValuesrecord component.- Returns:
- the value of the
singularValuesrecord component
-
U
Returns the value of theUrecord component.- Returns:
- the value of the
Urecord component
-
V
Returns the value of theVrecord component.- Returns:
- the value of the
Vrecord component
-