Macaulay2 Engine
Loading...
Searching...
No Matches

◆ rawLinAlgAddMult()

M2_bool rawLinAlgAddMult ( MutableMatrix * C,
const MutableMatrix * A,
const MutableMatrix * B )

A,B,C should be mutable matrices over the same ring, and a,b elements of this ring. C = b*C + a * op(A)*op(B), where op(A) = A or transpose(A), depending on transposeA where op(B) = B or transpose(B), depending on transposeB set C += A*B. If not implemented, or sizes/rings are not compatible then false is returned. Otherwise true is returned.

Definition at line 946 of file mutable-matrix.cpp.

949{
950 try
951 {
952 C->addMultipleTo(A, B);
953 return true;
954 } catch (const exc::engine_error& e)
955 {
956 ERROR(e.what());
957 return false;
958 }
959}
virtual void addMultipleTo(const MutableMatrix *A, const MutableMatrix *B)=0
const int ERROR
Definition m2-mem.cpp:55

References MutableMatrix::addMultipleTo(), and ERROR.