mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: add size_type to Matrix and VectorSpace
- easier to create type-specific looping in templated code STYLE: pass 'direction' and 'label' by value instead of reference COMP: qualify Foam::min() in dense matrix classes
This commit is contained in:
@ -173,8 +173,8 @@ void Foam::DMDModels::STDMD::compress()
|
||||
DiagonalMatrix<scalar> EVals(EM.EValsRe());
|
||||
|
||||
// Sort eigenvalues in descending order, and track indices
|
||||
const auto descend = [&](scalar a, scalar b){ return a > b; };
|
||||
const List<label> permutation(EVals.sortPermutation(descend));
|
||||
const auto descend = [](scalar a, scalar b){ return a > b; };
|
||||
const labelList permutation(EVals.sortPermutation(descend));
|
||||
EVals.applyPermutation(permutation);
|
||||
EVals.resize(EVals.size() - 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user