2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-02-22 03:42:19 +00:00

Documentation update and some fixes.

This commit is contained in:
Jörg Walter
2003-02-04 07:22:11 +00:00
parent 3e364e0c36
commit 5d0b130d54
77 changed files with 14864 additions and 22837 deletions

View File

@@ -0,0 +1,13 @@
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/io.hpp>
int main () {
using namespace boost::numeric::ublas;
matrix<double> m1 (3, 3), m2 (3, 3);
for (unsigned i = 0; i < std::min (m1.size1 (), m2.size1 ()); ++ i)
for (unsigned j = 0; j < std::min (m1.size2 (), m2.size2 ()); ++ j)
m1 (i, j) = m2 (i, j) = 3 * i + j;
std::cout << prod (m1, m2) << std::endl;
}