#include "MDiagArray2.h"
#include "Array-util.h"
#include "lo-error.h"
#include "MArray-defs.h"
Defines | |
#define | MARRAY_DAS_OP(OP, FN) |
#define | MARRAY_DADA_OP(FCN, OP, FN) |
Functions | |
template<class T > | |
MDiagArray2< T > & | operator+= (MDiagArray2< T > &a, const MDiagArray2< T > &b) |
template<class T > | |
MDiagArray2< T > & | operator-= (MDiagArray2< T > &a, const MDiagArray2< T > &b) |
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 | ) |
Value:
template <class T> \ MDiagArray2<T> \ FCN (const MDiagArray2<T>& a, const MDiagArray2<T>& b) \ { \ return do_mm_binary_op<MDiagArray2<T>, MDiagArray2<T>, MDiagArray2<T> > (a, b, FN, #FCN); \ }
#define MARRAY_DAS_OP | ( | OP, | |||
FN | ) |
Value:
template <class T> \ MDiagArray2<T> \ operator OP (const MDiagArray2<T>& a, const T& s) \ { \ return do_ms_binary_op<MDiagArray2<T>, MDiagArray2<T>, T> (a, s, FN); \ }
MDiagArray2<T> operator* | ( | const T & | s, | |
const MDiagArray2< T > & | a | |||
) | [inline] |
MDiagArray2<T> operator+ | ( | const MDiagArray2< T > & | a | ) | [inline] |
MDiagArray2<T>& operator+= | ( | MDiagArray2< T > & | a, | |
const MDiagArray2< T > & | b | |||
) | [inline] |
MDiagArray2<T> operator- | ( | const MDiagArray2< T > & | a | ) | [inline] |
MDiagArray2<T>& operator-= | ( | MDiagArray2< T > & | a, | |
const MDiagArray2< T > & | b | |||
) | [inline] |