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) Add two matrices: \(A + B\). Allocates.
(3) Add two vectors: \(x + y\). Allocates.