> --
> You received this message because you are subscribed to the Google Groups
> "ahh-discuss" group.
> To post to this group, send email to ahh-d...@googlegroups.com.
> To unsubscribe from this group, send email to
> ahh-discuss...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/ahh-discuss?hl=en.
>
The purpose of Array and ConstantArray (at least from the script's perspective) are to pass auxiliary data to the GPU, so you do something like
Array(sim, "frozen_noise", frozen_noise)
That means that a single, but mutable, copy of the numpy array frozen_noise is copied in for the simulation. ConstantArray is the same thing but the data is constant.
So no, you don't get a copy per realization in either case. If you want a copy per realization, you have to do it manually now. If you find a good reason to do this and want to encapsulate it in a little node, feel free to do that and I'll put it in.
I'll clarify the documentation a bit.
Cyrus
its not really safe.. but remember this is all in C, theres hardly any
built in memory protection.