Zephyr Scientific Library (zscilib)
|
Unary and binary operands that can be performed on matrix coefficients. More...
Typedefs | |
typedef enum zsl_mtx_unary_op | zsl_mtx_unary_op_t |
Component-wise unary operations. More... | |
typedef enum zsl_mtx_binary_op | zsl_mtx_binary_op_t |
Component-wise binary operations. More... | |
Unary and binary operands that can be performed on matrix coefficients.
typedef enum zsl_mtx_binary_op zsl_mtx_binary_op_t |
Component-wise binary operations.
typedef enum zsl_mtx_unary_op zsl_mtx_unary_op_t |
Component-wise unary operations.
enum zsl_mtx_binary_op |
Component-wise binary operations.
Definition at line 105 of file matrices.h.
enum zsl_mtx_unary_op |
Component-wise unary operations.
Definition at line 81 of file matrices.h.
int zsl_mtx_binary_func | ( | struct zsl_mtx * | ma, |
struct zsl_mtx * | mb, | ||
struct zsl_mtx * | mc, | ||
zsl_mtx_binary_fn_t | fn | ||
) |
Applies a component-wise binary operztion on every coefficient in symmetrical matrices 'ma' and 'mb', with the results being stored in the identically shaped 'mc' matrix. The actual binary operation is executed using the specified 'zsl_mtx_binary_fn_t' callback.
ma | Pointer to first zsl_mtx to use in the binary operation. |
mb | Pointer to second zsl_mtx to use in the binary operation. |
mc | Pointer to output zsl_mtx used to store results. |
fn | The zsl_mtx_binary_fn_t instance to call. |
Definition at line 347 of file matrices.c.
int zsl_mtx_binary_op | ( | struct zsl_mtx * | ma, |
struct zsl_mtx * | mb, | ||
struct zsl_mtx * | mc, | ||
zsl_mtx_binary_op_t | op | ||
) |
Applies a component-wise binary operation on every coefficient in symmetrical matrices 'ma' and 'mb', with the results being stored in the identically shaped mc
matrix.
ma | Pointer to first zsl_mtx to use in the binary operation. |
mb | Pointer to second zsl_mtx to use in the binary operation. |
mc | Pointer to output zsl_mtx used to store results. |
op | The binary operation to apply to each coefficient. |
Definition at line 286 of file matrices.c.
Referenced by zsl_mtx_add(), zsl_mtx_add_d(), zsl_mtx_sub(), and zsl_mtx_sub_d().
int zsl_mtx_unary_func | ( | struct zsl_mtx * | m, |
zsl_mtx_unary_fn_t | fn | ||
) |
Applies a unary function on every coefficient in matrix 'm', using the specified 'zsl_mtx_apply_unary_fn_t' instance.
m | Pointer to the zsl_mtx to use. |
fn | The zsl_mtx_unary_fn_t instance to call. |
Definition at line 266 of file matrices.c.
int zsl_mtx_unary_op | ( | struct zsl_mtx * | m, |
zsl_mtx_unary_op_t | op | ||
) |
Applies a unary operand on every coefficient in matrix 'm'.
m | Pointer to the zsl_mtx to use. |
op | The unary operation to apply to each coefficient. |
Definition at line 191 of file matrices.c.