SplatArray

from acron.sog import SplatArray
class SplatArray(buffer, shape)

Bases: object

A float32 array with a shape, over a native buffer — what the CPU decode returns. data is a C-contiguous memoryview of that shape (data[i, j] reads one value, data.tolist() nests); indexing the array itself gives row i as a float (1-D), a tuple (2-D) or a tuple of tuples (3-D). It exports the buffer protocol (PEP 688), so memoryview(a), bytes(a) and numpy.asarray(a) see the floats without a copy. base keeps the owning buffer (a PTA_float) alive.

Inheritance diagram

digraph inheritanceed03370184 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "SplatArray" [URL="acron.sog.SplatArray.html#acron.sog.SplatArray",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="A float32 array with a shape, over a native buffer — what the CPU"]; }
base
data
format = 'f'
itemsize = 4
property nbytes: int
property ndim: int
shape