public API
(
switch to internal
)
-
revision 3.6.7
casadi
core
runtime
casadi_axpy.hpp
1
// NOLINT(legal/copyright)
2
// SYMBOL "axpy"
3
template
<
typename
T1>
4
void
casadi_axpy(casadi_int n, T1 alpha,
const
T1* x, T1* y) {
5
casadi_int i;
6
if
(!x || !y)
return
;
7
for
(i=0; i<n; ++i) *y++ += alpha**x++;
8
}