Detail: IndexGO: Operator Binary

Overview: IndexGO: Operator Binary

IndexGO.__add__(other)
>>> ix = sf.IndexGO((0, 1024, -2048, 4096))
>>> ix
<IndexGO>
0
1024
-2048
4096
<int64>
>>> ix + 8
[    8  1032 -2040  4104]
IndexGO.__and__(other)
>>> ix = sf.IndexGO((False, True), name='x')
>>> ix
<IndexGO: x>
False
True
<bool>
>>> ix & True
[False  True]
>>> ix & (False, True)
[False  True]
IndexGO.__eq__(other)

Return self==value.

>>> ix = sf.IndexGO((0, 1024, -2048, 4096))
>>> ix
<IndexGO>
0
1024
-2048
4096
<int64>
>>> ix == 8
[False False False False]
IndexGO.__floordiv__(other)
>>> ix = sf.IndexGO((0, 1024, -2048, 4096))
>>> ix
<IndexGO>
0
1024
-2048
4096
<int64>
>>> ix // 8
[   0  128 -256  512]
IndexGO.__ge__(other)

Return self>=value.

>>> ix = sf.IndexGO((0, 1024, -2048, 4096))
>>> ix
<IndexGO>
0
1024
-2048
4096
<int64>
>>> ix >= 8
[False  True False  True]
IndexGO.__gt__(other)

Return self>value.

>>> ix = sf.IndexGO((0, 1024, -2048, 4096))
>>> ix
<IndexGO>
0
1024
-2048
4096
<int64>
>>> ix > 8
[False  True False  True]
IndexGO.__le__(other)

Return self<=value.

>>> ix = sf.IndexGO((0, 1024, -2048, 4096))
>>> ix
<IndexGO>
0
1024
-2048
4096
<int64>
>>> ix <= 8
[ True False  True False]
IndexGO.__lt__(other)

Return self<value.

>>> ix = sf.IndexGO((0, 1024, -2048, 4096))
>>> ix
<IndexGO>
0
1024
-2048
4096
<int64>
>>> ix < 8
[ True False  True False]
IndexGO.__matmul__(other)
>>> ix = sf.IndexGO((0, 1024, -2048, 4096))
>>> ix
<IndexGO>
0
1024
-2048
4096
<int64>
>>> ix @ (3, 0, 4, 0)
-8192
IndexGO.__mod__(other)
>>> ix = sf.IndexGO((0, 1024, -2048, 4096))
>>> ix
<IndexGO>
0
1024
-2048
4096
<int64>
>>> ix % 8
[0 0 0 0]
IndexGO.__mul__(other)
>>> ix = sf.IndexGO((0, 1024, -2048, 4096))
>>> ix
<IndexGO>
0
1024
-2048
4096
<int64>
>>> ix * 8
[     0   8192 -16384  32768]
IndexGO.__ne__(other)

Return self!=value.

>>> ix = sf.IndexGO((0, 1024, -2048, 4096))
>>> ix
<IndexGO>
0
1024
-2048
4096
<int64>
>>> ix != 8
[ True  True  True  True]
IndexGO.__or__(other)

Return self|value.

>>> ix = sf.IndexGO((False, True), name='x')
>>> ix
<IndexGO: x>
False
True
<bool>
>>> ix | True
[ True  True]
>>> ix | (False, True)
[False  True]
IndexGO.__pow__(other)
>>> ix = sf.IndexGO((0, 1024, -2048, 4096))
>>> ix
<IndexGO>
0
1024
-2048
4096
<int64>
>>> ix ** 8
[0 0 0 0]
IndexGO.__radd__(other)
>>> ix = sf.IndexGO((0, 1024, -2048, 4096))
>>> ix
<IndexGO>
0
1024
-2048
4096
<int64>
>>> 8 + ix
[    8  1032 -2040  4104]
IndexGO.__rfloordiv__(other)
>>> ix = sf.IndexGO((0, 1024, -2048, 4096))
>>> ix
<IndexGO>
0
1024
-2048
4096
<int64>
>>> 8 // ix
[ 0  0 -1  0]
IndexGO.__rmatmul__(other)
>>> ix = sf.IndexGO((0, 1024, -2048, 4096))
>>> ix
<IndexGO>
0
1024
-2048
4096
<int64>
>>> ix @ (3, 0, 4, 0)
-8192
IndexGO.__rmul__(other)
>>> ix = sf.IndexGO((0, 1024, -2048, 4096))
>>> ix
<IndexGO>
0
1024
-2048
4096
<int64>
>>> 8 * ix
[     0   8192 -16384  32768]
IndexGO.__rshift__(other)
>>> ix = sf.IndexGO((0, 1024, -2048, 4096))
>>> ix
<IndexGO>
0
1024
-2048
4096
<int64>
>>> ix >> 1
[    0   512 -1024  2048]
IndexGO.__rsub__(other)
>>> ix = sf.IndexGO((0, 1024, -2048, 4096))
>>> ix
<IndexGO>
0
1024
-2048
4096
<int64>
>>> 8 - ix
[    8 -1016  2056 -4088]
IndexGO.__rtruediv__(other)
>>> ix = sf.IndexGO((0, 1024, -2048, 4096))
>>> ix
<IndexGO>
0
1024
-2048
4096
<int64>
>>> 8 / ix
[        inf  0.0078125  -0.00390625  0.00195312]
IndexGO.__sub__(other)
>>> ix = sf.IndexGO((0, 1024, -2048, 4096))
>>> ix
<IndexGO>
0
1024
-2048
4096
<int64>
>>> ix - 8
[   -8  1016 -2056  4088]
IndexGO.__truediv__(other)
>>> ix = sf.IndexGO((0, 1024, -2048, 4096))
>>> ix
<IndexGO>
0
1024
-2048
4096
<int64>
>>> ix / 8
[   0.  128. -256.  512.]
IndexGO.__xor__(other)
>>> ix = sf.IndexGO((False, True), name='x')
>>> ix
<IndexGO: x>
False
True
<bool>
>>> ix ^ True
[ True False]
>>> ix ^ (False, True)
[False False]

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