Calculates the quadratic form x^T A x, where A is an n x n matrix and x is a vector of length n
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=rp), | intent(in), | dimension(:,:) | :: | A | (n,n) array |
|
real(kind=rp), | intent(in), | dimension(:) | :: | x | (n,) array |