29 inline const T Foam::SVD::sign(
const T& a,
const T&
b)
32 return b >= 0 ? a : -a;
71 for (
label i=1; i<S_.size(); i++)
74 if (
s > vSmall &&
s < minS) minS =
s;
const scalarRectangularMatrix & V() const
Return the square matrix V.
const scalarRectangularMatrix & U() const
Return U.
scalar minNonZeroS() const
Return the minimum non-zero singular value.
label nZeros() const
Return the number of zero singular values.
bool converged() const
Return the minimum non-zero singular value.
const scalarDiagonalMatrix & S() const
Return the singular values.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)