Boost logo

Ublas :

Subject: Re: [ublas] Test results for getri and getrf
From: Rutger ter Borg (rutger_at_[hidden])
Date: 2009-03-08 13:30:42

Jesse Perla wrote:
> Also, when I change the code to:
> lapack::getri(A, ipiv, lapack::optimal_workspace());
> Iit creates the following results, which look like traits problems.:

I think it is, indeed. The expression

std::max( 1, traits::matrix_num_columns(a) );

is failing because of a comparison of std::ptrdiff_t and int. On my
platform, integer_t is int, which causes a

std::max( static_cast<integer_t>(1), traits::matrix_num_columns(a) );

to fail as well. I see std::ptrdiff_t is hardcoded in matrix_traits.
Shouldn't these functions return integer_t instead of std::ptrdiff_t?