1. Takafumi Arakaki
  2. Numpy Toy Box

Source

Numpy Toy Box / getsetcarray / test_getset.py

1
2
3
4
5
6
7
8
from getsetcarray import *
import numpy

gs = GetSetCArray()

gs.np1d = numpy.arange(5)
gs.np2d = numpy.arange(4).reshape(2,2)
gs.np3d = numpy.arange(8).reshape(2,2,2)