GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Macros | 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.

Macros

#define MARRAY_DADA_OP(FCN, OP, FN)
#define MARRAY_DAS_OP(OP, FN)

Functions

template<class T >
MDiagArray2< T > operator* (const MDiagArray2< T > &a, const T &s)
template<class T >
MDiagArray2< T > operator* (const T &s, const MDiagArray2< T > &a)
template<class T >
MDiagArray2< T > operator+ (const MDiagArray2< T > &a, const MDiagArray2< T > &b)
template<class T >
MDiagArray2< T > operator+ (const MDiagArray2< T > &a)
template<class T >
MDiagArray2< T > operator- (const MDiagArray2< T > &a, const MDiagArray2< T > &b)
template<class T >
MDiagArray2< T > operator- (const MDiagArray2< T > &a)
template<class T >
MDiagArray2< T > operator/ (const MDiagArray2< T > &a, const T &s)
template<class T >
MDiagArray2< T > product (const MDiagArray2< T > &a, const MDiagArray2< T > &b)

Macro Definition Documentation

#define MARRAY_DADA_OP (   FCN,
  OP,
  FN 
)
Value:
template <class 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 79 of file MDiagArray2.cc.

#define MARRAY_DAS_OP (   OP,
  FN 
)
Value:
template <class 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 MDiagArray2< T > &  a,
const T &  s 
)

Definition at line 64 of file MDiagArray2.cc.

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, DiagArray2< T >::d2, and mx_inline_mul().

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

Definition at line 89 of file MDiagArray2.cc.

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

Definition at line 97 of file MDiagArray2.cc.

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

Definition at line 90 of file MDiagArray2.cc.

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

Definition at line 104 of file MDiagArray2.cc.

References DiagArray2< T >::d1, DiagArray2< T >::d2, and mx_inline_uminus().

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

Definition at line 65 of file MDiagArray2.cc.

template<class T >
MDiagArray2<T> product ( const MDiagArray2< T > &  a,
const MDiagArray2< T > &  b 
)

Definition at line 91 of file MDiagArray2.cc.