1 #ifndef SYMENGINE_MATRICES_DIAGONAL_MATRIX_H
2 #define SYMENGINE_MATRICES_DIAGONAL_MATRIX_H
5 #include <symengine/matrices/matrix_expr.h>
18 SYMENGINE_ASSIGN_TYPEID();
19 SYMENGINE_ASSERT(is_canonical(container));
26 bool is_canonical(
const vec_basic &container)
const;
33 inline const vec_basic &get_container()
const
38 inline RCP<const Basic> get(
size_t i)
const
44 bool is_zero_vec(
const vec_basic &container);
45 bool is_identity_vec(
const vec_basic &container);
47 RCP<const MatrixExpr> diagonal_matrix(
const vec_basic &container);
The base class for SymEngine.
#define IMPLEMENT_TYPEID(SYMENGINE_ID)
Inline members and functions.
The lowest unit of symbolic representation.
vec_basic get_args() const override
Returns the list of arguments.
int compare(const Basic &o) const override
bool __eq__(const Basic &o) const override
Test equality.
hash_t __hash__() const override
Main namespace for SymEngine package.