uses: actions/checkout@v2 (#1779)

* uses: actions/checkout@v2

* fixup! Format Python code with psf/black push
This commit is contained in:
Christian Clauss
2020-02-21 11:02:35 +01:00
committed by GitHub
parent cb4795616c
commit 59bf115aa1
4 changed files with 8 additions and 5 deletions

View File

@ -4,7 +4,7 @@ https://en.wikipedia.org/wiki/Rayleigh_quotient
import numpy as np
def is_hermitian(matrix:np.matrix) -> bool:
def is_hermitian(matrix: np.matrix) -> bool:
"""
Checks if a matrix is Hermitian.
@ -25,7 +25,7 @@ def is_hermitian(matrix:np.matrix) -> bool:
return np.array_equal(matrix, matrix.H)
def rayleigh_quotient(A:np.matrix, v:np.matrix) -> float:
def rayleigh_quotient(A: np.matrix, v: np.matrix) -> float:
"""
Returns the Rayleigh quotient of a Hermitian matrix A and
vector v.