|
Ublas : |
Subject: Re: [ublas] [bindings][lapack] Interface design
From: Rutger ter Borg (rutger_at_[hidden])
Date: 2008-12-04 04:51:14
Rutger ter Borg wrote:
>
> template< typename T >
> struct vector_traits< left_eigenvector_impl< T > >: unwrap_traits<
> left_eigenvector_impl< T > >{};
>
> template< typename T >
> struct unwrap_traits: vector_traits< typename T::containing_type > {
> typedef vector_traits< typename T::containing_type >::pointer pointer;
> inline pointer storage( T &v ) {
> // pass reference
> return vector_traits< T::containing_type >::storage( v() );
> }
> // same for size and stride
> };
>
Should be a matrix, of course. But I guess the idea is there :-).
Rutger