Boost logo

Ublas :

From: Gunter Winkler (guwi17_at_[hidden])
Date: 2007-03-21 10:29:14


On Wednesday 21 March 2007 15:21, Gross, Steve wrote:
> Does ublas have a simple way to print out a matrix (by streaming it to
> an ostream) ? I've found tons of custom solutions out there, but it's
> not clear to me if there's anything built-in yet.

#include <boost/numeric/ublas/io.hpp>

std::cout << matrix;

for sparse types I suggest example 4:

http://www.bauv.unibw-muenchen.de/~winkler/ublas/examples/index.html

mfg
Gunter