Boost logo

Ublas :

From: Michele De Stefano (micdestefano_at_[hidden])
Date: 2007-09-18 09:01:00

The issue, I think, is not the serialization of a sub-matrix.
First of all I have to say that I've not tried the serialization of
uBLAS matrices.

The problem is this: imagine you have written to file the whole
matrix, using the boost::serialization facilities. Imagine that now,
you want to load in memory only
a sub-matrix of the matrix you have just saved. I think this is not
possible if you have
implemented the serialization as described into the
boost::serialization documentation,
because once you have written to file the whole matrix, the only thing
you can do is to
re-load it as a whole.

Am I wrong ?

On 9/18/07, Gunter Winkler <guwi17_at_[hidden]> wrote:
> Am Dienstag, 18. September 2007 08:55 schrieb Michele De Stefano:
> > The other way (i.e. serializing the matrix through
> > boost::serialization) is powerful but I think it has a drawback: it
> > is perfect is you always want to read/write the whole matrix, but it
> > is useless if you want to read/write sub-matrices (e.g. if you have a
> > big matrix on file, and you want to read a sub-matrix only).
> Is the serialization of submatrices a common issue? If so I could add
> serialization support to matrix proxies. However, deserialization is a
> little tricky because a matrix proxy can not change its size.
> mfg
> Gunter
> _______________________________________________
> ublas mailing list
> ublas_at_[hidden]