Defines | Functions

MDiagArray2.cc File Reference

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

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 Documentation

#define MARRAY_DADA_OP (   FCN,
  OP,
  FN 
)
Value:
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 
)
Value:
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.


Function Documentation

template<class T >
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.

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

Definition at line 96 of file MDiagArray2.cc.

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

Definition at line 103 of file MDiagArray2.cc.

References DiagArray2< T >::d1, and DiagArray2< T >::d2.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines