-
- Downloads
Replace SparseMatrixDescriptor by CRSMatrixDescriptor
The new class is meant to be much faster - it requires an estimation of the number values per row - if the number of stored values per line exceeds the reserved one, an a special storage zone (per row) is used. It is important to give a precise estimation of the number of values per rows: - if the provided expected number of values is too small with regard to the real number of values stored for a given row, then building performances can be noticeably affected - if the provided expected number of values per row corresponds exactly to the effective number of stored values, then the construction of the CRSMatrix costs nothing. In the later case, one benefits from a significant CPU and memory costs reduction.
Showing
- src/algebra/CRSMatrix.hpp 51 additions, 33 deletionssrc/algebra/CRSMatrix.hpp
- src/algebra/CRSMatrixDescriptor.hpp 265 additions, 0 deletionssrc/algebra/CRSMatrixDescriptor.hpp
- src/algebra/LinearSolver.cpp 2 additions, 2 deletionssrc/algebra/LinearSolver.cpp
- src/algebra/LinearSolver.hpp 1 addition, 1 deletionsrc/algebra/LinearSolver.hpp
- src/algebra/PETScUtils.cpp 14 additions, 24 deletionssrc/algebra/PETScUtils.cpp
- src/algebra/PETScUtils.hpp 4 additions, 3 deletionssrc/algebra/PETScUtils.hpp
- src/algebra/SparseMatrixDescriptor.hpp 0 additions, 170 deletionssrc/algebra/SparseMatrixDescriptor.hpp
- tests/CMakeLists.txt 1 addition, 1 deletiontests/CMakeLists.txt
- tests/test_BiCGStab.cpp 13 additions, 4 deletionstests/test_BiCGStab.cpp
- tests/test_CG.cpp 17 additions, 6 deletionstests/test_CG.cpp
- tests/test_CRSMatrix.cpp 86 additions, 32 deletionstests/test_CRSMatrix.cpp
- tests/test_CRSMatrixDescriptor.cpp 166 additions, 0 deletionstests/test_CRSMatrixDescriptor.cpp
- tests/test_EigenvalueSolver.cpp 6 additions, 3 deletionstests/test_EigenvalueSolver.cpp
- tests/test_LinearSolver.cpp 14 additions, 4 deletionstests/test_LinearSolver.cpp
- tests/test_SparseMatrixDescriptor.cpp 0 additions, 201 deletionstests/test_SparseMatrixDescriptor.cpp
Loading