GNU Octave  4.2.1
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 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<typename T >
MDiagArray2< T > operator* (const MDiagArray2< T > &a, const T &s)
 
template<typename T >
MDiagArray2< T > operator* (const T &s, const MDiagArray2< T > &a)
 
template<typename T >
MDiagArray2< T > operator+ (const MDiagArray2< T > &a, const MDiagArray2< T > &b)
 
template<typename T >
MDiagArray2< T > operator+ (const MDiagArray2< T > &a)
 
template<typename T >
MDiagArray2< T > operator- (const MDiagArray2< T > &a, const MDiagArray2< T > &b)
 
template<typename T >
MDiagArray2< T > operator- (const MDiagArray2< T > &a)
 
template<typename T >
MDiagArray2< T > operator/ (const MDiagArray2< T > &a, const T &s)
 
template<typename T >
MDiagArray2< T > product (const MDiagArray2< T > &a, const MDiagArray2< T > &b)
 

Macro Definition Documentation

#define MARRAY_DADA_OP (   FCN,
  OP,
  FN 
)
Value:
template <typename T> \
FCN (const MDiagArray2<T>& a, const MDiagArray2<T>& b) \
{ \
if (a.d1 != b.d1 || a.d2 != b.d2) \
octave::err_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: oct-parse.h:129
calling an anonymous function involves an overhead quite comparable to the overhead of an m file function Passing a handle to a built in function is because the interpreter is not involved in the internal loop For a
Definition: cellfun.cc:398
if(nargin< 2) print_usage()
Definition: cellfun.cc:405
void err_nonconformant(const char *op, octave_idx_type op1_len, octave_idx_type op2_len)
Template for two dimensional diagonal array with math operators.
Definition: MDiagArray2.h:33
b
Definition: cellfun.cc:398

Definition at line 78 of file MDiagArray2.cc.

#define MARRAY_DAS_OP (   OP,
  FN 
)
Value:
template <typename 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); \
}
s
Definition: file-io.cc:2682
calling an anonymous function involves an overhead quite comparable to the overhead of an m file function Passing a handle to a built in function is because the interpreter is not involved in the internal loop For a
Definition: cellfun.cc:398
Template for two dimensional diagonal array with math operators.
Definition: MDiagArray2.h:33

Definition at line 55 of file MDiagArray2.cc.

Function Documentation

template<typename T >
MDiagArray2<T> operator* ( const MDiagArray2< T > &  a,
const T &  s 
)

Definition at line 63 of file MDiagArray2.cc.

template<typename T >
MDiagArray2<T> operator* ( const T &  s,
const MDiagArray2< T > &  a 
)

Definition at line 70 of file MDiagArray2.cc.

References a, DiagArray2< T >::d1, DiagArray2< T >::d2, mx_inline_mul(), and s.

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

Definition at line 89 of file MDiagArray2.cc.

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

Definition at line 97 of file MDiagArray2.cc.

References a.

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

Definition at line 90 of file MDiagArray2.cc.

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

Definition at line 104 of file MDiagArray2.cc.

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

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

Definition at line 64 of file MDiagArray2.cc.

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

Definition at line 91 of file MDiagArray2.cc.