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

Various struct, enums and macros related to vectors. More...

Data Structures

struct  zsl_vec
 Represents a vector. More...
 

Macros

#define ZSL_VECTOR_DEF(name, n)
 

Detailed Description

Various struct, enums and macros related to vectors.

Macro Definition Documentation

◆ ZSL_VECTOR_DEF

#define ZSL_VECTOR_DEF (   name,
 
)
Value:
zsl_real_t name ## _vec[n]; \
struct zsl_vec name = { \
.sz = n, \
.data = name ## _vec \
}

Macro to declare a vector of size n.

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

Definition at line 52 of file vectors.h.

zsl_clr_obs_data::name
char * name
Definition: colorimetry.h:457
zsl_vec
Represents a vector.
Definition: vectors.h:40
zsl_real_t
double zsl_real_t
Definition: zsl.h:51