MTL 4: OP+=
Details: mtl::matrix::add
For example:
#include <iostream> #include <boost/numeric/mtl/mtl.hpp> int main(int, char**) { using namespace mtl; const unsigned n= 10; dense2D<int, matrix::parameters<col_major> > b(n, n); morton_dense<double, 0x55555555> c(n, n); morton_dense<double, 0x555555f0> d(n, n); b= 0; d= 0; d(2, 2)= 3; b[2][3]= 4; c= 2.0; std::cout << std::complex<double>(0, 1) * c; d*= 7.0; d+= c - b; d-= b; return 0; }
Return to Overview Table of Content
OP+= -- MTL 4 -- Peter Gottschling and Andrew Lumsdaine
-- Gen. with
rev. 7542
on 7 Apr 2011 by doxygen 1.5.9 -- © 2010 by SimuNova UG.