public readonly property ndim as UInt:
The number of dimensions in the array.
a = NDArray<Int>.zeros([2, 3]) print(a.ndim) # 2