Boost logo

Ublas :

From: Gunter Winkler (guwi17_at_[hidden])
Date: 2007-07-14 16:51:13

Am Donnerstag, 12. Juli 2007 19:10 schrieb Nico Galoppo:
> Hi,
> what is the preferred approach to implement ublas functions that work
> for both vectors and matrices? Is it possible to write a function
> that takes a matrix_expression<> combining this with some sort of
> matrix adapter for matrices such that vectors can be transparently
> passed onto these functions?

I don't think that this is possible since the matrix concept is
different from the vector concept. Maybe it works if you create a
matrix_from_vector class that maps the matrix concept to the vector