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

◆ transpose() [2/2]

template<typename RT>
void MatrixOps::transpose ( const SMat< RT > & A,
SMat< RT > & result )

Definition at line 459 of file mat-arith.hpp.

460{
461 // result should be the 0 matrix of the correct size.
462 (void) A;
463 (void) result;
464 assert(&A != &result); // these cannot be aliased!
465 assert(result.numRows() == A.numColumns());
466 assert(result.numColumns() == A.numRows());
467 throw exc::engine_error(
468 "'transpose' not written for sparse mutable matrices");
469 // TODO: MES: write this!!
470}
size_t numRows() const
Definition smat.hpp:99
size_t numColumns() const
Definition smat.hpp:100
VALGRIND_MAKE_MEM_DEFINED & result(result)

References SMat< ACoeffRing >::numColumns(), SMat< ACoeffRing >::numRows(), and result().