1 #include <symengine/matrix.h>
10 for (
unsigned i = 0; i < nrows(); i++) {
12 for (
unsigned j = 0; j < ncols() - 1; j++)
13 o << *this->get(i, j) <<
", ";
14 o << *this->get(i, ncols() - 1) <<
"]" <<
std::endl;
20 bool MatrixBase::eq(
const MatrixBase &other)
const
22 if (this->nrows() != other.nrows() or this->ncols() != other.ncols())
25 for (
unsigned i = 0; i < this->nrows(); i++)
26 for (
unsigned j = 0; j < this->ncols(); j++)
27 if (
neq(*this->get(i, j), *(other.get(i, j))))
Main namespace for SymEngine package.
bool neq(const Basic &a, const Basic &b)
Checks inequality for a and b