![]() |
Blitz Devel : |
From: Maciej Radziejewski (maciejr_copies_at_[hidden])
Date: 2004-12-16 03:25:04
Hi,
Being new to Blitz++ I tried to fill a 2D array in the
following way:
Array<double, 2> A;
double a, b, c;
int count_lines;
// ...
for (int i=0; i<count_lines; ++i)
{
// Process a line of a data file
// ...
A (i, Range::all()) = a, b, c;
}
It seems to work, but only by accident! If I try it
with a column instead (i.e. a proper slice) it starts
with the proper element, but then fills the subsequent
elements in the source array arr, not in the slice.
If this is by design, then I would suggest to state it
specifically in the manual that initialization with
comma-delimited values is only allowed on arrays, not
on subarrays.
Anyway, many thanks to the author for a great library!
Maciej Radziejewski.
__________________________________
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com