Changeset 565 for library/bdm/stat/discrete.h
- Timestamp:
- 08/19/09 16:54:24 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/stat/discrete.h
r564 r565 55 55 void initialize() { 56 56 dim = ranges.length(); 57 it_assert_debug(gridsizes.length()==dim,"Incompatible dimensions of input");57 bdm_assert_debug(gridsizes.length() == dim, "Incompatible dimensions of input"); 58 58 Npoints = prod(gridsizes); 59 it_assert_debug(Npoints>0,"Wrong input parameters");59 bdm_assert_debug(Npoints > 0, "Wrong input parameters"); 60 60 61 61 //precompute steps … … 71 71 vec v ( dim ); 72 72 for ( int j = 0; j < dim; j++ ) { 73 it_assert_debug(inds(j)<gridsizes(j), "Index out of bounds");73 bdm_assert_debug(inds(j) < gridsizes(j), "Index out of bounds"); 74 74 v ( j ) = ranges(j)(0) + (0.5+inds(j))*steps(j); 75 75 } … … 80 80 long linear_index (const ivec inds){ 81 81 long ind=0; 82 it_assert_debug(inds.length()==dim,"Improper indeces inds");82 bdm_assert_debug(inds.length() == dim, "Improper indices inds"); 83 83 int dim_skips=1; // skips in active dimension, in the first dimension, the skips are 1 index per value 84 84