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