-
Notifications
You must be signed in to change notification settings - Fork 1
/
MATLAB
181 lines (179 loc) · 10.6 KB
/
MATLAB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
The following table try to find a MATLAB counterpart of current Boost.uBLASx functions.
Notation:
* upper case letter (A, B, ...) denotes a matrix
* lower case letter (a, b, ...) denotes a scalar
* lower case double letter (aa, bb, ...) denotes a vector
======================================|=======================================
Boost.uBLASx | MATLAB
======================================|=======================================
abs | abs
--------------------------------------|---------------------------------------
all | all
--------------------------------------|---------------------------------------
any | any
--------------------------------------|---------------------------------------
balance | balance
--------------------------------------|---------------------------------------
begin | ???
--------------------------------------|---------------------------------------
cat | cat
--------------------------------------|---------------------------------------
cat | cat,
| horzcat,
| [A B],
| vertcat,
| [A; B]
--------------------------------------|---------------------------------------
cat_columns | vertcat,
| [A; B]
--------------------------------------|---------------------------------------
cat_rows | horzcat,
| [A B]
--------------------------------------|---------------------------------------
cholesky_decompose | chol
--------------------------------------|---------------------------------------
cholesky_solve | ???
--------------------------------------|---------------------------------------
cond, | cond
cond_1, |
cond_2, |
cond_inf, |
cond_frobenius, |
--------------------------------------|---------------------------------------
cumsum | cumsum
--------------------------------------|---------------------------------------
diag | diag
--------------------------------------|---------------------------------------
dot | dot
--------------------------------------|---------------------------------------
eigen | eig
--------------------------------------|---------------------------------------
pow | .^
--------------------------------------|---------------------------------------
empty | isempty
--------------------------------------|---------------------------------------
end | ???
--------------------------------------|---------------------------------------
eps | eps
--------------------------------------|---------------------------------------
exp | exp
--------------------------------------|---------------------------------------
expm | expm
--------------------------------------|---------------------------------------
eye | eye
--------------------------------------|---------------------------------------
find | [~,~,vv] = find
--------------------------------------|---------------------------------------
for_each | ???
--------------------------------------|---------------------------------------
hilb | hilb
--------------------------------------|---------------------------------------
hold | ???
--------------------------------------|---------------------------------------
illcond | ???
--------------------------------------|---------------------------------------
incomplete_cholesky_decompose | ichol
--------------------------------------|---------------------------------------
inv | inv
--------------------------------------|---------------------------------------
isfinite | isfinite
--------------------------------------|---------------------------------------
isinf | isinf
--------------------------------------|---------------------------------------
linspace | linspace
--------------------------------------|---------------------------------------
log10 | log10
--------------------------------------|---------------------------------------
log2 | log2
--------------------------------------|---------------------------------------
log | log
--------------------------------------|---------------------------------------
logspace | logspace
--------------------------------------|---------------------------------------
lsq | A \ bb (for overdetermined systems),
| lsqr,
| mldivide (for overdetermined systems)
--------------------------------------|---------------------------------------
lu | A \ bb
--------------------------------------|---------------------------------------
lu_decompose | lu
--------------------------------------|---------------------------------------
max | max
--------------------------------------|---------------------------------------
min | min
--------------------------------------|---------------------------------------
mldivide | mldivide,
| A \ B
--------------------------------------|---------------------------------------
num_columns | size(A,2)
--------------------------------------|---------------------------------------
num_rows | size(A,1)
--------------------------------------|---------------------------------------
operator/ | a ./ bb,
| a ./ B
--------------------------------------|---------------------------------------
operator== | isequal
--------------------------------------|---------------------------------------
operator!= | ~isequal
--------------------------------------|---------------------------------------
pow2 | pow2
--------------------------------------|---------------------------------------
mpow | A^B,
| mpower
--------------------------------------|---------------------------------------
ql_decompose, | ql
ql_decomposition<...>::decompose |
--------------------------------------|---------------------------------------
qr_decompose, | qr
qr_decomposition<...>::decompose |
--------------------------------------|---------------------------------------
qz_decompose, | qz
qz_decomposition<...>::decompose |
--------------------------------------|---------------------------------------
qz_reorder, | ordqz
qz_decomposition<...>::reorder |
--------------------------------------|---------------------------------------
rank | rank
--------------------------------------|---------------------------------------
rcond | rcond
--------------------------------------|---------------------------------------
realmax | realmax
--------------------------------------|---------------------------------------
realmin | realmin
--------------------------------------|---------------------------------------
rep | repmat
--------------------------------------|---------------------------------------
reshape | reshape
--------------------------------------|---------------------------------------
rot90 | rot90
--------------------------------------|---------------------------------------
round | round
--------------------------------------|---------------------------------------
seq | a:b
--------------------------------------|---------------------------------------
sign | sign
--------------------------------------|---------------------------------------
size | size(v)
--------------------------------------|---------------------------------------
sqr | aa .* aa,
| A .* A
--------------------------------------|---------------------------------------
sqrt | sqrt
--------------------------------------|---------------------------------------
sum | sum
--------------------------------------|---------------------------------------
svd | svd
--------------------------------------|---------------------------------------
tanh | tanh
--------------------------------------|---------------------------------------
trace | trace
--------------------------------------|---------------------------------------
transform | ???
--------------------------------------|---------------------------------------
tril | tril
--------------------------------------|---------------------------------------
triu | triu
--------------------------------------|---------------------------------------
which | i = find,
| [i,j] = find
======================================|=======================================