symmray.interface¶
Functional interface for symmray array objects.
Functions¶
|
Conjugate a symmray array. |
|
Return the maximum value of a symmray array. |
|
Return the minimum value of a symmray array. |
|
Return the sum of a symmray array. |
|
Check if all elements of a symmray array are true. |
|
Check if any elements of a symmray array are true. |
|
Check if a symmray array contains only finite values. |
|
Return the absolute value of a symmray array. |
|
Return the square root of a symmray array. |
|
Return the natural logarithm of a symmray array. |
|
Return the base-2 logarithm of a symmray array. |
|
Return the base-10 logarithm of a symmray array. |
|
Return the real part of a symmray array. |
|
Return the imaginary part of a symmray array. |
|
Clip the values of a symmray array. |
|
Remove single-dimensional entries from shape of a symmray array. |
|
Expand the shape of a symmray array. |
|
Reshape a symmray array, via fusing or unfusing. |
|
Contract two symmray arrays along the specified axes. |
|
Perform an Einstein summation on a symmray array, this simply uses |
|
Transpose a symmray array. |
|
Return the trace of a symmray array. |
|
Take elements from a symmray array along an axis. |
|
Multiply a symmray array by a vector as if contracting a diagonal |
|
Left multiply a symmray matrix x by a vector v. |
|
Right multiply a symmray matrix x by a vector v. |
|
Left divide a symmray matrix x by a vector v. |
|
Right divide a symmray matrix x by a vector v. |
|
|
|
Fuse multiple axes of a symmray array. |
Module Contents¶
- symmray.interface.squeeze(x, axis=None)[source]¶
Remove single-dimensional entries from shape of a symmray array.
- symmray.interface.reshape(a, newshape, **kwargs)[source]¶
Reshape a symmray array, via fusing or unfusing.
- symmray.interface.tensordot(a, b, axes=2, **kwargs)[source]¶
Contract two symmray arrays along the specified axes.
- Parameters:
a (AbelianArray or FermionicArray) – First array to contract.
b (AbelianArray or FermionicArray) – Second array to contract, with same type as a.
axes (int or tuple of int, optional) – If an integer, the number of axes to contract. If a tuple, the axes to contract. Default is 2.
- symmray.interface.einsum(*args, **kwargs)[source]¶
Perform an Einstein summation on a symmray array, this simply uses cotengra to dispatch the full expression into pairwise tensordot (or einsum if necessary) calls.
- symmray.interface.take(a, indices, axis, **kwargs)[source]¶
Take elements from a symmray array along an axis.