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
Classes | Macros
MSparse.h File Reference
#include "octave-config.h"
#include "quit.h"
#include "lo-error.h"
#include "Sparse.h"
#include "MArray.h"
#include "Array-util.h"
#include "MSparse.cc"
Include dependency graph for MSparse.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MSparse< T >
 

Macros

#define INSTANTIATE_SPARSE_FRIENDS(T, API)
 
#define SPARSE_BINOP_DECL(A_T, T, F, API, X_T, Y_T)
 
#define SPARSE_BINOP_FWD_FCN(R, F, T, C_X, X_T, C_Y, Y_T)
 
#define SPARSE_FORWARD_DEFS(B, R, F, T)
 
#define SPARSE_OP_ASSIGN_DECL(T, OP, API)
 
#define SPARSE_OP_ASSIGN_FWD_FCN(R, F, T, C_X, X_T, C_Y, Y_T)
 
#define SPARSE_UNOP_DECL(T, OP, API)
 
#define SPARSE_UNOP_FWD_FCN(R, F, T, C_X, X_T)
 

Macro Definition Documentation

#define INSTANTIATE_SPARSE_FRIENDS (   T,
  API 
)
Value:
SPARSE_OP_ASSIGN_DECL (T, +=, API); \
SPARSE_UNOP_DECL (T, +, API); \
SPARSE_UNOP_DECL (T, -, API); \
SPARSE_BINOP_DECL (MArray, T, operator +, API, MSparse<T>, T); \
SPARSE_BINOP_DECL (MArray, T, operator -, API, MSparse<T>, T); \
SPARSE_BINOP_DECL (MSparse, T, operator *, API, MSparse<T>, T); \
SPARSE_BINOP_DECL (MSparse, T, operator /, API, MSparse<T>, T); \
SPARSE_BINOP_DECL (MArray, T, operator +, API, T, MSparse<T>); \
SPARSE_BINOP_DECL (MArray, T, operator -, API, T, MSparse<T>); \
SPARSE_BINOP_DECL (MSparse, T, operator *, API, T, MSparse<T>); \
SPARSE_BINOP_DECL (MSparse, T, operator /, API, T, MSparse<T>); \
ComplexColumnVector product(const ComplexColumnVector &x, const ComplexColumnVector &y)
Definition: CColVector.h:151
Template for N-dimensional array classes with like-type math operators.
Definition: MArray.h:32
#define SPARSE_UNOP_DECL(T, OP, API)
Definition: MSparse.h:131
#define SPARSE_OP_ASSIGN_DECL(T, OP, API)
Definition: MSparse.h:126
ComplexColumnVector quotient(const ComplexColumnVector &x, const ComplexColumnVector &y)
Definition: CColVector.h:151
#define SPARSE_BINOP_DECL(A_T, T, F, API, X_T, Y_T)
Definition: MSparse.h:136

Definition at line 168 of file MSparse.h.

#define SPARSE_BINOP_DECL (   A_T,
  T,
  F,
  API,
  X_T,
  Y_T 
)
Value:
template API A_T<T> \
F (const X_T&, const Y_T&)
void F(const TSRC *v, TRES *r, octave_idx_type m, octave_idx_type n)
Definition: mx-inlines.cc:719

Definition at line 136 of file MSparse.h.

#define SPARSE_BINOP_FWD_FCN (   R,
  F,
  T,
  C_X,
  X_T,
  C_Y,
  Y_T 
)
Value:
inline R \
F (const X_T& x, const Y_T& y) \
{ \
return R (F (C_X (x), C_Y (y))); \
}
the element is set to zero In other the statement xample y
Definition: data.cc:5342
F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T F77_REAL F77_REAL &F77_RET_T F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE * x
void F(const TSRC *v, TRES *r, octave_idx_type m, octave_idx_type n)
Definition: mx-inlines.cc:719

Definition at line 160 of file MSparse.h.

#define SPARSE_FORWARD_DEFS (   B,
  R,
  F,
 
)
Value:
SPARSE_OP_ASSIGN_FWD_FCN (R, operator +=, T, dynamic_cast<B<T>&>, \
R, dynamic_cast<const B<T>&>, R) \
SPARSE_OP_ASSIGN_FWD_FCN (R, operator -=, T, dynamic_cast<B<T>&>, \
R, dynamic_cast<const B<T>&>, R) \
SPARSE_UNOP_FWD_FCN (R, operator +, T, dynamic_cast<const B<T>&>, R) \
SPARSE_UNOP_FWD_FCN (R, operator -, T, dynamic_cast<const B<T>&>, R) \
SPARSE_BINOP_FWD_FCN (F, operator +, T, dynamic_cast<const B<T>&>, R, , T) \
SPARSE_BINOP_FWD_FCN (F, operator -, T, dynamic_cast<const B<T>&>, R, , T) \
SPARSE_BINOP_FWD_FCN (R, operator *, T, dynamic_cast<const B<T>&>, R, , T) \
SPARSE_BINOP_FWD_FCN (R, operator /, T, dynamic_cast<const B<T>&>, R, , T) \
SPARSE_BINOP_FWD_FCN (F, operator +, T, , T, dynamic_cast<const B<T>&>, R) \
SPARSE_BINOP_FWD_FCN (F, operator -, T, , T, dynamic_cast<const B<T>&>, R) \
SPARSE_BINOP_FWD_FCN (R, operator *, T, , T, dynamic_cast<const B<T>&>, R) \
SPARSE_BINOP_FWD_FCN (R, operator /, T, , T, dynamic_cast<const B<T>&>, R) \
SPARSE_BINOP_FWD_FCN (R, operator +, T, dynamic_cast<const B<T>&>, \
R, dynamic_cast<const B<T>&>, R) \
SPARSE_BINOP_FWD_FCN (R, operator -, T, dynamic_cast<const B<T>&>, \
R, dynamic_cast<const B<T>&>, R) \
SPARSE_BINOP_FWD_FCN (R, product, T, dynamic_cast<const B<T>&>, \
R, dynamic_cast<const B<T>&>, R) \
SPARSE_BINOP_FWD_FCN (R, quotient, T, dynamic_cast<const B<T>&>, \
R, dynamic_cast<const B<T>&>, R)
ComplexColumnVector product(const ComplexColumnVector &x, const ComplexColumnVector &y)
Definition: CColVector.h:151
#define SPARSE_BINOP_FWD_FCN(R, F, T, C_X, X_T, C_Y, Y_T)
Definition: MSparse.h:160
ComplexColumnVector quotient(const ComplexColumnVector &x, const ComplexColumnVector &y)
Definition: CColVector.h:151
#define SPARSE_UNOP_FWD_FCN(R, F, T, C_X, X_T)
Definition: MSparse.h:151
#define SPARSE_OP_ASSIGN_FWD_FCN(R, F, T, C_X, X_T, C_Y, Y_T)
Definition: MSparse.h:142
void F(const TSRC *v, TRES *r, octave_idx_type m, octave_idx_type n)
Definition: mx-inlines.cc:719

Definition at line 188 of file MSparse.h.

#define SPARSE_OP_ASSIGN_DECL (   T,
  OP,
  API 
)
Value:
template API MSparse<T>& \
operator OP (MSparse<T>&, const MSparse<T>&)

Definition at line 126 of file MSparse.h.

#define SPARSE_OP_ASSIGN_FWD_FCN (   R,
  F,
  T,
  C_X,
  X_T,
  C_Y,
  Y_T 
)
Value:
inline R \
F (X_T& x, const Y_T& y) \
{ \
return R (F (C_X (x), C_Y (y))); \
}
the element is set to zero In other the statement xample y
Definition: data.cc:5342
F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T F77_REAL F77_REAL &F77_RET_T F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE * x
void F(const TSRC *v, TRES *r, octave_idx_type m, octave_idx_type n)
Definition: mx-inlines.cc:719

Definition at line 142 of file MSparse.h.

#define SPARSE_UNOP_DECL (   T,
  OP,
  API 
)
Value:
template API MSparse<T> \
operator OP (const MSparse<T>&)

Definition at line 131 of file MSparse.h.

#define SPARSE_UNOP_FWD_FCN (   R,
  F,
  T,
  C_X,
  X_T 
)
Value:
inline R \
F (const X_T& x) \
{ \
return R (F (C_X (x))); \
}
F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T F77_REAL F77_REAL &F77_RET_T F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE * x
void F(const TSRC *v, TRES *r, octave_idx_type m, octave_idx_type n)
Definition: mx-inlines.cc:719

Definition at line 151 of file MSparse.h.