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

◆ zero()

Matrix * Matrix::zero ( const FreeModule * F,
const FreeModule * G )
static

Definition at line 369 of file matrix.cpp.

370{
371 if (F->get_ring() != G->get_ring())
372 {
373 ERROR("free modules have different base rings");
374 return nullptr;
375 }
376 MatrixConstructor mat(F, G);
377 return mat.to_matrix();
378}
const Ring * get_ring() const
Definition freemod.hpp:102
friend class MatrixConstructor
Definition matrix.hpp:76
const int ERROR
Definition m2-mem.cpp:55
tbb::flow::graph G

References ERROR, FreeModule, G, FreeModule::get_ring(), Matrix(), MatrixConstructor, MatrixConstructor::to_matrix(), and zero().

Referenced by zero().