Classes | Defines | Functions

MArray.cc File Reference

#include "MArray.h"
#include "Array-util.h"
#include "lo-error.h"
#include "MArray-defs.h"
#include "mx-inlines.cc"
#include <iostream>
Include dependency graph for MArray.cc:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _idxadda_helper< T >
struct  _idxadds_helper< T >
struct  _idxbinop_helper< T, op >

Defines

#define MARRAY_NDND_OP(FCN, OP, FN)
#define MARRAY_NDS_OP(OP, FN)
#define MARRAY_SND_OP(OP, FN)

Functions

template<class T >
MArray< T > & operator*= (MArray< T > &a, const T &s)
template<class T >
MArray< T > operator+ (const MArray< T > &a)
template<class T >
MArray< T > & operator+= (MArray< T > &a, const MArray< T > &b)
template<class T >
MArray< T > & operator+= (MArray< T > &a, const T &s)
template<class T >
MArray< T > operator- (const MArray< T > &a)
template<class T >
MArray< T > & operator-= (MArray< T > &a, const T &s)
template<class T >
MArray< T > & operator-= (MArray< T > &a, const MArray< T > &b)
template<class T >
MArray< T > & operator/= (MArray< T > &a, const T &s)
template<class T >
MArray< T > & product_eq (MArray< T > &a, const MArray< T > &b)
template<class T >
MArray< T > & quotient_eq (MArray< T > &a, const MArray< T > &b)

Define Documentation

#define MARRAY_NDND_OP (   FCN,
  OP,
  FN 
)
Value:
template <class T> \
  MArray<T> \
  FCN (const MArray<T>& a, const MArray<T>& b) \
  { \
    return do_mm_binary_op<T, T, T> (a, b, FN, FN, FN, #FCN); \
  }

Definition at line 337 of file MArray.cc.

#define MARRAY_NDS_OP (   OP,
  FN 
)
Value:
template <class T> \
  MArray<T> \
  operator OP (const MArray<T>& a, const T& s) \
  { \
    return do_ms_binary_op<T, T, T> (a, s, FN); \
  }

Definition at line 307 of file MArray.cc.

#define MARRAY_SND_OP (   OP,
  FN 
)
Value:
template <class T> \
  MArray<T> \
  operator OP (const T& s, const MArray<T>& a) \
  { \
    return do_sm_binary_op<T, T, T> (s, a, FN); \
  }

Definition at line 322 of file MArray.cc.


Function Documentation

template<class T >
MArray<T>& operator*= ( MArray< T > &  a,
const T &  s 
)

Definition at line 238 of file MArray.cc.

References Array< T >::is_shared().

template<class T >
MArray<T> operator+ ( const MArray< T > &  a  ) 

Definition at line 352 of file MArray.cc.

template<class T >
MArray<T>& operator+= ( MArray< T > &  a,
const MArray< T > &  b 
)

Definition at line 262 of file MArray.cc.

References Array< T >::is_shared().

template<class T >
MArray<T>& operator+= ( MArray< T > &  a,
const T &  s 
)

Definition at line 216 of file MArray.cc.

References Array< T >::is_shared().

template<class T >
MArray<T> operator- ( const MArray< T > &  a  ) 

Definition at line 359 of file MArray.cc.

template<class T >
MArray<T>& operator-= ( MArray< T > &  a,
const T &  s 
)

Definition at line 227 of file MArray.cc.

References Array< T >::is_shared().

template<class T >
MArray<T>& operator-= ( MArray< T > &  a,
const MArray< T > &  b 
)

Definition at line 273 of file MArray.cc.

References Array< T >::is_shared().

template<class T >
MArray<T>& operator/= ( MArray< T > &  a,
const T &  s 
)

Definition at line 249 of file MArray.cc.

References Array< T >::is_shared().

template<class T >
MArray<T>& product_eq ( MArray< T > &  a,
const MArray< T > &  b 
)

Definition at line 285 of file MArray.cc.

References Array< T >::is_shared(), and product().

template<class T >
MArray<T>& quotient_eq ( MArray< T > &  a,
const MArray< T > &  b 
)

Definition at line 296 of file MArray.cc.

References Array< T >::is_shared(), and quotient().

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines