-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibm.h
82 lines (57 loc) · 1.98 KB
/
libm.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#ifndef LIBM_H_
#define LIBM_H_
#include <gsl/gsl_blas.h>
#include "as_tree.h"
double
libm_digit_op(double a, double b, opcode_type_t op);
/* digit op Vector */
gsl_vector*
libm_digit_vector_add_op(double a, gsl_vector *b, opcode_type_t op);
gsl_vector*
libm_digit_vector_mult_op(double a, gsl_vector *b, opcode_type_t op);
double
libm_digit_vector_logic_op(double a, gsl_vector *b, opcode_type_t op);
gsl_vector*
libm_digit_vector_rel_op(double a, gsl_vector *b, opcode_type_t op);
/* Vector op digit */
gsl_vector*
libm_vector_digit_mult_op(gsl_vector *a, double b, opcode_type_t op);
/* digit op Matrix */
gsl_matrix*
libm_digit_matrix_add_op(double a, gsl_matrix *b, opcode_type_t op);
gsl_matrix*
libm_digit_matrix_mult_op(double a, gsl_matrix *b, opcode_type_t op);
double
libm_digit_matrix_logic_op(double a, gsl_matrix *b, opcode_type_t op);
gsl_matrix*
libm_digit_matrix_rel_op(double a, gsl_matrix *b, opcode_type_t op);
/* Matrix op digit */
gsl_matrix*
libm_matrix_digit_mult_op(gsl_matrix *a, double b, opcode_type_t op);
/* Vector op Vector */
gsl_vector*
libm_vector_add_op(gsl_vector *a, gsl_vector *b, opcode_type_t op);
double
libm_vector_mult_op(gsl_vector *a, gsl_vector *b, opcode_type_t op);
double
libm_vector_logic_op(gsl_vector *a, gsl_vector *b, opcode_type_t op);
gsl_vector*
libm_vector_rel_op(gsl_vector *a, gsl_vector *b, opcode_type_t op);
/* Vector op Matrix */
gsl_vector*
libm_vector_matrix_mult_op(gsl_vector *a, gsl_matrix *b, opcode_type_t op);
/* Matrix op Vector */
gsl_vector*
libm_matrix_vector_mult_op(gsl_matrix *a, gsl_vector *b, opcode_type_t op);
/* Matrix op Matrix */
gsl_matrix*
libm_matrix_add_op(gsl_matrix *a, gsl_matrix *b, opcode_type_t op);
gsl_matrix*
libm_matrix_mult_op(gsl_matrix *a, gsl_matrix *b, opcode_type_t op);
double
libm_matrix_logic_op(gsl_matrix *a, gsl_matrix *b, opcode_type_t op);
gsl_matrix*
libm_matrix_rel_op(gsl_matrix *a, gsl_matrix *b, opcode_type_t op);
gsl_matrix*
libm_matrix_exp(gsl_matrix *a, int dg);
#endif /* LIBM_H_ */