func DimensionsPerValue(dtype string) int It panics on any name other than "f64", "f32", "i8", "u8" and "u1".
DimensionsPerValueDimensionsPerValue returns how many logical dimensions of dtype share one stored value, such as 8 for "u1".func DimensionsPerValue(dtype string) int It panics on any name other than "f64", "f32", "i8", "u8" and "u1".
DimensionsToValuesDimensionsToValues returns how many stored values hold dimensions logical dimensions of dtype.func DimensionsToValues(dtype string, dimensions int) int The dimensions must be a multiple of DimensionsPerValue for dtype.