Boost logo

Ublas :

From: Nuno Sucena Almeida (slug_at_[hidden])
Date: 2007-04-15 13:04:49


And one more for matrices:

  template<typename E>
  BOOST_UBLAS_INLINE
  typename matrix_unary1_traits<E, scalar_abs<typename E::value_type> >::result_type
  abs (matrix_expression<E> const& e) {
    typedef typename matrix_unary1_traits<E, scalar_abs<typename E::value_type> >::expression_type
      expression_type;
    return expression_type (e ());
  }

On Fri, Apr 13, 2007 at 01:33:46PM -0400, Neal Becker wrote:
| A useful addition:
| namespace boost { namespace numeric { namespace ublas {
| template<class T>
| struct scalar_abs:

-- 
http://aeminium.org/slug
D30B 54C0 40A7 7D61 C44F  4BA4 F071 2168 F494 ACB9