From: Thorsten S. <tsc...@in...> - 2006-04-21 07:08:17
|
Dear Sir or Madam. While working with the blitz++ Library I found the following unintuitive behaviour: If an Array of Type T is completely filled with the minimal Value of that Type the functions minIndex and maxIndex return as Index a TinyVector containing only INT_MIN as entries. E.g.: Array<unsigned char,2> A(2,2); A=3D0; cout << "minIndex(A) =3D " << minIndex(A) << endl; gives minIndex(A) =3D 2 [ -2147483648-2147483648 ] 2 [ 0 0 ] (or any other valid index) would make more sense to me. If that behaviour is intentional, ignore this mail, otherwise I would suggest to replace the initialization of the indices in reduce.h to 0 instead of tiny(int()). Best regards. Thorsten Schmidt. -- Albert Ludwigs Universit=E4t Computer Science Dept. Chair for Pattern Recognition Georges K=F6hler Allee 52 79110 Freiburg i. Br. Germany |