#include "MDiagArray2.h"
#include "Array-util.h"
#include "lo-error.h"
#include "MArray-defs.h"
Go to the source code of this file.
Defines | |
#define | MARRAY_DADA_OP(FCN, OP, FN) |
#define | MARRAY_DAS_OP(OP, FN) |
Functions | |
template<class T > | |
MDiagArray2< T > | operator* (const T &s, const MDiagArray2< T > &a) |
template<class T > | |
MDiagArray2< T > | operator+ (const MDiagArray2< T > &a) |
template<class T > | |
MDiagArray2< T > | operator- (const MDiagArray2< T > &a) |
#define MARRAY_DADA_OP | ( | FCN, | ||
OP, | ||||
FN | ||||
) |
template <class T> \ MDiagArray2<T> \ FCN (const MDiagArray2<T>& a, const MDiagArray2<T>& b) \ { \ if (a.d1 != b.d1 || a.d2 != b.d2) \ gripe_nonconformant (#FCN, a.d1, a.d2, b.d1, b.d2); \ return MDiagArray2<T> (do_mm_binary_op<T, T, T> (a, b, FN, FN, FN, #FCN), a.d1, a.d2); \ }
Definition at line 78 of file MDiagArray2.cc.
#define MARRAY_DAS_OP | ( | OP, | ||
FN | ||||
) |
template <class T> \ MDiagArray2<T> \ operator OP (const MDiagArray2<T>& a, const T& s) \ { \ return MDiagArray2<T> (do_ms_binary_op<T, T, T> (a, s, FN), a.d1, a.d2); \ }
Definition at line 56 of file MDiagArray2.cc.
MDiagArray2<T> operator* | ( | const T & | s, | |
const MDiagArray2< T > & | a | |||
) |
Definition at line 71 of file MDiagArray2.cc.
References DiagArray2< T >::d1, and DiagArray2< T >::d2.
MDiagArray2<T> operator+ | ( | const MDiagArray2< T > & | a | ) |
Definition at line 96 of file MDiagArray2.cc.
MDiagArray2<T> operator- | ( | const MDiagArray2< T > & | a | ) |
Definition at line 103 of file MDiagArray2.cc.
References DiagArray2< T >::d1, and DiagArray2< T >::d2.