Hi Patrick, you wrote:
Answering myself,
That happens sometimes ;-)
without a symmetric type I can just check for a diagonal matrix inside the pinv function and branch, see code below.
As far as I've understood you're looking for a type safe diagonal variant of
banded_matrix. Would it be helpful, if we'd go to add something like
// Diagonal matrix class
template
Are there some recommendations for namespaces for functions like "pinv" ? Inside the loop, shall I use size_type?
I currently haven't enough time to look into a SVD implementation. So I'll cc this reply to http://groups.yahoo.com/group/ublas-dev. HTH, Joerg [snip]