Boost logo

Ublas :

From: Gunter Winkler (guwi17_at_[hidden])
Date: 2006-10-31 10:34:57


On Tuesday 31 October 2006 16:25, Stefan Heinzmann wrote:
> Hi all,
>
> I want to use matrices stored as static const data (which can
> reside in read-only memory). I know about array_adaptor, but
> I can't seem to make it work with const data. As soon as I
> want to construct a matrix object and give it the adapted
> array, it fails with a compiler error. Obviously the standard
> matrix class wants to be able to copy data for resizing.

Can you create a small example which demonstrates this?

Please have a look at:

http://freshmeat.net/projects/tvmet/ (fixed size lin.alg.)
http://www.bauv.unibw-muenchen.de/~winkler/ublas/examples/index.html (Ex3)

mfg
Gunter