The Matrix to end all Matrix classes (Let's dream!)

Knud Soerensen 4tuu4k002 at sneakemail.com
Sat Dec 1 00:31:14 PST 2007


Don Clugston wrote:
> No, I don't have the perfect Matrix. I just want to explore the question
> of whether it exists.
> There are a plethora of C++ matrix libraries, all of which are far from
> perfect; they all involve trade-offs between various language limitations.
> In particular, the usage of expression templates creates all kinds of evil.
> 
> Requirements:
> 1. Must be compatible with future multi-dimensional array syntax such as
> double [7,5] m;
> 2. Must be theoretically capable of optimal performance.
> 3. Needs to support slices. This means we also need to support strided
> vectors. Therefore we also need matrix slices, and matrix references.
> Probably distinguishing between the T[] and T[new] concepts.
> 4. For storage we need packed, triangular, symmetric, banded, and sparse
> matrix support. (Possibly even 'calculated' matrix support, for
> user-defined matrix types which generate entries on-demand).
> 5. Can be generalized to tensors.
> 6. Nice error messages.

Take a look at the old vectorization debate.

http://all-technology.com/eigenpolls/dwishlist/index.php?it=10
http://www.google.com/search?q=vectorization+&domains=www.digitalmars.com&sitesearch=www.digitalmars.com



More information about the Digitalmars-d mailing list