Search in sources :

Example 1 with SimultaneousPrimitive

use of org.ojalgo.matrix.decomposition.HermitianEvD.SimultaneousPrimitive in project ojAlgo by optimatika.

the class ExtremeElementsCase method testInvertEvD_3_155_1.

@Test
public void testInvertEvD_3_155_1() {
    final PrimitiveDenseStore tmpOriginal = PrimitiveDenseStore.FACTORY.rows(new double[][] { { 1.509726074514643, 0.6439543946598099, 1.2096354379603502 }, { 0.6439543946598099, 1.134228320145167, 0.8341376835908743 }, { 1.2096354379603502, 0.8341376835908743, 1.6999093634457072 } });
    tmpOriginal.modifyAll(PrimitiveFunction.MULTIPLY.second(PrimitiveFunction.POWER.invoke(PrimitiveMath.TEN, 155)));
    final SimultaneousPrimitive tmpAlgorithm = new HermitianEvD.SimultaneousPrimitive();
    final NumberContext tmpContext = NumberContext.getGeneral(1, Integer.MIN_VALUE);
    ExtremeElementsCase.performInvertTest(tmpOriginal, tmpAlgorithm, tmpContext);
}
Also used : NumberContext(org.ojalgo.type.context.NumberContext) PrimitiveDenseStore(org.ojalgo.matrix.store.PrimitiveDenseStore) SimultaneousPrimitive(org.ojalgo.matrix.decomposition.HermitianEvD.SimultaneousPrimitive) Test(org.junit.jupiter.api.Test)

Aggregations

Test (org.junit.jupiter.api.Test)1 SimultaneousPrimitive (org.ojalgo.matrix.decomposition.HermitianEvD.SimultaneousPrimitive)1 PrimitiveDenseStore (org.ojalgo.matrix.store.PrimitiveDenseStore)1 NumberContext (org.ojalgo.type.context.NumberContext)1