math
full name: tenpy.tools.math
parent module:
tenpy.tools
type: module
Functions
|
Calculate the entropy of a distribution. |
|
Computes the greatest common divisor (GCD) of two numbers. |
|
Return the greatest common divisor of all of entries in a |
|
Returns the least common multiple (LCM) of two positive numbers. |
transform an linear operator with a matvec method into a dense numpy array. |
|
|
Given a permutation p of numbers, returns its sign. |
|
QR decomposition with cutoff to discard nearly linear dependent columns in Q. |
|
RQ decomposition with cutoff to discard nearly linear dependent columns in Q. |
|
Wrapper around |
|
Wrapper around |
Module description
Different math functions needed at some point in the library.
- tenpy.tools.math.LeviCivita3 = array([[[ 0, 0, 0], [ 0, 0, 1], [ 0, -1, 0]], [[ 0, 0, -1], [ 0, 0, 0], [ 1, 0, 0]], [[ 0, 1, 0], [-1, 0, 0], [ 0, 0, 0]]])
Levi-Civita Symbol of int type