Boost logo

Ublas :

From: Gunter Winkler (guwi17_at_[hidden])
Date: 2006-11-22 04:12:24


On Tuesday 21 November 2006 17:45, Nico Galoppo wrote:
> template <typename matrix_type>
> void foo(matrix_type & A)
> {
> symmetric(A, matrix_type::triangular_type);
> }
>
> The above obviously doesn't work, because matrix_type::triangular_type is
> private. Is there a traits mechanism available that enables such code?

There is no triangular_traits type, but it should be possible to use something
like:

template< class T, class TRI, class L, class A >
void foo(const triangular_matrix<T, TRI, L, A>& m)
{
  return bar(m, TRI());
}