Boost logo

Ublas :

Subject: Re: [ublas] poll: what's your uBLAS I/O usage ?
From: Andrea Cassioli (cassioliandre_at_[hidden])
Date: 2010-05-28 09:46:34


On Fri, May 28, 2010 at 3:30 PM, David Bellot <david.bellot_at_[hidden]> wrote:
> Questions:

>
> - what is your normal use of uBLAS IO function ?

Usually I use it for debugging purpose, so it would be nice a more
readable format. For data storing I prefere to write data in a more
compatible format, easier to be manipulate.

> - would you prefer more flexibility with boost::serialization ?

> - would you like to be able to load/save from/to other formats (matlab,
> etc...) ?

I'm not ued to interface my code with matlab, but standard
comm-separated (or even better blank space) output would be nice. For
instance, a plain format like:

0 0 0 0 0 0 0 0 0 0 0

for a vector would be easier if shell commands must be used (as cut,
grep, paste and so on...).

> - would you like to have more pretty printings ?

the matrix number of non zeros could be interesting for sparse matrices.

> - would you like to have dense optimized-to-the-extreme-very-compressed
> binary format ?
> - more suggestions ?

maybe a set of modifiers, as the std::ios, could be used to obtain a
variable print level: for instance a standard matrix printing might
looks like

matrix[2,2]

but say cout<<ublas::print_details(medium)<<A;

matrix[2,2]:

0 0
0 0

or even more

cout<<ublas::print_details(high)<<A;

> - what is your normal use of uBLAS IO function ?

Usually I use it for debugging purpose, so it would be nice a more
readable format. For data storing I prefere to write data in a more
compatible format, easier to be manipulate.

> - would you prefer more flexibility with boost::serialization ?

> - would you like to be able to load/save from/to other formats (matlab,
> etc...) ?

I'm not ued to interface my code with matlab, but standard
comm-separated (or even better blank space) output would be nice. For
instance, a plain format like:

0 0 0 0 0 0 0 0 0 0 0

for a vector would be easier if shell commands must be used (as cut,
grep, paste and so on...).

> - would you like to have more pretty printings ?

the matrix number of non zeros could be interesting for sparse matrices.

> - would you like to have dense optimized-to-the-extreme-very-compressed
> binary format ?
> - more suggestions ?

maybe a set of modifiers, as the std::ios, could be used to obtain a
variable print level: for instance a standard matrix printing might
looks like

0 0
0 0

but say cout<<ublas::print_details(medium)<<A;

matrix_type [2,2]:

0 0
0 0

and so on.

>
> Cheers,
> David
>

Thanks for your job David!
Cheers, Andrea

> --
> David Bellot, PhD
> david.bellot_at_[hidden]
> http://david.bellot.free.fr
>
>
> _______________________________________________
> ublas mailing list
> ublas_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/ublas
> Sent to: cassioliandre_at_[hidden]
>

-- 
Andrea Cassioli