|
Macaulay2 Engine
|
| bool DMatLinAlg< RingType >::solve | ( | const Mat & | B, |
| Mat & | X ) |
Input: B, a matrix, the right hand side of AX=B Output: X, a matrix, solution to the above returns false iff inconsistent
printf("b:\n"); debug_out_list(b, LU.numRows());
printf("y:\n"); debug_out_list(y, rk);
printf("past test for consistency\n");
buffer o; printf("after i=%ld\n", i); displayMat(o, X); printf("%s\n", o.str());
printf("x:\n"); debug_out_list(x, LU.numColumns());
buffer o; printf("after col=%ld\n", col); displayMat(o, X); printf("%s\n", o.str());
Definition at line 340 of file dmat-lu.hpp.
References DMat< ACoeffRing >::entry(), mLUObject, DMat< ACoeffRing >::numColumns(), DMat< ACoeffRing >::numRows(), DMat< ACoeffRing >::resize(), ring(), and x.
Referenced by inverse(), solveInvertible(), and MatrixOps::solveLinear().