GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
MSparse.h File Reference
#include "octave-config.h"
#include "Array-util.h"
#include "MArray.h"
#include "Sparse.h"
#include "lo-error.h"
#include "quit.h"
#include "MSparse.cc"

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

◆ INSTANTIATE_SPARSE_FRIENDS

#define INSTANTIATE_SPARSE_FRIENDS (   T,
  API 
)
Value:
SPARSE_OP_ASSIGN_DECL (T, +=, API); \
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>); \
SPARSE_BINOP_DECL (MSparse, T, operator +, API, MSparse<T>, MSparse<T>); \
SPARSE_BINOP_DECL (MSparse, T, operator -, API, MSparse<T>, MSparse<T>); \
SPARSE_BINOP_DECL (MSparse, T, quotient, API, MSparse<T>, MSparse<T>); \
SPARSE_BINOP_DECL (MSparse, T, product, API, MSparse<T>, MSparse<T>);
ComplexColumnVector quotient(const ComplexColumnVector &x, const ComplexColumnVector &y)
Definition: CColVector.h:158
ComplexColumnVector product(const ComplexColumnVector &x, const ComplexColumnVector &y)
Definition: CColVector.h:158
#define SPARSE_OP_ASSIGN_DECL(T, OP, API)
Definition: MSparse.h:132
Template for N-dimensional array classes with like-type math operators.
Definition: MArray.h:63

Definition at line 174 of file MSparse.h.

◆ SPARSE_BINOP_DECL

#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&)

Definition at line 142 of file MSparse.h.

◆ SPARSE_BINOP_FWD_FCN

#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))); \
}
F77_RET_T const F77_DBLE * x

Definition at line 166 of file MSparse.h.

◆ SPARSE_FORWARD_DEFS

#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)
#define SPARSE_OP_ASSIGN_FWD_FCN(R, F, T, C_X, X_T, C_Y, Y_T)
Definition: MSparse.h:148

Definition at line 194 of file MSparse.h.

◆ SPARSE_OP_ASSIGN_DECL

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

Definition at line 132 of file MSparse.h.

◆ SPARSE_OP_ASSIGN_FWD_FCN

#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))); \
}

Definition at line 148 of file MSparse.h.

◆ SPARSE_UNOP_DECL

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

Definition at line 137 of file MSparse.h.

◆ SPARSE_UNOP_FWD_FCN

#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))); \
}

Definition at line 157 of file MSparse.h.