Detail: IndexHierarchyGO: Operator Binary

Overview: IndexHierarchyGO: Operator Binary

IndexHierarchyGO.__add__(other)
>>> ih = sf.IndexHierarchyGO.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z'))
>>> ih + 8
[[    8  1032    40]
 [    9 -2040    40]
 [    9  1032    40]]
IndexHierarchyGO.__and__(other)
>>> ih = sf.IndexHierarchyGO.from_labels(((False, True, True), (True, True, True), (False, True, False)), name=('x', 'y', 'z'))
>>> ih & True
[[False  True  True]
 [ True  True  True]
 [False  True False]]
>>> ih & (False, True, True)
[[False  True  True]
 [False  True  True]
 [False  True False]]
IndexHierarchyGO.__eq__(other)

Return self==value.

>>> ih = sf.IndexHierarchyGO.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z'))
>>> ih == 8
[[False False False]
 [False False False]
 [False False False]]
IndexHierarchyGO.__floordiv__(other)
>>> ih = sf.IndexHierarchyGO.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z'))
>>> ih // 8
[[   0  128    4]
 [   0 -256    4]
 [   0  128    4]]
IndexHierarchyGO.__ge__(other)

Return self>=value.

>>> ih = sf.IndexHierarchyGO.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z'))
>>> ih >= 8
[[False  True  True]
 [False False  True]
 [False  True  True]]
IndexHierarchyGO.__gt__(other)

Return self>value.

>>> ih = sf.IndexHierarchyGO.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z'))
>>> ih > 8
[[False  True  True]
 [False False  True]
 [False  True  True]]
IndexHierarchyGO.__le__(other)

Return self<=value.

>>> ih = sf.IndexHierarchyGO.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z'))
>>> ih <= 8
[[ True False False]
 [ True  True False]
 [ True False False]]
IndexHierarchyGO.__lt__(other)

Return self<value.

>>> ih = sf.IndexHierarchyGO.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z'))
>>> ih < 8
[[ True False False]
 [ True  True False]
 [ True False False]]
IndexHierarchyGO.__matmul__(other)
>>> ih = sf.IndexHierarchyGO.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z'))
>>> ih @ (3, 0, 4)
[128 131 131]
IndexHierarchyGO.__mod__(other)
>>> ih = sf.IndexHierarchyGO.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z'))
>>> ih % 8
[[0 0 0]
 [1 0 0]
 [1 0 0]]
IndexHierarchyGO.__mul__(other)
>>> ih = sf.IndexHierarchyGO.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z'))
>>> ih * 8
[[     0   8192    256]
 [     8 -16384    256]
 [     8   8192    256]]
IndexHierarchyGO.__ne__(other)

Return self!=value.

>>> ih = sf.IndexHierarchyGO.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z'))
>>> ih != 8
[[ True  True  True]
 [ True  True  True]
 [ True  True  True]]
IndexHierarchyGO.__or__(other)
>>> ih = sf.IndexHierarchyGO.from_labels(((False, True, True), (True, True, True), (False, True, False)), name=('x', 'y', 'z'))
>>> ih | True
[[ True  True  True]
 [ True  True  True]
 [ True  True  True]]
>>> ih | (False, True, True)
[[False  True  True]
 [ True  True  True]
 [False  True  True]]
IndexHierarchyGO.__pow__(other)
>>> ih = sf.IndexHierarchyGO.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z'))
>>> ih ** 8
[[            0             0 1099511627776]
 [            1             0 1099511627776]
 [            1             0 1099511627776]]
IndexHierarchyGO.__radd__(other)
>>> ih = sf.IndexHierarchyGO.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z'))
>>> 8 + ih
[[    8  1032    40]
 [    9 -2040    40]
 [    9  1032    40]]
IndexHierarchyGO.__rfloordiv__(other)
>>> ih = sf.IndexHierarchyGO.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z'))
>>> 8 // ih
[[ 0  0  0]
 [ 8 -1  0]
 [ 8  0  0]]
IndexHierarchyGO.__rmatmul__(other)
>>> ih = sf.IndexHierarchyGO.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z'))
>>> ih @ (3, 0, 4)
[128 131 131]
IndexHierarchyGO.__rmul__(other)
>>> ih = sf.IndexHierarchyGO.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z'))
>>> 8 * ih
[[     0   8192    256]
 [     8 -16384    256]
 [     8   8192    256]]
IndexHierarchyGO.__rshift__(other)
>>> ih = sf.IndexHierarchyGO.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z'))
>>> ih >> 1
[[    0   512    16]
 [    0 -1024    16]
 [    0   512    16]]
IndexHierarchyGO.__rsub__(other)
>>> ih = sf.IndexHierarchyGO.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z'))
>>> 8 - ih
[[    8 -1016   -24]
 [    7  2056   -24]
 [    7 -1016   -24]]
IndexHierarchyGO.__rtruediv__(other)
>>> ih = sf.IndexHierarchyGO.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z'))
>>> 8 / ih
[[         inf  7.81250e-03  2.50000e-01]
 [ 8.00000e+00 -3.90625e-03  2.50000e-01]
 [ 8.00000e+00  7.81250e-03  2.50000e-01]]
IndexHierarchyGO.__sub__(other)
>>> ih = sf.IndexHierarchyGO.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z'))
>>> ih - 8
[[   -8  1016    24]
 [   -7 -2056    24]
 [   -7  1016    24]]
IndexHierarchyGO.__truediv__(other)
>>> ih = sf.IndexHierarchyGO.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z'))
>>> ih / 8
[[ 0.00e+00  1.28e+02  4.00e+00]
 [ 1.25e-01 -2.56e+02  4.00e+00]
 [ 1.25e-01  1.28e+02  4.00e+00]]
IndexHierarchyGO.__xor__(other)
>>> ih = sf.IndexHierarchyGO.from_labels(((False, True, True), (True, True, True), (False, True, False)), name=('x', 'y', 'z'))
>>> ih ^ True
[[ True False False]
 [False False False]
 [ True False  True]]
>>> ih ^ (False, True, True)
[[False False False]
 [ True False False]
 [False False  True]]

IndexHierarchyGO: Constructor | Exporter | Attribute | Method | Dictionary-Like | Display | Selector | Iterator | Operator Binary | Operator Unary | Accessor Values | Accessor Datetime | Accessor String | Accessor Transpose | Accessor Regular Expression | Accessor Hashlib