Boost logo

Ublas :

From: Gunter Winkler (guwi17_at_[hidden])
Date: 2007-05-01 07:09:49

Am Montag, 30. April 2007 18:05 schrieb Prasad Ramanan:
> ublas::permutation_matrix<double> P(n);

this should be a permutation_matrix< int >

> I have since upgraded to boost 1-33.1 (downloaded from
>, but I still require the includes suggested by
> Gunter in order to get the code to compile, although he had suggested
> that I would no longer need them after upgrading to 1-33.

Maybe the change was after the release of 1.33. The current CVS-Head
compiles without the extra includes.

> Once the
> code is compiled, I get a runtime error caused by the lu_substitute
> method while running:
> Assertion failed in file
> c:\boost\include\boost-1_33_1\boost/numeric/ublas/lu.hpp at line 271:
> detail::expression_type_check (prod
> (triangular_adaptor<const_matrix_type, upper> (m), e), cv2)

This happens typically when the matrix is ill conditioned or nearly
singular. Please look at
for a description of the TYPE_CHECK and TYPE_CHECK_EPSILON macros. Try

(in front of ublas/config.hpp)