Extensions.Norm(IEnumerable<Double>, Double) Method

Definition

Computes the L_p norm of coefficients of all terms in a Hamiltonian.

public static double Norm (this System.Collections.Generic.IEnumerable<double> x, double power = 1);
static member Norm : seq<double> * double -> double
<Extension()>
Public Function Norm (x As IEnumerable(Of Double), Optional power As Double = 1) As Double

Parameters

power
Double

Selects type of norm.

Returns

Double

L_p norm of Hamiltonian coefficients.

Applies to