Boost logo

Boost Users :

Subject: [Boost-users] multi_array: How to get the extends?
From: Helmut Zeisel (helmut.zeisel_at_[hidden])
Date: 2012-01-30 01:07:01


How can I get the extends of a multi_array?

E.g. I have

boost::multi_array<double, 3> a(boost::extents[n0][n1][n2]);

Are there functions like

a.extend(0) returning n0,
a.extend(1) returning n1, and
a.extend(2) returning n2

(or similar)?

Helmut

-- 
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail

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