Demo entry 6324485

Roba

   

Submitted by anonymous on Nov 19, 2016 at 15:31
Language: C++. Code size: 285 Bytes.

Tensor<int> t({3, 4, 2});
    int x, y, z, count = 0;
    for (z = 0; z < 2; z++) {
        for (y = 0; y < 4; y++) {
            for (x = 0; x < 3; x++) {
                t.set(count, std::move((const int[]) {x, y, z}));
                count++;
            }
        }
    }

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).