Mordicus.Core.OperatorCompressors package¶
- All files in this folder must implement two functions:
OnlineComputation:
Compute the online stage using the proposed algorithm, this function sets the attribute “coefficients” of compressedSnapshots, the time sequence in compressedSnapshots must have been initialized.
for parametric problems: the parameters must have been initialized in onlineProblemData, for nonparametric problems: the loading must have been initialized in onlineProblemData.
Parameters:
- operatorCompressionOutputDataInternal Format
precomputation made by the offline stage
- onlineProblemDataProblemData
definition of the testing configuration data in a CollectionProblemData object
- compressedSnapshotsModesAndCoefficients
compressed solution whose attribute “coefficients” is set
OperatorCompressionOffline:
Compress solutions of name “solutionName” from all ProblemDatas in collectionProblemData, and update to corresponding solution.compressedSnapshots in the format ModesAndCoefficients.
Parameters:
- collectionProblemDataCollectionProblemData
definition of the training data in a CollectionProblemData object
- solutionNamestr
name of the solution to be treated
- operatorCompressionInputDataInternal Format
input needed by the method
Returns:
- operatorCompressionOutputDataInternal Format
precomputation made by the offline stage