Login  Register

Re: 2D Arrays?

Posted by Luigi Ballabio on May 12, 2008; 2:04pm
URL: http://quantlib.414.s1.nabble.com/2D-Arrays-tp5941p5944.html

On Mon, 2008-05-12 at 06:14 -0700, op wrote:
> huh? what's wrong it? it's dam slow, that's what's wrong with it.
>
> you may better off using a raw C array.

"Somewhat slow" I can see. But "damn slow" I have some difficulties to
believe.  With the correct optimization flags, any compiler released in
the past few years should be able to inline most std::vector calls into
accesses to a raw C array.

Anyway, you can try Boost.MultiArray instead:
<http://www.boost.org/doc/libs/1_35_0/libs/multi_array/doc/index.html>

Luigi


--

A programming language is low-level when its programs require attention
to the irrelevant.
-- Alan Perlis



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users