get_quad_form Function

public function get_quad_form(A, x) result(res)

Calculates the quadratic form x^T A x, where A is an n x n matrix and x is a vector of length n

Arguments

Type IntentOptional AttributesName
real(kind=rp), intent(in), dimension(:,:):: A

(n,n) array

real(kind=rp), intent(in), dimension(:):: x

(n,) array

Return Value real(kind=rp)


Contents

None