Zephyr Scientific Library (zscilib)
Data Structures | Macros
Structs and Macros

Common structs and macros for working with matrices. More...

Data Structures

struct  zsl_mtx
 Represents a m x n matrix, with data stored in row-major order. More...
 

Macros

#define EEIGENSIZE   (100)
 
#define ECOMPLEXVAL   (101)
 
#define ZSL_MATRIX_DEF(name, m, n)
 

Detailed Description

Common structs and macros for working with matrices.

Macro Definition Documentation

◆ ECOMPLEXVAL

#define ECOMPLEXVAL   (101)

Error: Occurs when the input matrix has complex eigenvalues.

Definition at line 43 of file matrices.h.

◆ EEIGENSIZE

#define EEIGENSIZE   (100)

Error: The number of eigenvectors is less than the matrice's dimension.

Definition at line 41 of file matrices.h.

◆ ZSL_MATRIX_DEF

#define ZSL_MATRIX_DEF (   name,
  m,
 
)
Value:
; \
zsl_real_t name ## _mtx[m * n]; \
struct zsl_mtx name = { \
.sz_rows = m, \
.sz_cols = n, \
.data = name ## _mtx \
}

Macro to declare a matrix of shape m*n.

Be sure to also call 'zsl_mtx_init' on the matrix after this macro, since matrices declared on the stack may have non-zero values by default!

Definition at line 61 of file matrices.h.

zsl_mtx
Represents a m x n matrix, with data stored in row-major order.
Definition: matrices.h:46
zsl_clr_obs_data::name
char * name
Definition: colorimetry.h:457