#include "MArray2.h"
#include "Array-util.h"
#include "lo-error.h"
#include "MArray-defs.h"
Defines | |
#define | MARRAY_A2S_OP(OP, FN) |
#define | MARRAY_SA2_OP(OP, FN) |
#define | MARRAY_A2A2_OP(FCN, OP, FN) |
Functions | |
template<class T > | |
MArray2< T > & | operator+= (MArray2< T > &a, const T &s) |
template<class T > | |
MArray2< T > & | operator-= (MArray2< T > &a, const T &s) |
template<class T > | |
MArray2< T > & | operator*= (MArray2< T > &a, const T &s) |
template<class T > | |
MArray2< T > & | operator/= (MArray2< T > &a, const T &s) |
template<class T > | |
MArray2< T > & | operator+= (MArray2< T > &a, const MArray2< T > &b) |
template<class T > | |
MArray2< T > & | operator-= (MArray2< T > &a, const MArray2< T > &b) |
template<class T > | |
MArray2< T > & | product_eq (MArray2< T > &a, const MArray2< T > &b) |
template<class T > | |
MArray2< T > & | quotient_eq (MArray2< T > &a, const MArray2< T > &b) |
template<class T > | |
MArray2< T > | operator+ (const MArray2< T > &a) |
template<class T > | |
MArray2< T > | operator- (const MArray2< T > &a) |
#define MARRAY_A2A2_OP | ( | FCN, | |||
OP, | |||||
FN | ) |
Value:
template <class T> \ MArray2<T> \ FCN (const MArray2<T>& a, const MArray2<T>& b) \ { \ return do_mm_binary_op<MArray2<T>, MArray2<T>, MArray2<T> > (a, b, FN, #FCN); \ }
#define MARRAY_A2S_OP | ( | OP, | |||
FN | ) |
Value:
template <class T> \ MArray2<T> \ operator OP (const MArray2<T>& a, const T& s) \ { \ return do_ms_binary_op<MArray2<T>, MArray2<T>, T> (a, s, FN); \ }
#define MARRAY_SA2_OP | ( | OP, | |||
FN | ) |
Value:
template <class T> \ MArray2<T> \ operator OP (const T& s, const MArray2<T>& a) \ { \ return do_sm_binary_op<MArray2<T>, T, MArray2<T> > (s, a, FN); \ }