• Alexis SALZMAN's avatar
    [xLinAlg] add forEach method to xGenericSparseMatrix class · 86b38d83
    Alexis SALZMAN authored
    This method pass in revue all the non null terms (topological sens) and
    run a functor on them. The functor is expected to have 3 arguments:
    - 2 integer i and j that contains row and column index of term.
    - one T val corresponding to term's value.
    The functor can do anything you want.
    
    This function offers to user a quick way to deal with all traits.
    It may be slightly less efficient then calling getMemoryAcces and by
    hand pass in in revue terms according to traits (to be checked). It
    depends on what you do.
    
    It will be used internally to replace many duplicated piece of code
    where looping on all terms is required. It is already in use with
    printMatrixMarket method. Has some test do check matrix market outputs
    we can already conclude that forEach is validate.
    86b38d83
Name
Last commit
Last update
Trellis Loading commit data...
xAnalyticalSolution Loading commit data...
xCrack Loading commit data...
xCut Loading commit data...
xDomainDecomp Loading commit data...
xExport Loading commit data...
xExt Loading commit data...
xFEM Loading commit data...
xFastMarching Loading commit data...
xGeom Loading commit data...
xGraph Loading commit data...
xInterface Loading commit data...
xLinAlg Loading commit data...
xMapping Loading commit data...
xMeshTool Loading commit data...
xOctree Loading commit data...
xPhysics Loading commit data...
xQuadrature Loading commit data...
xTLS Loading commit data...
xTensor Loading commit data...
xTool Loading commit data...
xUtil Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
CMakeLists.txt Loading commit data...
CONTRIBUTING.md Loading commit data...
Ext_dependence.dot Loading commit data...
LICENSE.md Loading commit data...
README.md Loading commit data...
Xfiles_dependence.dot Loading commit data...