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

◆ mult() [2/2]

template<typename Mat>
virtual MutableMat * MutableMat< Mat >::mult ( const RingElement * f) const
inlinevirtual

Implements MutableMatrix.

Definition at line 712 of file mutablemat-defs.hpp.

714 {
715 if (f->get_ring() != get_ring())
716 {
717 ERROR("expected same ring");
718 return 0;
719 }
720 const ElementType& a = mat.ring().from_ring_elem_const(f->get_value());
721
724
725 return result;
726 }
CoeffRing::ElementType ElementType
virtual MutableMat * clone() const
virtual const Ring * get_ring() const
const int ERROR
Definition m2-mem.cpp:55
void scalarMultInPlace(DMat< RT > &A, const typename RT::ElementType &f)

References clone(), ERROR, get_ring(), mat, MutableMat(), result(), and MatrixOps::scalarMultInPlace().