Boost logo

Ublas :

Subject: Re: [ublas] Numeric traits for ublas bounded_vector and matrix
From: Rutger ter Borg (rutger_at_[hidden])
Date: 2010-02-22 12:34:39


Jesse Perla wrote:

> But boost::numeric::bindings::result_of::size<
> ublas::bounded_vector<double,3>
>>::type == ptrdiff_t ...which is not what we want.
>

Are you sure?

ublas::bounded_matrix< double, 10, 10 > A( 3, 3 );
std::cout << A.size1() << " by " << A.size2() << std::endl;
A.resize( 6, 6 );
std::cout << A.size1() << " by " << A.size2() << std::endl;

gives

3 by 3
6 by 6

which doesn't look like compile-time determined sizes to me...

Cheers,

Rutger