Homogeneous Multidimensional Arrays¶

NDarray provides a convenient container for our multidimensional data, and it even highlights its support for general elements and numerics, i.e. generic types. Through this approach an ndarray::Array supports the storage of homogeneous data, where every value in the container must be of the same type. These can be floats, integers, strings, and so on. For example, we could store a two-dimensional dataset consisting of only String elements in an ndarray::Array2<String> . However, we wouldn't then be able to have a feature, or column, consisting of unsigned 32-bit integers ( u32 ). If you've worked with the numpy package for Python, you may remember the convenience of its support for homogeneous and heterogeneous data, where support exists for having features of different data types.