类 SparseFieldMatrixTest

java.lang.Object
org.hipparchus.linear.SparseFieldMatrixTest

public class SparseFieldMatrixTest extends Object
SparseFieldMatrix类的测试用例。
  • 字段详细资料

    • id

      protected Fraction[][] id
    • testData

      protected Fraction[][] testData
    • testDataLU

      protected Fraction[][] testDataLU
    • testDataPlus2

      protected Fraction[][] testDataPlus2
    • testDataMinus

      protected Fraction[][] testDataMinus
    • testDataRow1

      protected Fraction[] testDataRow1
    • testDataCol3

      protected Fraction[] testDataCol3
    • testDataInv

      protected Fraction[][] testDataInv
    • preMultTest

      protected Fraction[] preMultTest
    • testData2

      protected Fraction[][] testData2
    • testData2T

      protected Fraction[][] testData2T
    • testDataPlusInv

      protected Fraction[][] testDataPlusInv
    • luData

      protected Fraction[][] luData
    • luDataLUDecomposition

      protected Fraction[][] luDataLUDecomposition
    • singular

      protected Fraction[][] singular
    • bigSingular

      protected Fraction[][] bigSingular
    • detData

      protected Fraction[][] detData
    • detData2

      protected Fraction[][] detData2
    • testVector

      protected Fraction[] testVector
    • testVector2

      protected Fraction[] testVector2
    • subTestData

      protected Fraction[][] subTestData
    • subRows02Cols13

      protected Fraction[][] subRows02Cols13
    • subRows03Cols12

      protected Fraction[][] subRows03Cols12
    • subRows03Cols123

      protected Fraction[][] subRows03Cols123
    • subRows20Cols123

      protected Fraction[][] subRows20Cols123
    • subRows31Cols31

      protected Fraction[][] subRows31Cols31
    • subRows01Cols23

      protected Fraction[][] subRows01Cols23
    • subRows23Cols00

      protected Fraction[][] subRows23Cols00
    • subRows00Cols33

      protected Fraction[][] subRows00Cols33
    • subRow0

      protected Fraction[][] subRow0
    • subRow3

      protected Fraction[][] subRow3
    • subColumn1

      protected Fraction[][] subColumn1
    • subColumn3

      protected Fraction[][] subColumn3
    • entryTolerance

      protected double entryTolerance
    • normTolerance

      protected double normTolerance
    • field

      protected Field<Fraction> field
  • 构造器详细资料

    • SparseFieldMatrixTest

      public SparseFieldMatrixTest()
  • 方法详细资料

    • testDimensions

      public void testDimensions()
      测试维度
    • testCopyFunctions

      public void testCopyFunctions()
      测试复制函数
    • testAdd

      public void testAdd()
      测试加法
    • testAddFail

      public void testAddFail()
      测试加法失败
    • testPlusMinus

      public void testPlusMinus()
      测试 m-n = m + -n
    • testMultiply

      public void testMultiply()
      测试乘法
    • testMultiply2

      public void testMultiply2()
    • testMultiplyTransposedSparseFieldMatrix

      public void testMultiplyTransposedSparseFieldMatrix()
    • testMultiplyTransposedWrongDimensions

      public void testMultiplyTransposedWrongDimensions()
    • testTransposeMultiplySparseFieldMatrix

      public void testTransposeMultiplySparseFieldMatrix()
    • testTransposeMultiplyWrongDimensions

      public void testTransposeMultiplyWrongDimensions()
    • testTrace

      public void testTrace()
      测试迹
    • testScalarAdd

      public void testScalarAdd()
      测试标量加法
    • testOperate

      public void testOperate()
      测试操作
    • testMath209

      public void testMath209()
      测试问题 MATH-209
    • testTranspose

      public void testTranspose()
      测试转置
    • testPremultiplyVector

      public void testPremultiplyVector()
      测试向量的前置乘法
    • testPremultiply

      public void testPremultiply()
    • testGetVectors

      public void testGetVectors()
    • testGetEntry

      public void testGetEntry()
    • testExamples

      public void testExamples()
      用户指南中的示例测试
    • testSubMatrix

      public void testSubMatrix()
    • testGetRowMatrix

      public void testGetRowMatrix()
    • testGetColumnMatrix

      public void testGetColumnMatrix()
    • testGetRowVector

      public void testGetRowVector()
    • testGetColumnVector

      public void testGetColumnVector()
    • testEqualsAndHashCode

      public void testEqualsAndHashCode()
    • testSetSubMatrix

      public void testSetSubMatrix()
    • assertClose

      protected void assertClose(String msg, FieldMatrix<Fraction> m, FieldMatrix<Fraction> n, double tolerance)
      验证两个矩阵是否接近(1-范数)
    • assertClose

      protected void assertClose(String msg, Fraction[] m, Fraction[] n, double tolerance)
      验证两个向量是否接近(sup范数)