lab.types module

lab.types.default_dtype

alias of numpy.float64

lab.types.dtype[source]

Determine the data type of an object.

Parameters

a (tensor) – Object to determine data type of.

lab.types.issubdtype[source]

Check whether one data type is a subtype of another.

Parameters
  • dtype1 (dtype) – First data type.

  • dtype2 (dtype) – Second data type.

Returns

dtype1 is a subtype of dtype2.

Return type

bool