LMMC
Lamina Mathematic core
载入中...
搜索中...
未找到
dense_elementwise.h
浏览该文件的文档.
1
2#ifndef LMMC_DENSE_ELEMENTWISE_H
3#define LMMC_DENSE_ELEMENTWISE_H
4
5#include "lmmc/dense_types.h"
6#include "lmmc/status.h"
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
29
49
67
85
105
123
140lmmc_status_t lmmc_vec_cmp_gt(const lmmc_vec_t* a, const lmmc_vec_t* b, int* out);
141
158lmmc_status_t lmmc_vec_cmp_lt(const lmmc_vec_t* a, const lmmc_vec_t* b, int* out);
159
176lmmc_status_t lmmc_vec_cmp_ge(const lmmc_vec_t* a, const lmmc_vec_t* b, int* out);
177
194lmmc_status_t lmmc_vec_cmp_le(const lmmc_vec_t* a, const lmmc_vec_t* b, int* out);
195
213lmmc_status_t lmmc_vec_cmp_eq(const lmmc_vec_t* a, const lmmc_vec_t* b, lmmc_real_t tol, int* out);
214
232
250
265
280
295
310
325
340
355
370
385
400
415
430
431#ifdef __cplusplus
432}
433#endif
434
435#endif
double lmmc_real_t
Public and internal LMMC real type.
lmmc_status_t lmmc_vec_apply_sqrt(const lmmc_vec_t *in, lmmc_vec_t *out)
对向量逐元素求平方根: 。
lmmc_status_t lmmc_vec_elementwise_div(const lmmc_vec_t *a, const lmmc_vec_t *b, lmmc_vec_t *c)
逐元素向量除法: 。
lmmc_status_t lmmc_vec_cmp_le(const lmmc_vec_t *a, const lmmc_vec_t *b, int *out)
逐元素向量小于等于比较: 。
lmmc_status_t lmmc_mat_apply(const lmmc_mat_t *in, lmmc_real_t(*func)(lmmc_real_t), lmmc_mat_t *out)
对矩阵逐元素应用标量函数: 。
lmmc_status_t lmmc_mat_apply_log(const lmmc_mat_t *in, lmmc_mat_t *out)
对矩阵逐元素求自然对数: 。
lmmc_status_t lmmc_mat_hadamard(const lmmc_mat_t *a, const lmmc_mat_t *b, lmmc_mat_t *c)
逐元素矩阵 Hadamard 乘积: 。
lmmc_status_t lmmc_vec_cmp_eq(const lmmc_vec_t *a, const lmmc_vec_t *b, lmmc_real_t tol, int *out)
逐元素向量近似相等比较: 。
lmmc_status_t lmmc_vec_cmp_ge(const lmmc_vec_t *a, const lmmc_vec_t *b, int *out)
逐元素向量大于等于比较: 。
lmmc_status_t lmmc_vec_hadamard(const lmmc_vec_t *a, const lmmc_vec_t *b, lmmc_vec_t *c)
逐元素向量 Hadamard 乘积: 。
lmmc_status_t lmmc_vec_cmp_gt(const lmmc_vec_t *a, const lmmc_vec_t *b, int *out)
逐元素向量大于比较: 。
lmmc_status_t lmmc_mat_elementwise_pow(const lmmc_mat_t *a, const lmmc_mat_t *b, lmmc_mat_t *c)
逐元素矩阵幂运算: 。
lmmc_status_t lmmc_vec_apply(const lmmc_vec_t *in, lmmc_real_t(*func)(lmmc_real_t), lmmc_vec_t *out)
对向量逐元素应用标量函数: 。
lmmc_status_t lmmc_mat_apply_sin(const lmmc_mat_t *in, lmmc_mat_t *out)
对矩阵逐元素求正弦: 。
lmmc_status_t lmmc_mat_apply_sqrt(const lmmc_mat_t *in, lmmc_mat_t *out)
对矩阵逐元素求平方根: 。
lmmc_status_t lmmc_vec_apply_cos(const lmmc_vec_t *in, lmmc_vec_t *out)
对向量逐元素求余弦: 。
lmmc_status_t lmmc_vec_elementwise_pow(const lmmc_vec_t *a, const lmmc_vec_t *b, lmmc_vec_t *c)
逐元素向量幂运算: 。
lmmc_status_t lmmc_vec_apply_exp(const lmmc_vec_t *in, lmmc_vec_t *out)
对向量逐元素求自然指数: 。
lmmc_status_t lmmc_mat_apply_exp(const lmmc_mat_t *in, lmmc_mat_t *out)
对矩阵逐元素求自然指数: 。
lmmc_status_t lmmc_mat_apply_cos(const lmmc_mat_t *in, lmmc_mat_t *out)
对矩阵逐元素求余弦: 。
lmmc_status_t lmmc_mat_apply_abs(const lmmc_mat_t *in, lmmc_mat_t *out)
对矩阵逐元素求绝对值: 。
lmmc_status_t lmmc_vec_cmp_lt(const lmmc_vec_t *a, const lmmc_vec_t *b, int *out)
逐元素向量小于比较: 。
lmmc_status_t lmmc_vec_apply_abs(const lmmc_vec_t *in, lmmc_vec_t *out)
对向量逐元素求绝对值: 。
lmmc_status_t lmmc_mat_elementwise_div(const lmmc_mat_t *a, const lmmc_mat_t *b, lmmc_mat_t *c)
逐元素矩阵除法: 。
lmmc_status_t lmmc_vec_apply_sin(const lmmc_vec_t *in, lmmc_vec_t *out)
对向量逐元素求正弦: 。
lmmc_status_t lmmc_vec_apply_log(const lmmc_vec_t *in, lmmc_vec_t *out)
对向量逐元素求自然对数: 。
行优先存储的稠密矩阵。
一维稠密向量。
LMMC 通用状态码定义.
lmmc_status_t
LMMC 库统一返回的状态码.