<filename>doc/Programs/PythonCodesVeff/matrix_from_eigen_decomposition.py<gh_stars>1-10
import numpy as np

class MatrixFromEigenDecomposition(object):
    def construct(this, D, V):
        return np.matmul(V, np.matmul(D, np.linalg.inv(V)))

class MatrixFromEigenDecompositionSymmetric(object):
    def construct(this, D, V):
        return np.matmul(V, np.matmul(D, V.transpose()))

<filename>doc/Programs/PythonCodesVeff/matrix_from_eigen_decomposition.py<gh_stars>1-10
import numpy as np

class MatrixFromEigenDecomposition(object):
    def construct(this, D, V):
        return np.matmul(V, np.matmul(D, np.linalg.inv(V)))

class MatrixFromEigenDecompositionSymmetric(object):
    def construct(this, D, V):
        return np.matmul(V, np.matmul(D, V.transpose()))
