39#define PI 3.14159265358979323846
42#ifndef C3E_32BIT_NUMBER
double c3e_number
A type representing a numerical value in C3E. Defaults to double precision.
Definition commons.h:50
A structure representing a tuple of two matrices.
Definition commons.h:86
c3e_matrix * b
Pointer to the second matrix in the tuple.
Definition commons.h:88
c3e_matrix * a
Pointer to the first matrix in the tuple.
Definition commons.h:87
Represents a mathematical matrix.
Definition commons.h:74
c3e_number * data
Pointer to the data array containing matrix elements.
Definition commons.h:77
uint32_t cols
The number of columns in the matrix.
Definition commons.h:76
uint32_t rows
The number of rows in the matrix.
Definition commons.h:75
Represents the Singular Value Decomposition (SVD) of a matrix.
Definition commons.h:98
c3e_matrix * left
Matrix containing the left singular vectors.
Definition commons.h:99
c3e_vector * singular
Vector containing the singular values.
Definition commons.h:101
c3e_matrix * right
Matrix containing the right singular vectors.
Definition commons.h:100
Represents a tensor, a multi-dimensional array of numerical values.
Definition commons.h:111
uint32_t dimensions
The number of dimensions in the tensor.
Definition commons.h:112
size_t dimension_size
The size of each dimension.
Definition commons.h:113
c3e_matrix ** matrices
Pointer to an array of matrices representing the tensor data.
Definition commons.h:115
c3e_vector * data
Pointer to a vector containing the tensor data.
Definition commons.h:116
Represents a mathematical vector.
Definition commons.h:62
c3e_number * data
Pointer to the data array containing vector elements.
Definition commons.h:64
uint32_t size
The number of elements in the vector.
Definition commons.h:63