38 bool retval = this->
rows () == this->
cols ();
56 #define MARRAY_DAS_OP(OP, FN) \
59 operator OP (const MDiagArray2<T>& a, const T& s) \
61 return MDiagArray2<T> (do_ms_binary_op<T, T, T> (a, s, FN), a.d1, a.d2); \
79 #define MARRAY_DADA_OP(FCN, OP, FN) \
82 FCN (const MDiagArray2<T>& a, const MDiagArray2<T>& b) \
84 if (a.d1 != b.d1 || a.d2 != b.d2) \
85 gripe_nonconformant (#FCN, a.d1, a.d2, b.d1, b.d2); \
86 return MDiagArray2<T> (do_mm_binary_op<T, T, T> (a, b, FN, FN, FN, #FCN), a.d1, a.d2); \