num::add¶
Defined in header <container/matrix_expr.hpp>, <container/vector_ops.hpp>
void add(const vec<real> &x, const vec<real> &y, vec<real> &z) noexcept; // (1)
mat<real> add(const mat<real> &A, const mat<real> &B); // (2)
vec<real> add(const vec<real> &x, const vec<real> &y); // (3)
(1) Undocumented.
(2) Return A+B.
Allocates; prefer the out-param form in hot loops.
(3) Return x+y.
Allocates; prefer the out-param form in hot loops.