|
Ublas : |
Subject: Re: [ublas] size1 and size2
From: Rutger ter Borg (rutger_at_[hidden])
Date: 2009-09-14 09:32:46
Curtis Gehman wrote:
[snip]
> Moreover, size1 is
> completely general; it makes no assumptions about the interpretation
> of the matrix data.
[snip]
IMHO, the addition of interpretation is the whole point of a linear algebra
library. Without this meaning, it's just a block of data, and, IMHO,
attaching the name "matrix" to it doesn't make sense. E.g., multi_array
boost::multi_array< double, 2 > m_data;
or "2d_valarray" would much better fit the description for something that
provides "size1" and "size2". Without interpretations in the context of
linear algebra, we might as well allow
A = op1( b, op2( c ) );
and refer users to the manual :-).
Cheers,
Rutger