You are viewing an archived page from the original site. Go to the new numericalmethod.com →

Changeset 139 in public for Tutorials/HelloSuanShu/src


Ignore:
Timestamp:
1/6/2014 6:15:51 PM (9 months ago)
Author:
kenyiu
Message:

CHG: Updated HelloSuanShu? with suanshu-2.5.0 API.

Location:
Tutorials/HelloSuanShu
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Tutorials/HelloSuanShu

    • Property svn:ignore
      •  

        old new  
        11build 
        22dist 
         3target 
  • Tutorials/HelloSuanShu/src/main/java/hellosuanshu/Main.java

    r138 r139  
    2323package hellosuanshu; 
    2424 
    25 import com.numericalmethod.suanshu.matrix.doubles.AreMatrices; 
    26 import com.numericalmethod.suanshu.matrix.doubles.Matrix; 
    27 import com.numericalmethod.suanshu.matrix.doubles.linearsystem.LinearSystemSolver; 
    28 import com.numericalmethod.suanshu.matrix.doubles.linearsystem.LinearSystemSolver.Solution; 
    29 import com.numericalmethod.suanshu.matrix.doubles.matrixtype.dense.DenseMatrix; 
    30 import com.numericalmethod.suanshu.matrix.doubles.operation.Inverse; 
    31 import com.numericalmethod.suanshu.matrix.doubles.operation.MatrixMeasure; 
    32 import com.numericalmethod.suanshu.vector.doubles.Vector; 
    33 import com.numericalmethod.suanshu.vector.doubles.dense.DenseVector; 
     25import com.numericalmethod.suanshu.algebra.linear.matrix.doubles.Matrix; 
     26import com.numericalmethod.suanshu.algebra.linear.matrix.doubles.MatrixPropertyUtils; 
     27import com.numericalmethod.suanshu.algebra.linear.matrix.doubles.linearsystem.LinearSystemSolver; 
     28import com.numericalmethod.suanshu.algebra.linear.matrix.doubles.linearsystem.LinearSystemSolver.Solution; 
     29import com.numericalmethod.suanshu.algebra.linear.matrix.doubles.matrixtype.dense.DenseMatrix; 
     30import com.numericalmethod.suanshu.algebra.linear.matrix.doubles.operation.Inverse; 
     31import com.numericalmethod.suanshu.algebra.linear.matrix.doubles.operation.MatrixMeasure; 
     32import com.numericalmethod.suanshu.algebra.linear.vector.doubles.Vector; 
     33import com.numericalmethod.suanshu.algebra.linear.vector.doubles.dense.DenseVector; 
    3434 
    3535/** 
    … …  
    8484        double precision = 1e-14; 
    8585        // compare A3 to the 3x3 identity matrix 
    86         if (AreMatrices.equal(A3, new DenseMatrix(3, 3).ONE(), precision)) { 
     86        if (MatrixPropertyUtils.areEqual(A3, new DenseMatrix(3, 3).ONE(), precision)) { 
    8787            System.out.println("A2 is indeed A1's inverse"); 
    8888        } 
Note: See TracChangeset for help on using the changeset viewer.