UNPKG

@stdlib/ndarray-same-kind-casts

Version:

Return a list of ndarray data types to which a provided ndarray data type can be safely cast or cast within the same kind.

227 lines (226 loc) 3.21 kB
{ "float64": { "float64": 1, "float32": 1, "int32": 0, "int16": 0, "int8": 0, "uint32": 0, "uint16": 0, "uint8": 0, "uint8c": 0, "complex128": 1, "complex64": 0, "binary": 0, "generic": 1, "bool": 0 }, "float32": { "float64": 1, "float32": 1, "int32": 0, "int16": 0, "int8": 0, "uint32": 0, "uint16": 0, "uint8": 0, "uint8c": 0, "complex128": 1, "complex64": 1, "binary": 0, "generic": 1, "bool": 0 }, "int32": { "float64": 1, "float32": 0, "int32": 1, "int16": 1, "int8": 1, "uint32": 0, "uint16": 0, "uint8": 0, "uint8c": 0, "complex128": 1, "complex64": 0, "binary": 0, "generic": 1, "bool": 0 }, "int16": { "float64": 1, "float32": 1, "int32": 1, "int16": 1, "int8": 1, "uint32": 0, "uint16": 0, "uint8": 0, "uint8c": 0, "complex128": 1, "complex64": 1, "binary": 0, "generic": 1, "bool": 0 }, "int8": { "float64": 1, "float32": 1, "int32": 1, "int16": 1, "int8": 1, "uint32": 0, "uint16": 0, "uint8": 0, "uint8c": 0, "complex128": 1, "complex64": 1, "binary": 0, "generic": 1, "bool": 0 }, "uint32": { "float64": 1, "float32": 0, "int32": 0, "int16": 0, "int8": 0, "uint32": 1, "uint16": 1, "uint8": 1, "uint8c": 1, "complex128": 1, "complex64": 0, "binary": 0, "generic": 1, "bool": 0 }, "uint16": { "float64": 1, "float32": 1, "int32": 1, "int16": 0, "int8": 0, "uint32": 1, "uint16": 1, "uint8": 1, "uint8c": 1, "complex128": 1, "complex64": 1, "binary": 0, "generic": 1, "bool": 0 }, "uint8": { "float64": 1, "float32": 1, "int32": 1, "int16": 1, "int8": 0, "uint32": 1, "uint16": 1, "uint8": 1, "uint8c": 1, "complex128": 1, "complex64": 1, "binary": 0, "generic": 1, "bool": 0 }, "uint8c": { "float64": 1, "float32": 1, "int32": 1, "int16": 1, "int8": 0, "uint32": 1, "uint16": 1, "uint8": 1, "uint8c": 1, "complex128": 1, "complex64": 1, "binary": 0, "generic": 1, "bool": 0 }, "complex128": { "float64": 0, "float32": 0, "int32": 0, "int16": 0, "int8": 0, "uint32": 0, "uint16": 0, "uint8": 0, "uint8c": 0, "complex128": 1, "complex64": 1, "binary": 0, "generic": 0, "bool": 0 }, "complex64": { "float64": 0, "float32": 0, "int32": 0, "int16": 0, "int8": 0, "uint32": 0, "uint16": 0, "uint8": 0, "uint8c": 0, "complex128": 1, "complex64": 1, "binary": 0, "generic": 0, "bool": 0 }, "generic": { "float64": 0, "float32": 0, "int32": 0, "int16": 0, "int8": 0, "uint32": 0, "uint16": 0, "uint8": 0, "uint8c": 0, "complex128": 0, "complex64": 0, "binary": 0, "generic": 1, "bool": 0 }, "binary": { "float64": 0, "float32": 0, "int32": 0, "int16": 0, "int8": 0, "uint32": 0, "uint16": 0, "uint8": 0, "uint8c": 0, "complex128": 0, "complex64": 0, "binary": 1, "generic": 0, "bool": 0 }, "bool": { "float64": 0, "float32": 0, "int32": 0, "int16": 0, "int8": 0, "uint32": 0, "uint16": 0, "uint8": 0, "uint8c": 0, "complex128": 0, "complex64": 0, "binary": 0, "generic": 1, "bool": 1 } }