Template Class VectorFit
Defined in File VectorFit.hpp
Inheritance Relationships
Base Type
public GridKit::EMT::Component< scalar_type, index_type >(Template Class Component)
Class Documentation
-
template<typename scalar_type, typename index_type>
class VectorFit : public GridKit::EMT::Component<scalar_type, index_type> Vector-fitted rational operator.
The output dimension N and the input dimension K are those of the first of
D,Eand the residues that the data gives.whas K entries per real pole, then per conjugate pair, andvhas K entries per conjugate pair.Public Functions
-
explicit VectorFit(const ModelDataT &data)
Construct the operator that the data describes.
The output dimension
Nand the input dimensionKare the rows and columns of the first ofD,Eand the residues that the data gives. Layout: internal variableswandv, inputuof sizeK, outputyof sizeN.verifyreports invalid data.- Parameters:
data – [in] Coefficients, poles and residues.
-
inline IdxT outputs() const
Output dimension N.
-
inline IdxT inputs() const
Input dimension K.
-
virtual Model::ConfigurationChecks verify() const override
Check the sizes and shapes of the data and the pairing of complex poles.
- Returns:
The failed checks.
-
virtual int setAbsoluteTolerance(RealT rel_tol) override
Set the tolerance of each memory state to the tolerance of its input over the pole magnitude.
The argument is unused. A pole at zero keeps the input tolerance.
- Returns:
0.
- Pre:
The component at input
uhas set its tolerances.
-
virtual int tagDifferentiable() override
Fill the tag() vector with proper indicators.
Note
For some models, this may be a no-op, and the vector returned by tag() will still be empty.
- Pre:
allocate() must have been called.
-
virtual int evaluateOutputs() override
Evaluate every output at the current values, whether or not it is connected.
-
explicit VectorFit(const ModelDataT &data)