From: Thomas Lemaire (thomas.lemaire_at_[hidden])
Date: 2005-02-02 03:28:36
I am wondering what is the best way to assign values to matrix or
vector. My need is to define some given matrix or vector with known
values to run tests.
In the ublas test directories, such assignment are done via a for loop,
but this does not meet my needs ! The values for my matrix does not obey
a simple function of (i,j) !
I tryed to use operator>>, but it is not always defined (for
symmetric_matrix for example)
What's the _good_ solution ?
I would like to avoid writing many lines, prone to errors, like this: