cloning array
Basile.B
b2.temp at gmx.com
Wed Jun 2 16:18:03 UTC 2021
On Wednesday, 2 June 2021 at 16:08:14 UTC, Sean wrote:
> On Wednesday, 2 June 2021 at 15:59:38 UTC, Basile.B wrote:
>> works as you expect
>
> Okey, so I have to copy every (N-1) dimensional element - one
> after one - if the array is N dimensional, with N > 1, and
> repeat it for every element if they themselves are arrays with
> dimension M > 1 ?
>
>
> This becomes very difficult if we have large tensors, 16 - 85
> dimensions ( I am doing AI with d ) and eash element itself is
> a dynamic array.
you should use library types for this kind of operations, for
example they can provide virtually N dim arrays that are actually
flattened. Maybe Mir would help.
More information about the Digitalmars-d-learn
mailing list