Definition at line 780 of file matrix.cpp.
781{
784 {
785 ERROR(
"matrix tensor: different base rings");
786 return nullptr;
787 }
788
791
792 auto D = R->degree_monoid();
795
797 D->remove(deg);
798 int i, j, next = 0;
799 for (i = 0; i <
n_cols(); i++)
800 for (j = 0; j < m->
n_cols(); j++)
801 mat.set_column(next++, R->tensor(
rows(),
elem(i), m->
rows(), (*m)[j]));
802 return mat.to_matrix();
803}
FreeModule * tensor(const FreeModule *G) const
const_monomial degree_shift() const
const Ring * get_ring() const
ring_elem elem(int i, int j) const
friend class MatrixConstructor
const FreeModule * rows() const
const FreeModule * cols() const
References cols(), degree_shift(), elem(), ERROR, FreeModule, G, get_ring(), Matrix(), MatrixConstructor, monomial, n_cols(), rows(), MatrixConstructor::set_column(), tensor(), and MatrixConstructor::to_matrix().
Referenced by IM2_Matrix_tensor(), and tensor().