MCPcopy Create free account
hub / github.com/Singular/Singular / absValue

Function absValue

kernel/linear_algebra/linearAlgebra.cc:725–731  ·  view source on GitHub ↗

Returns a new number which is the absolute value of the coefficient of the given polynomial. * * The method assumes that the coefficient has imaginary part zero. */

Source from the content-addressed store, hash-verified

723 *
724 * The method assumes that the coefficient has imaginary part zero. */
725number absValue(poly p)
726{
727 if (p == NULL) return nInit(0);
728 number result = nCopy(pGetCoeff(p));
729 if (!nGreaterZero(result)) result = nInpNeg(result);
730 return result;
731}
732
733bool subMatrix(const matrix aMat, const int rowIndex1, const int rowIndex2,
734 const int colIndex1, const int colIndex2, matrix &subMat)

Callers 1

qrDSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected