Boost logo

Boost Users :

Subject: [Boost-users] [MultiArrrat] Unbalanced multi_array<>
From: Júlio Hoffimann (julio.hoffimann_at_[hidden])
Date: 2011-09-07 12:46:05


Dear all,

By reading Boost.MultiArray docs, i haven't figured out any possible way to
deal with unbalanced matrices. The following picture explains what i mean by
unbalanced:

// two dimensional unbalanced matrix:

a00 a01 a02 a03 a04 a05 a06 a07 a08
a10 a11 a12 a13 a14
a20 a21 a22
a30 a31
a40

Each row has it's own extent (defined at runtime). Seems multi_array<>
classes are not designed to increase it's subcontainers decoupled, and at a
given depth, they always share the same extent? Could you confirm or guide
me in how to achieve this behavior? I really need to save memory due to
large 3D matrices.

Regards,
Júlio.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net