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
Classes | Macros | 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 >

Macros

#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* (const MArray< T > &a, const T &s)
template<class T >
MArray< T > operator* (const T &s, const MArray< T > &a)
template<class T >
MArray< T > & operator*= (MArray< T > &a, const T &s)
template<class T >
MArray< T > operator+ (const MArray< T > &a, const T &s)
template<class T >
MArray< T > operator+ (const T &s, const MArray< T > &a)
template<class T >
MArray< T > operator+ (const MArray< T > &a, const MArray< T > &b)
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- (const MArray< T > &a, const T &s)
template<class T >
MArray< T > operator- (const T &s, const MArray< T > &a)
template<class T >
MArray< T > operator- (const MArray< T > &a, const MArray< T > &b)
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/ (const MArray< T > &a, const T &s)
template<class T >
MArray< T > operator/ (const T &s, const MArray< T > &a)
template<class T >
MArray< T > & operator/= (MArray< T > &a, const T &s)
template<class T >
MArray< T > product (const MArray< T > &a, const MArray< T > &b)
template<class T >
MArray< T > & product_eq (MArray< T > &a, const MArray< T > &b)
template<class T >
MArray< T > quotient (const MArray< T > &a, const MArray< T > &b)
template<class T >
MArray< T > & quotient_eq (MArray< T > &a, const MArray< T > &b)

Macro Definition Documentation

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

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

Definition at line 311 of file MArray.cc.

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

Definition at line 326 of file MArray.cc.

Function Documentation

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

Definition at line 321 of file MArray.cc.

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

Definition at line 336 of file MArray.cc.

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

Definition at line 242 of file MArray.cc.

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

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

Definition at line 319 of file MArray.cc.

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

Definition at line 334 of file MArray.cc.

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

Definition at line 349 of file MArray.cc.

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

Definition at line 356 of file MArray.cc.

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

Definition at line 220 of file MArray.cc.

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

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

Definition at line 266 of file MArray.cc.

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

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

Definition at line 320 of file MArray.cc.

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

Definition at line 335 of file MArray.cc.

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

Definition at line 350 of file MArray.cc.

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

Definition at line 363 of file MArray.cc.

References mx_inline_uminus().

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

Definition at line 231 of file MArray.cc.

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

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

Definition at line 277 of file MArray.cc.

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

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

Definition at line 322 of file MArray.cc.

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

Definition at line 337 of file MArray.cc.

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

Definition at line 253 of file MArray.cc.

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

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

Definition at line 351 of file MArray.cc.

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

Definition at line 289 of file MArray.cc.

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

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

Definition at line 352 of file MArray.cc.

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

Definition at line 300 of file MArray.cc.

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