Boost logo

Ublas :

Subject: [ublas] [bindings][traits] matrix_traits
From: Rutger ter Borg (rutger_at_[hidden])
Date: 2009-03-12 11:36:03


All,

after having a closer look at the current matrix_traits, I think we need one
more concept that is orthogonal on the current matrix_structure. Right now,
it has matrix_structure type which can be something along the line of

  struct general_t {};
  struct symmetric_t {};
  struct symmetric_packed_t {};
  struct hermitian_t {};
  struct hermitian_packed_t {};
  struct banded_t {};
  struct triangular_t {};
  struct triangular_packed_t {};

Now, what I think we could make it ourselves a bit easier if we split this
in matrix structure (or property) and storage layout.

E.g.,

matrix_traits<T>::matrix_storage
dense_t {};
packed_t {};
diagonal_t {};
bidiagonal_t {};
tridiagonal_t {};
banded_t {};

matrix_traits<T>::matrix_structure
general_t {};
symmetric_t {};
hermitian_t {};
triangular_t {};
positive_definite_t {};
hessenberg_t {};
orthogonal_t {};
unitary_t {};

I even think this list is near exhaustive. What do you think?

Regards,

Rutger