comment updates

This commit is contained in:
Jan Petykiewicz 2023-05-23 12:50:17 -07:00
parent c7e823b0b3
commit 01e7aae41e

View File

@ -1,4 +1,4 @@
''' """
Bloch eigenmode solver/operators Bloch eigenmode solver/operators
This module contains functions for generating and solving the This module contains functions for generating and solving the
@ -92,7 +92,7 @@ This module contains functions for generating and solving the
epsilon=epsilon, epsilon=epsilon,
band=0) band=0)
''' """
from typing import Callable, Any, cast, Sequence from typing import Callable, Any, cast, Sequence
import logging import logging
@ -540,9 +540,9 @@ def eigsolve(
kmag = norm(G_matrix @ k0) kmag = norm(G_matrix @ k0)
''' #
Generate the operators # Generate the operators
''' #
mop = maxwell_operator(k0=k0, G_matrix=G_matrix, epsilon=epsilon, mu=mu) mop = maxwell_operator(k0=k0, G_matrix=G_matrix, epsilon=epsilon, mu=mu)
imop = inverse_maxwell_operator_approx(k0=k0, G_matrix=G_matrix, epsilon=epsilon, mu=mu) imop = inverse_maxwell_operator_approx(k0=k0, G_matrix=G_matrix, epsilon=epsilon, mu=mu)
@ -722,9 +722,9 @@ def eigsolve(
if callback: if callback:
callback() callback()
''' #
Recover eigenvectors from Z # Recover eigenvectors from Z
''' #
U = numpy.linalg.inv(ZtZ) U = numpy.linalg.inv(ZtZ)
Y = Z @ scipy.linalg.sqrtm(U) Y = Z @ scipy.linalg.sqrtm(U)
W = Y.conj().T @ (scipy_op @ Y) W = Y.conj().T @ (scipy_op @ Y)