pyphi.convert#
Conversion functions.
See the documentation on PyPhi Transition probability matrix conventions for information on the different representations that these functions convert between.
Functions
|
Convert between big-endian and little-endian for indices in |
|
Convert a state-by-state TPM from big-endian to little-endian or vice versa. |
|
Convert a decimal integer to a PyPhi state-tuple using the big-endian convention, in which the most-significant bit corresponds to the lowest-index node. |
|
Convert between big-endian and little-endian for indices in |
|
Convert a state-by-state TPM from big-endian to little-endian or vice versa. |
|
Convert a decimal integer to a PyPhi state-tuple using the big-endian convention, in which the most-significant bit corresponds to the lowest-index node. |
|
Convert between big-endian and little-endian for indices in |
|
Convert a state-by-state TPM from big-endian to little-endian or vice versa. |
|
Convert a decimal integer to a PyPhi state-tuple using the little-endian convention. |
|
Convert between big-endian and little-endian for indices in |
|
Convert a state-by-state TPM from big-endian to little-endian or vice versa. |
|
Convert a decimal integer to a PyPhi state-tuple using the little-endian convention. |
|
Convert nodes to a tuple of their indices. |
|
Convert nodes to a tuple of their states. |
|
Reverse the bits of the |
|
Convert a PyPhi state-tuple to a decimal index using the big-endian convention. |
|
Convert a PyPhi state-tuple to a decimal index using the little-endian convention. |
|
Convert a state-by-node TPM to a state-by-state TPM. |
|
Convert a state-by-state TPM to a state-by-node TPM. |
|
Convert a PyPhi state-tuple to a decimal index using the big-endian convention. |
|
Convert a PyPhi state-tuple to a decimal index using the little-endian convention. |
Convert a state-by-node TPM to a state-by-state TPM. |
|
Convert a state-by-state TPM to a state-by-node TPM. |
|
|
Reshape a state-by-node TPM to the 2-dimensional form. |
|
Reshape a state-by-node TPM to the 2-dimensional form. |
|
Reshape a state-by-node TPM to the multidimensional form. |
|
Reshape a state-by-node TPM to the multidimensional form. |