14 mRf(0.0), mRc(0.0), mOmegaN(0.0), mKpPLL(0.0), mKiPLL(0.0),
15 mOmegaCutoff(0.0), mPRef(0.0), mQRef(0.0), mKpPowerCtrl(0.0),
16 mKiPowerCtrl(0.0), mKpCurrCtrl(0.0), mKiCurrCtrl(0.0),
38 "theta_pll",
"phi_pll",
"p_filtered",
"q_filtered",
"phi_d",
39 "phi_q",
"gamma_d",
"gamma_q",
"vc_a",
"vc_b",
40 "vc_c",
"if_a",
"if_b",
"if_c",
44std::vector<EMT::SSNComp::LocalAbcStateBlock>
47 {{
static_cast<UInt>(VcA),
static_cast<UInt>(VcB),
static_cast<UInt>(VcC)},
49 {{
static_cast<UInt>(IfA),
static_cast<UInt>(IfB),
static_cast<UInt>(IfC)},
66 throw std::invalid_argument(
"SSN_GFL parameters must be finite.");
69 throw std::invalid_argument(
"Filter inductance lf must be positive.");
72 throw std::invalid_argument(
"Filter capacitance cf must be positive.");
75 throw std::invalid_argument(
"Filter resistance rf must be non-negative.");
78 throw std::invalid_argument(
"Coupling resistance rc must be positive.");
81 throw std::invalid_argument(
82 "Nominal angular frequency omegaN must be positive.");
84 if (omegaCutoff < 0.0)
85 throw std::invalid_argument(
86 "Power-filter cutoff frequency omegaCutoff must be non-negative.");
89 throw std::invalid_argument(
"PLL integral gain kiPLL must be non-zero.");
91 if (kiPowerCtrl == 0.0)
92 throw std::invalid_argument(
93 "Power-control integral gain kiPowerCtrl must be non-zero.");
95 if (kiCurrCtrl == 0.0)
96 throw std::invalid_argument(
97 "Current-control integral gain kiCurrCtrl must be non-zero.");
108 mOmegaCutoff = omegaCutoff;
111 mKpPowerCtrl = kpPowerCtrl;
112 mKiPowerCtrl = kiPowerCtrl;
113 mKpCurrCtrl = kpCurrCtrl;
114 mKiCurrCtrl = kiCurrCtrl;
116 const Matrix x0 = Matrix::Zero(mStateSize, 1);
117 const Matrix u0 = Matrix::Zero(mInputSize, 1);
126 buildStateSpaceModel(x0, u0, aMatrix, bMatrix, cMatrix, dMatrix, eVector,
134EMT::Ph3::SSN_GFL::getParkTransformMatrix(
Real theta)
const {
136 const Real scale = std::sqrt(2.0 / 3.0);
138 transform.row(0) << scale * std::cos(theta),
139 scale * std::cos(theta - 2.0 *
PI / 3.0),
140 scale * std::cos(theta + 2.0 *
PI / 3.0);
142 transform.row(1) << -scale * std::sin(theta),
143 -scale * std::sin(theta - 2.0 *
PI / 3.0),
144 -scale * std::sin(theta + 2.0 *
PI / 3.0);
150EMT::Ph3::SSN_GFL::getInverseParkTransformMatrix(
Real theta)
const {
152 const Real scale = std::sqrt(2.0 / 3.0);
154 transform << scale * std::cos(theta), -scale * std::sin(theta),
155 scale * std::cos(theta - 2.0 *
PI / 3.0),
156 -scale * std::sin(theta - 2.0 *
PI / 3.0),
157 scale * std::cos(theta + 2.0 *
PI / 3.0),
158 -scale * std::sin(theta + 2.0 *
PI / 3.0);
163void EMT::Ph3::SSN_GFL::evaluateStateDerivative(
const Matrix &x,
165 Matrix &stateDerivative)
const {
166 if (x.rows() != mStateSize || x.cols() != 1)
167 throw std::invalid_argument(
168 "SSN_GFL state vector has an invalid dimension.");
170 if (u.rows() != mInputSize || u.cols() != 1)
171 throw std::invalid_argument(
172 "SSN_GFL input vector has an invalid dimension.");
174 stateDerivative.setZero(mStateSize, 1);
176 const Real thetaPLL = x(ThetaPLL, 0);
177 const Real phiPLL = x(PhiPLL, 0);
178 const Real pFiltered = x(PFiltered, 0);
179 const Real qFiltered = x(QFiltered, 0);
180 const Real phiD = x(PhiD, 0);
181 const Real phiQ = x(PhiQ, 0);
182 const Real gammaD = x(GammaD, 0);
183 const Real gammaQ = x(GammaQ, 0);
190 getInverseParkTransformMatrix(thetaPLL);
198 const Real vcD = vcDq(0, 0);
199 const Real vcQ = vcDq(1, 0);
200 const Real iGridD = iGridDq(0, 0);
201 const Real iGridQ = iGridDq(1, 0);
205 const Real pInstantaneous = vcD * iGridD + vcQ * iGridQ;
206 const Real qInstantaneous = -vcD * iGridQ + vcQ * iGridD;
211 stateDerivative(ThetaPLL, 0) = mOmegaN + mKpPLL * vcQ + mKiPLL * phiPLL;
212 stateDerivative(PhiPLL, 0) = vcQ;
217 stateDerivative(PFiltered, 0) = mOmegaCutoff * (pInstantaneous - pFiltered);
218 stateDerivative(QFiltered, 0) = mOmegaCutoff * (qInstantaneous - qFiltered);
223 stateDerivative(PhiD, 0) = mPRef - pFiltered;
224 stateDerivative(PhiQ, 0) = qFiltered - mQRef;
226 const Real currentReferenceD =
227 mKpPowerCtrl * (mPRef - pFiltered) + mKiPowerCtrl * phiD;
228 const Real currentReferenceQ =
229 mKpPowerCtrl * (qFiltered - mQRef) + mKiPowerCtrl * phiQ;
234 const Real currentErrorD = currentReferenceD - iGridD;
235 const Real currentErrorQ = currentReferenceQ - iGridQ;
237 stateDerivative(GammaD, 0) = currentErrorD;
238 stateDerivative(GammaQ, 0) = currentErrorQ;
240 const Real converterVoltageReferenceD =
241 mKpCurrCtrl * currentErrorD + mKiCurrCtrl * gammaD;
242 const Real converterVoltageReferenceQ =
243 mKpCurrCtrl * currentErrorQ + mKiCurrCtrl * gammaQ;
246 converterVoltageReferenceDq << converterVoltageReferenceD,
247 converterVoltageReferenceQ;
250 inverseParkTransform * converterVoltageReferenceDq;
256 ifAbc / mCf + (u - vcAbc) / (mCf * mRc);
258 (converterVoltageReferenceAbc - vcAbc - mRf * ifAbc) / mLf;
260 stateDerivative.block(VcA, 0, 3, 1) = vcDerivative;
261 stateDerivative.block(IfA, 0, 3, 1) = ifDerivative;
264void EMT::Ph3::SSN_GFL::evaluateOutput(
const Matrix &x,
const Matrix &u,
266 if (x.rows() != mStateSize || x.cols() != 1)
267 throw std::invalid_argument(
268 "SSN_GFL state vector has an invalid dimension.");
270 if (u.rows() != mInputSize || u.cols() != 1)
271 throw std::invalid_argument(
272 "SSN_GFL input vector has an invalid dimension.");
274 const Matrix vcAbc = x.block(VcA, 0, 3, 1);
278 output = (u - vcAbc) / mRc;
281void EMT::Ph3::SSN_GFL::calculateAnalyticalJacobians(
const Matrix &x,
285 if (x.rows() != mStateSize || x.cols() != 1)
286 throw std::invalid_argument(
287 "SSN_GFL state vector has an invalid dimension.");
289 if (u.rows() != mInputSize || u.cols() != 1)
290 throw std::invalid_argument(
291 "SSN_GFL input vector has an invalid dimension.");
293 const Real thetaPLL = x(ThetaPLL, 0);
294 const Real pFiltered = x(PFiltered, 0);
295 const Real qFiltered = x(QFiltered, 0);
296 const Real phiD = x(PhiD, 0);
297 const Real phiQ = x(PhiQ, 0);
298 const Real gammaD = x(GammaD, 0);
299 const Real gammaQ = x(GammaQ, 0);
305 const Eigen::Matrix<Real, 1, 3, Eigen::RowMajor> tD = parkTransform.row(0);
306 const Eigen::Matrix<Real, 1, 3, Eigen::RowMajor> tQ = parkTransform.row(1);
309 getInverseParkTransformMatrix(thetaPLL);
315 const Eigen::Matrix<Real, 1, 3, Eigen::RowMajor> dTdTheta = tQ;
316 const Eigen::Matrix<Real, 1, 3, Eigen::RowMajor> dTqTheta = -tD;
322 const Real vcD = (tD * vcAbc)(0, 0);
323 const Real vcQ = (tQ * vcAbc)(0, 0);
324 const Real iGridD = (tD * iGridAbc)(0, 0);
325 const Real iGridQ = (tQ * iGridAbc)(0, 0);
327 const Eigen::Matrix<Real, 1, 3, Eigen::RowMajor> dVcDByVc = tD;
328 const Eigen::Matrix<Real, 1, 3, Eigen::RowMajor> dVcQByVc = tQ;
329 const Eigen::Matrix<Real, 1, 3, Eigen::RowMajor> dIGridDByVc = tD / mRc;
330 const Eigen::Matrix<Real, 1, 3, Eigen::RowMajor> dIGridQByVc = tQ / mRc;
331 const Eigen::Matrix<Real, 1, 3, Eigen::RowMajor> dIGridDByU = -tD / mRc;
332 const Eigen::Matrix<Real, 1, 3, Eigen::RowMajor> dIGridQByU = -tQ / mRc;
334 const Real dVcDByTheta = (dTdTheta * vcAbc)(0, 0);
335 const Real dVcQByTheta = (dTqTheta * vcAbc)(0, 0);
336 const Real dIGridDByTheta = (dTdTheta * iGridAbc)(0, 0);
337 const Real dIGridQByTheta = (dTqTheta * iGridAbc)(0, 0);
340 const Real dPByTheta = iGridD * dVcDByTheta + vcD * dIGridDByTheta +
341 iGridQ * dVcQByTheta + vcQ * dIGridQByTheta;
342 const Eigen::Matrix<Real, 1, 3, Eigen::RowMajor> dPByVc =
343 iGridD * dVcDByVc + vcD * dIGridDByVc + iGridQ * dVcQByVc +
345 const Eigen::Matrix<Real, 1, 3, Eigen::RowMajor> dPByU =
346 vcD * dIGridDByU + vcQ * dIGridQByU;
349 const Real dQByTheta = -iGridQ * dVcDByTheta - vcD * dIGridQByTheta +
350 iGridD * dVcQByTheta + vcQ * dIGridDByTheta;
351 const Eigen::Matrix<Real, 1, 3, Eigen::RowMajor> dQByVc =
352 -iGridQ * dVcDByVc - vcD * dIGridQByVc + iGridD * dVcQByVc +
354 const Eigen::Matrix<Real, 1, 3, Eigen::RowMajor> dQByU =
355 -vcD * dIGridQByU + vcQ * dIGridDByU;
357 const Real currentReferenceD =
358 -mKpPowerCtrl * pFiltered + mKiPowerCtrl * phiD + mKpPowerCtrl * mPRef;
359 const Real currentReferenceQ =
360 mKpPowerCtrl * qFiltered + mKiPowerCtrl * phiQ - mKpPowerCtrl * mQRef;
362 const Real converterVoltageReferenceD = -mKpCurrCtrl * iGridD +
363 mKiCurrCtrl * gammaD +
364 mKpCurrCtrl * currentReferenceD;
365 const Real converterVoltageReferenceQ = -mKpCurrCtrl * iGridQ +
366 mKiCurrCtrl * gammaQ +
367 mKpCurrCtrl * currentReferenceQ;
369 const Real dVoltageReferenceDByTheta = -mKpCurrCtrl * dIGridDByTheta;
370 const Eigen::Matrix<Real, 1, 3, Eigen::RowMajor> dVoltageReferenceDByVc =
371 -mKpCurrCtrl * dIGridDByVc;
372 const Eigen::Matrix<Real, 1, 3, Eigen::RowMajor> dVoltageReferenceDByU =
373 -mKpCurrCtrl * dIGridDByU;
375 const Real dVoltageReferenceQByTheta = -mKpCurrCtrl * dIGridQByTheta;
376 const Eigen::Matrix<Real, 1, 3, Eigen::RowMajor> dVoltageReferenceQByVc =
377 -mKpCurrCtrl * dIGridQByVc;
378 const Eigen::Matrix<Real, 1, 3, Eigen::RowMajor> dVoltageReferenceQByU =
379 -mKpCurrCtrl * dIGridQByU;
382 MatrixFixedSize<3, 14>::Zero();
385 dConverterVoltageAbcByX.col(ThetaPLL) =
386 dSdTheta * converterVoltageReferenceD +
387 dSqTheta * converterVoltageReferenceQ + sD * dVoltageReferenceDByTheta +
388 sQ * dVoltageReferenceQByTheta;
390 dConverterVoltageAbcByX.col(PFiltered) += sD * (-mKpCurrCtrl * mKpPowerCtrl);
391 dConverterVoltageAbcByX.col(PhiD) += sD * (mKpCurrCtrl * mKiPowerCtrl);
392 dConverterVoltageAbcByX.col(GammaD) += sD * mKiCurrCtrl;
394 dConverterVoltageAbcByX.col(QFiltered) += sQ * (mKpCurrCtrl * mKpPowerCtrl);
395 dConverterVoltageAbcByX.col(PhiQ) += sQ * (mKpCurrCtrl * mKiPowerCtrl);
396 dConverterVoltageAbcByX.col(GammaQ) += sQ * mKiCurrCtrl;
398 dConverterVoltageAbcByX.block(0, VcA, 3, 3) +=
399 sD * dVoltageReferenceDByVc + sQ * dVoltageReferenceQByVc;
401 dConverterVoltageAbcByU =
402 sD * dVoltageReferenceDByU + sQ * dVoltageReferenceQByU;
404 A.setZero(mStateSize, mStateSize);
405 B.setZero(mStateSize, mInputSize);
406 C.setZero(mOutputSize, mStateSize);
407 D.setZero(mOutputSize, mInputSize);
410 A(ThetaPLL, ThetaPLL) = mKpPLL * dVcQByTheta;
411 A(ThetaPLL, PhiPLL) = mKiPLL;
412 A.block(ThetaPLL, VcA, 1, 3) = mKpPLL * dVcQByVc;
414 A(PhiPLL, ThetaPLL) = dVcQByTheta;
415 A.block(PhiPLL, VcA, 1, 3) = dVcQByVc;
418 A(PFiltered, ThetaPLL) = mOmegaCutoff * dPByTheta;
419 A(PFiltered, PFiltered) = -mOmegaCutoff;
420 A.block(PFiltered, VcA, 1, 3) = mOmegaCutoff * dPByVc;
421 B.block(PFiltered, 0, 1, 3) = mOmegaCutoff * dPByU;
423 A(QFiltered, ThetaPLL) = mOmegaCutoff * dQByTheta;
424 A(QFiltered, QFiltered) = -mOmegaCutoff;
425 A.block(QFiltered, VcA, 1, 3) = mOmegaCutoff * dQByVc;
426 B.block(QFiltered, 0, 1, 3) = mOmegaCutoff * dQByU;
429 A(PhiD, PFiltered) = -1.0;
430 A(PhiQ, QFiltered) = 1.0;
433 A(GammaD, PFiltered) = -mKpPowerCtrl;
434 A(GammaD, PhiD) = mKiPowerCtrl;
435 A(GammaD, ThetaPLL) = -dIGridDByTheta;
436 A.block(GammaD, VcA, 1, 3) = -dIGridDByVc;
437 B.block(GammaD, 0, 1, 3) = -dIGridDByU;
439 A(GammaQ, QFiltered) = mKpPowerCtrl;
440 A(GammaQ, PhiQ) = mKiPowerCtrl;
441 A(GammaQ, ThetaPLL) = -dIGridQByTheta;
442 A.block(GammaQ, VcA, 1, 3) = -dIGridQByVc;
443 B.block(GammaQ, 0, 1, 3) = -dIGridQByU;
446 A.block(VcA, VcA, 3, 3) = -1.0 / (mCf * mRc) * identity3;
447 A.block(VcA, IfA, 3, 3) = 1.0 / mCf * identity3;
448 B.block(VcA, 0, 3, 3) = 1.0 / (mCf * mRc) * identity3;
450 A.block(IfA, 0, 3, mStateSize) = (1.0 / mLf) * dConverterVoltageAbcByX;
451 A.block(IfA, VcA, 3, 3) += -1.0 / mLf * identity3;
452 A.block(IfA, IfA, 3, 3) += -mRf / mLf * identity3;
453 B.block(IfA, 0, 3, 3) = (1.0 / mLf) * dConverterVoltageAbcByU;
456 C.block(0, VcA, 3, 3) = -1.0 / mRc * identity3;
457 D = 1.0 / mRc * identity3;
460void EMT::Ph3::SSN_GFL::buildStateSpaceModel(
const Matrix &x,
const Matrix &u,
463 calculateAnalyticalJacobians(x, u,
A,
B,
C, D);
465 evaluateStateDerivative(x, u, mStateDerivativeScratch);
466 evaluateOutput(x, u, mOutputScratch);
469 E = mStateDerivativeScratch;
470 E.noalias() -=
A * x;
471 E.noalias() -=
B * u;
473 F.noalias() -=
C * x;
474 F.noalias() -= D * u;
479 mStateOffsetScratch, mOutputOffsetScratch);
492 const Matrix parkTransform = getParkTransformMatrix(x(ThetaPLL, 0));
493 const Matrix vcAbc = x.block(VcA, 0, 3, 1);
494 const Matrix iGridAbc = (vcAbc - u) / mRc;
496 **mVcD = (parkTransform.row(0) * vcAbc)(0, 0);
497 **mVcQ = (parkTransform.row(1) * vcAbc)(0, 0);
498 **mIrcD = (parkTransform.row(0) * iGridAbc)(0, 0);
499 **mIrcQ = (parkTransform.row(1) * iGridAbc)(0, 0);
501 **mPInst = **mVcD * **mIrcD + **mVcQ * **mIrcQ;
502 **mQInst = -**mVcD * **mIrcQ + **mVcQ * **mIrcD;
504 **mOmegaPLL = mOmegaN + mKpPLL * **mVcQ + mKiPLL * x(PhiPLL, 0);
509 throw std::logic_error(
"setParameters() must be called before "
510 "initializeFromNodesAndTerminals().");
513 const Real omega = 2.0 *
PI * frequency;
514 const Complex imaginaryUnit(0.0, 1.0);
515 const Complex powerReference(mPRef, mQRef);
520 MatrixComp injectionCurrentPhasor = MatrixComp::Zero(3, 1);
524 const Complex vcA = vcPhasor(0, 0);
527 injectionCurrentPhasor.setZero();
532 const Complex currentA = std::conj(powerReference / (1.5 * vcA));
538 const MatrixComp nextVcPhasor = uPhasor + mRc * nextInjectionCurrent;
540 injectionCurrentPhasor = nextInjectionCurrent;
543 vcPhasor = nextVcPhasor;
547 vcPhasor = nextVcPhasor;
551 imaginaryUnit * omega * mCf * vcPhasor + injectionCurrentPhasor;
552 const MatrixComp converterVoltageReferencePhasor =
553 vcPhasor + (mRf + imaginaryUnit * omega * mLf) * ifPhasor;
555 const Matrix vcAbc0 = vcPhasor.real();
556 const Matrix ifAbc0 = ifPhasor.real();
557 const Matrix injectionCurrentAbc0 = injectionCurrentPhasor.real();
558 const Matrix converterVoltageReferenceAbc0 =
559 converterVoltageReferencePhasor.real();
561 const Real theta0 = std::arg(vcPhasor(0, 0));
562 const Matrix parkTransform = getParkTransformMatrix(theta0);
564 const Matrix vcDq0 = parkTransform * vcAbc0;
565 const Matrix injectionCurrentDq0 = parkTransform * injectionCurrentAbc0;
566 const Matrix converterVoltageReferenceDq0 =
567 parkTransform * converterVoltageReferenceAbc0;
569 const Real vcD0 = vcDq0(0, 0);
570 const Real vcQ0 = vcDq0(1, 0);
571 const Real iGridD0 = injectionCurrentDq0(0, 0);
572 const Real iGridQ0 = injectionCurrentDq0(1, 0);
574 const Real pInitial = vcD0 * iGridD0 + vcQ0 * iGridQ0;
575 const Real qInitial = -vcD0 * iGridQ0 + vcQ0 * iGridD0;
577 Matrix x0 = Matrix::Zero(mStateSize, 1);
579 x0(ThetaPLL, 0) = theta0;
580 x0(PhiPLL, 0) = (omega - mOmegaN) / mKiPLL;
581 x0(PFiltered, 0) = pInitial;
582 x0(QFiltered, 0) = qInitial;
584 x0(PhiD, 0) = (iGridD0 + mKpPowerCtrl * (pInitial - mPRef)) / mKiPowerCtrl;
585 x0(PhiQ, 0) = (iGridQ0 - mKpPowerCtrl * (qInitial - mQRef)) / mKiPowerCtrl;
587 const Real currentReferenceD = -mKpPowerCtrl * pInitial +
588 mKiPowerCtrl * x0(PhiD, 0) +
589 mKpPowerCtrl * mPRef;
590 const Real currentReferenceQ = mKpPowerCtrl * qInitial +
591 mKiPowerCtrl * x0(PhiQ, 0) -
592 mKpPowerCtrl * mQRef;
594 x0(GammaD, 0) = (converterVoltageReferenceDq0(0, 0) +
595 mKpCurrCtrl * (iGridD0 - currentReferenceD)) /
597 x0(GammaQ, 0) = (converterVoltageReferenceDq0(1, 0) +
598 mKpCurrCtrl * (iGridQ0 - currentReferenceQ)) /
601 x0.block(VcA, 0, 3, 1) = vcAbc0;
602 x0.block(IfA, 0, 3, 1) = ifAbc0;
612 SPDLOG_LOGGER_INFO(
mSLog,
613 "\n--- SSN GFL phasor/dq initialization ---"
617 "\nP/Q init: [{:.6e}, {:.6e}]"
618 "\nVc dq: [{:.6e}, {:.6e}]"
619 "\nIgrid dq: [{:.6e}, {:.6e}]"
620 "\n--- SSN GFL initialization finished ---",
624 vcQ0, iGridD0, iGridQ0);
630 Matrix stateDerivative = Matrix::Zero(mStateSize, 1);
632 return stateDerivative;
Matrix getInterfaceVoltage() const
std::vector< String > getLocalStateNames() const override final
Bool updateComponentParameters() override final
Matrix getInterfaceCurrent() const
std::vector< SSNComp::LocalAbcStateBlock > getLocalAbcStateBlocks() const override final
void updateLogAttributes(const Matrix &u) const override final
Update derived attributes used for logging/inspection.
void setParameters(Real lf, Real cf, Real rf, Real rc, Real omegaN, Real kpPLL, Real kiPLL, Real omegaCutoff, Real pRef, Real qRef, Real kpPowerCtrl, Real kiPowerCtrl, Real kpCurrCtrl, Real kiCurrCtrl)
Configure the GFL filter, PLL, power loop and current loop.
SSN_GFL(String uid, String name, Logger::Level logLevel=Logger::Level::off)
void initializeFromNodesAndTerminals(Real frequency) override final
Initializes Component variables according to power flow data stored in Nodes.
Matrix getStateDerivative() const
TwoTerminalVTypeVariableSSNComp(String uid, String name, Logger::Level logLevel=Logger::Level::off)
MatrixComp buildInitialInputFromNodes(Real frequency) override final
const Attribute< Matrix >::Ptr mX
void setStateOffset(const Matrix &E)
void setParameters(const Matrix &A, const Matrix &B, const Matrix &C, const Matrix &D)
static constexpr Real mInitializationTolerance
void setOutputOffset(const Matrix &F)
static constexpr Int mInitializationMaxIterations
String uid()
Returns unique id.
AttributeList::Ptr mAttributes
Attribute List.
spdlog::level::level_enum Level
static String matrixToString(const Matrix &mat)
static bool isFinite(Real value)
const Attribute< MatrixVar< Real > >::Ptr mIntfCurrent
const Attribute< MatrixVar< Real > >::Ptr mIntfVoltage
bool mParametersSet
Flag indicating that parameters are set via setParameters() function.
Logger::Log mSLog
Component logger.
Eigen::Matrix< Real, Eigen::Dynamic, Eigen::Dynamic, Eigen::ColMajor > Matrix
Dense matrix for real numbers.
Eigen::Matrix< Real, rows, cols, Eigen::ColMajor > MatrixFixedSize
Dense matrix for real numbers with fixed dimension.
std::complex< Real > Complex
Eigen::Matrix< Complex, Eigen::Dynamic, Eigen::Dynamic, Eigen::ColMajor > MatrixComp
Dense matrix for complex numbers.