Struct npy::DType
[−]
[src]
pub struct DType { pub ty: &'static str, pub shape: Vec<u64>, }
Representation of a Numpy type
Fields
ty: &'static str
Numpy type string. First character is '>'
for big endian, '<'
for little endian.
Examples: >i4
, <u8
, >f8
. The number corresponds to the number of bytes.
shape: Vec<u64>
Shape of a type.
Scalar has zero entries. Otherwise, number of entries == number of dimensions and each entry specifies size in the respective dimension.