KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
|
This class calculates the singular value decomposition of a matrix A (A = U@np.(S)@V.T + Error(truncation_tolerance)) using a randomized algorithm Reference: Halko et al 2009. diagMore...
Public Member Functions | |
def | __init__ (self, COMPUTE_U=True, COMPUTE_V=True, RELATIVE_SVD=True, USE_RANDOMIZATION=True) |
def | Calculate (self, A, truncation_tolerance=0) |
Public Attributes | |
COMPUTE_U | |
COMPUTE_V | |
RELATIVE_SVD | |
USE_RANDOMIZATION | |
SVD_MaxSize | |
dRmax | |
dRmin | |
R | |
TypeRankEstimate | |
This class calculates the singular value decomposition of a matrix A (A = U@np.(S)@V.T + Error(truncation_tolerance)) using a randomized algorithm Reference: Halko et al 2009. diag
"Finding structure with randomness: Probabilistic algorithms for constructing approximate matrix decompositions"
Constructor setting up the parameters for calculation of the SVD COMPUTE_U: whether to return the matrix of left singular vectors U COMPUTE_V: whether to return the matrix of right singular vectors V RELATIVE_SVD: If true, the truncation_tolerance is multiplied by the norm of the original matrix If false, the truncation_tolerance is taken as an absolute error tolerance USE_RANDOMIZATION: If false, the standard svd algorith of numpy is followed
def randomized_singular_value_decomposition.RandomizedSingularValueDecomposition.__init__ | ( | self, | |
COMPUTE_U = True , |
|||
COMPUTE_V = True , |
|||
RELATIVE_SVD = True , |
|||
USE_RANDOMIZATION = True |
|||
) |
def randomized_singular_value_decomposition.RandomizedSingularValueDecomposition.Calculate | ( | self, | |
A, | |||
truncation_tolerance = 0 |
|||
) |
randomized_singular_value_decomposition.RandomizedSingularValueDecomposition.COMPUTE_U |
randomized_singular_value_decomposition.RandomizedSingularValueDecomposition.COMPUTE_V |
randomized_singular_value_decomposition.RandomizedSingularValueDecomposition.dRmax |
randomized_singular_value_decomposition.RandomizedSingularValueDecomposition.dRmin |
randomized_singular_value_decomposition.RandomizedSingularValueDecomposition.R |
randomized_singular_value_decomposition.RandomizedSingularValueDecomposition.RELATIVE_SVD |
randomized_singular_value_decomposition.RandomizedSingularValueDecomposition.SVD_MaxSize |
randomized_singular_value_decomposition.RandomizedSingularValueDecomposition.TypeRankEstimate |
randomized_singular_value_decomposition.RandomizedSingularValueDecomposition.USE_RANDOMIZATION |