vector view of a matrix

Hugues Demers <[email protected]> Mon, 2 Feb 2004 16:04:32 -0500
Newsgroups gmane.comp.lib.mtl.devel
Message-ID <20040202210432.GM664@neptune>
Hi,

I just discovered the MTL and I think it would fit my needs perfectly.
Now I would like to know if it's possible to have a vector view of a
matrix. Suppose a have this matrix:

M = [1 2]
    [3 4]

I want to have this view on it 

V = [1 2 3 4]. 

I don't want to duplicate the memory. Iterators won't do, because I want
to be able to do something like:

dot( V, V ). 

Is it possible to have those two representations?

Sorry, if I missed this in the doc, but it's rather poor on the subject.

Thank you,
Hugues Demers
_______________________________________________
This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/