Boost logo

Ublas :

Subject: Re: [ublas] Help with boost Matrix
From: Gunter Winkler (guwi17_at_[hidden])
Date: 2009-01-28 17:29:41

Matteo Santini schrieb:
> I'm using Boost libraries for my program
> I would like to know if there is any control method to avoid any
> access out of the range of my matrix
> for example: I have a 4x4 matrix and for some reason I'm trying to
> access to the Matrix(4,3) element (considering i and j starting from 0)
If you compile in debug mode (default) than all range checks are
enabled. If you compile in release mode (define NDEBUG or
BOOST_NUMERIC_UBLAS_NDEBUG) then these checks are disabled. See also:
(scroll down a bit...)