[eigen] Index bounds checking assertion |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: [eigen] Index bounds checking assertion
- From: Rohit Garg <rpg.314@xxxxxxxxx>
- Date: Wed, 9 Jun 2010 15:37:44 +0530
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=bM4rnlkEbe0Yep6OFOiI53CHEhFvtZLgZQY5jxyYuYI=; b=xUEaKgyhGMeGPaqjWhdQ9gzgmo3D5/NxNrV8zB/CGMtmhMBKru8yA2RFToxg6XwFDH slLgmRzS7GjKAyzxUcdcVQI3fC97nD/Z6tNWHSomKE8YaLeoKHz+QNakvbmVZfu+5X0d s4mvxgKvdTkOZgmo86kdq0Wi3OEid7aLIy0sk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=yDqYEpFpGbfDFngxBh7b0Ta+eQ1iufdolRBElHJXkd1kS5H+8MVmem7tJPhdP5gaJm 7J9AuznwV9Ng+0vz3q9zl8SBVsAltBa1R97xjmxUs5g6DRr6BBmRT3ZWTilznRVwOnJc I63KMZBP2v+kUQW0dRRMG9Um5mvwRQugPdL8s=
Presently, in the DenseCoeffsBase.h, file, line 305, we have the
runtime assertion, row >= 0 && row < rows() && col >= 0 && col <
cols()
It will be better to split it into 4 assertions so that when the
assertion fails, we get a more pointed message. Otherwise, the user
needs to do some debugging, (printf or otherwise), just to figure out
which index malfunctioned and from what side.
--
Rohit Garg
http://rpg-314.blogspot.com/
Senior Undergraduate
Department of Physics
Indian Institute of Technology
Bombay