sisl.mixing.Metric

class sisl.mixing.Metric(metric=None)

Bases: object

Perform inner products using a metric

An inner product can be defined as:

\[s = \langle \mathbf a | \mathbf M | \mathbf b \rangle\]

where generally the metric \(\mathbf M = 1\).

Methods

inner(a, b)

Perform the inner product between a and b

__call__(a, b)

Perform the inner product between a and b

Parameters
__init__(metric=None)[source]
inner(a, b)[source]

Perform the inner product between a and b

Parameters