triqs.gf.backwd_compat.gf_legendre.GfLegendre
- class triqs.gf.backwd_compat.gf_legendre.GfLegendre(**kw)[source]
Parameters (KEYWORD argument ONLY)
- mesh: MeshLegendre, optional
The mesh of the Green function If not present, it will be constructed from the parameters beta, indices, [n_points], [statistic]
- data: numpy.array, optional
The data of the Gf. Must be of dimension mesh.rank + target_rank. Incompatible with target_shape
- target_shape: list of int, optional
Shape of the target space. Incompatible with data
- is_real: bool
Is the Green function real valued ? If true, and target_shape is set, the data will be real. No effect with the parameter data.
- indices: GfIndices or list of str or list of list of str, Optional
Optional string indices for the target space, to allow e.g g[‘eg’, ‘eg’] list of list of str: the list of indices for each dimension. list of str: all indices are assumed to be the same for all dimensions.
- name: str
The name of the Green function. For plotting.
Methods
|
|
|
Same as Gf, but can rebuild the mesh for backward compatibility |
Conjugate of the Greens function. |
|
|
Deep copy of the Greens function. |
|
Copy the data of another Greens function into self. |
|
Compute the density matrix of the Greens function |
|
Signature : (gf_view<triqs::gfs::legendre,matrix_valued> gl, matrix_view<double> disc) -> None Modify the coefficient to adjust discontinuity |
|
tail |
|
Signature : (gf_const_view<imfreq,matrix_valued> g, int n_min, int n_max, array_const_view<dcomplex,3> known_moments, int n_tail_max, int expansion_order) -> std::pair<array<dcomplex,3>, double> Fits the tail on the [n_min, n_max] window + negative counter part with the contraint of hermitian moment matrices |
|
tail |
|
Signature : (gf_const_view<imfreq,matrix_valued> g, int n_min, int n_max, array_const_view<dcomplex,3> known_moments, int n_tail_max, int expansion_order) -> std::pair<array<dcomplex,3>, double> Fits the tail on the [n_min, n_max] window + negative counter part |
|
Matrix transform of the target space of a matrix valued Greens function. |
|
Computes the inverse of the Greens function. |
|
Inverts the Greens function (in place). |
|
Signature : (gf<imfreq,scalar_valued> g, float tolerance = 1.e-12) -> bool |
|
Signature : (gf<imfreq,scalar_valued> g, float tolerance = 1.e-12) -> bool |
|
Signature : (gf_view<imtime,matrix_valued> g, int new_n_tau) -> gf<imtime, matrix_valued> Rebins the data of a GfImTime on a sparser mesh |
|
Signature : (gf_view<imfreq,matrix_valued> g, array_const_view<dcomplex,3> tail, int n_min) -> None Replace the function by the evaluation of the tail for |n| > n_min |
|
Signature : (gf_view<imfreq,matrix_valued> g, array_const_view<dcomplex,3> tail) -> None Replace the function by the evaluation of the tail for |n| > n_min |
|
Fills self with the Fourier transform of g_in |
|
Fills self with the legendre transform of gw |
|
Fills self with the legendre transform of gt |
|
Fills self with the legendre transform of gl |
|
Signature : (gf_view<refreq,matrix_valued> gw, gf_view<imfreq,matrix_valued> giw, int n_points = 100, float freq_offset = 0.0) -> None |
|
Compute total density. |
Take the transpose of a matrix valued Greens function. |
|
|
Helper method for getting a view of the data. |
|
Set all values to zero. |
Attributes
Raw data of the Greens function. |
|
A Greens function with a view of the imaginary part. |
|
The index object of the target space. |
|
The mesh of the Greens function. |
|
The mesh rank (number of meshes). |
|
A Greens function with a view of the real part. |
|
The rank of the target space. |
|
The shape of the target space. |