Boost logo

Ublas :

From: Manoj Rajagopalan (rmanoj_at_[hidden])
Date: 2006-11-17 11:24:34


hi

  does ublas provide some tags/flags or traits to discriminate between
assignable and non-assignable matrix_expression<E> types?

   For example, if I have to write a function that works with matrix<E>
as well as submatrices (created using the subrange() functions for
example). Then my function prototype must accept an input of type
matrix_expression<E>

   But nothing stops me from passing a non-assignable expression like
the sum of two matrices, say. How does ublas handle this?

thanks in advance
Manoj