array2D of sparse oneD
Walter Daems <[email protected]> Wed, 17 Dec 2003 16:33:23 +0100
| Newsgroups | gmane.comp.lib.mtl.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi all,
In case you use a matrix that has an array storage of sparse
oneD containers, the size of the oneD containers is not appropriately
set.
The patch below fixes this.
-------------------------------------------------------------------
File: mtl/array2D.h
===================================================================
--- array2D.h (original)
+++ array2D.h (patched)
@@ -145,7 +145,7 @@
protected:
inline void resize_oned(sparse_tag) {
for (iterator i = this->begin(); i != this->end(); ++i)
- *i = OneD();
+ *i = OneD(dim.second());
}
inline void resize_oned(dense_tag) {
-------------------------------------------------------------------
best regards,
Walter.
--
Walter Daems http://www.kimotion.com
mailto:[email protected]
Kimotion Technologies tel: +32 16 298306
Kapeldreef 60, B-3001 Leuven-Heverlee, Belgium fax: +32 16 298319
_______________________________________________
This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/