Boost logo

Ublas :

From: Hidekazu Ikeno (ikeno_at_[hidden])
Date: 2006-07-25 06:46:15


When I built the attached code using Intel C++ 9.1 compiler with -g -O0 options,
I got the following run-time error (when I use g++ 3.4.6/4.1.1, no error occured):

  Assertion failed in file /usr/include/boost/numeric/ublas/hermitian.hpp at line 382:
  j < size_
  terminate called after throwing an instance of 'boost::numeric::ublas::bad_index'
    what(): bad index

though, the condition 'j < size_' is satisfied in my code.
I found that in hermitian_matrix_element class, the copy constructor doesn't
intialize j_ (hermitian.hpp, line 63), and this caused the unexpected assertion error.

Could you fix this problem?

Hidekazu Ikeno
Department of Materials Science and Engineering, Kyoto Univesity
Yoshida-Honmachi, Sakyo, Kyoto 606-8501, Japan
Tel: +81-75-753-5435
Fax: +81-75-753-5447
E-mail: ikeno_at_[hidden]