|
Harmony
HARMONic stabilitY assessment of PE-penetrated power systems
|
Standard numeric constants and matrix utility functions. More...
#include "../../Constants.h"

Go to the source code of this file.
Functions | |
| int | sgn (int v) |
| Returns the sign of an integer. | |
| MatrixXcd | vectorToMatrix (const vector< vector< complex< double > > > &vec) |
| Converts a nested complex vector to an Eigen MatrixXcd. | |
| MatrixXd | vectorToMatrix (const vector< vector< double > > &vec) |
| Converts a nested real vector to an Eigen MatrixXd. | |
| vector< vector< complex< double > > > | matrixToVector (const MatrixXcd &mat) |
| Converts an Eigen MatrixXcd to a nested complex vector. | |
| vector< vector< double > > | matrixToVector (const MatrixXd &mat) |
| Converts an Eigen MatrixXd to a nested real vector. | |
| MatrixXcd | stack_u_4x_3xN (const MatrixXcd &u1, const MatrixXcd &u2, const MatrixXcd &u3, const MatrixXcd &u4) |
| Stacks four input matrices into a single block column. | |
| vector< vector< complex< double > > > | mat_mul (const vector< vector< complex< double > > > &A, const vector< vector< complex< double > > > &B) |
| Complex matrix multiplication using nested vectors. | |
| vector< vector< complex< double > > > | mul_scalar (const vector< vector< complex< double > > > &A, const complex< double > &scalar) |
| Scales every entry of a complex matrix by a scalar. | |
| vector< vector< complex< double > > > | mat_add (const vector< vector< complex< double > > > &A, const vector< vector< complex< double > > > &B) |
| Element-wise addition of two complex matrices. | |
| vector< vector< complex< double > > > | mat_sub (const vector< vector< complex< double > > > &A, const vector< vector< complex< double > > > &B) |
| Element-wise subtraction of two complex matrices. | |
| vector< vector< complex< double > > > | mat_transpose (const vector< vector< complex< double > > > &A) |
| Transposes a complex matrix stored as nested vectors. | |
| vector< vector< complex< double > > > | get_block (const vector< vector< complex< double > > > &Y, int r_off, int c_off, int r_num, int c_num) |
| Extracts a rectangular sub-block from a complex matrix. | |
Variables | |
| const double | mu_0 |
| Vacuum permeability (H/m). | |
| const double | epsilon_0 |
| Vacuum permittivity (F/m). | |
| const double | gamma_num |
| Euler–Mascheroni constant. | |
Standard numeric constants and matrix utility functions.
Provides physical constants, sign helpers, vector/matrix conversions, and basic complex-matrix arithmetic used throughout the solver.
|
extern |
Extracts a rectangular sub-block from a complex matrix.
| Y | Source matrix. |
| r_off | Row offset (0-based). |
| c_off | Column offset (0-based). |
| r_num | Number of rows to extract. |
| c_num | Number of columns to extract. |
Extracts a rectangular sub-block from a complex matrix.
| Y | The source matrix. |
| r_off | The starting row index of the block. |
| c_off | The starting column index of the block. |
| r_num | The number of rows in the block. |
| c_num | The number of columns in the block. |
References j.
Referenced by Element::apply_transformation().
|
extern |
Element-wise addition of two complex matrices.
| A | First operand. |
| B | Second operand. |
Element-wise addition of two complex matrices.
| A | The first matrix. |
| B | The second matrix. |
References j.
Referenced by Element::apply_transformation().
|
extern |
Complex matrix multiplication using nested vectors.
| A | Left operand. |
| B | Right operand. |
Complex matrix multiplication using nested vectors.
| A | The left-hand side matrix. |
| B | The right-hand side matrix. |
| std::runtime_error | if matrix dimensions are incompatible for multiplication. |
References j.
Referenced by Element::apply_transformation().
|
extern |
Element-wise subtraction of two complex matrices.
| A | Minuend. |
| B | Subtrahend. |
Element-wise subtraction of two complex matrices.
| A | The matrix from which to subtract. |
| B | The matrix to subtract. |
References j.
|
extern |
Transposes a complex matrix stored as nested vectors.
| A | Input matrix. |
Transposes a complex matrix stored as nested vectors.
| A | The matrix to transpose. |
References j.
Referenced by Element::apply_transformation().
|
extern |
Converts an Eigen MatrixXcd to a nested complex vector.
| mat | Input complex matrix. |
Converts an Eigen MatrixXcd to a nested complex vector.
| mat | The input Eigen::MatrixXcd. |
References j.
Referenced by Converter::plotParticipationFactors().
|
extern |
Converts an Eigen MatrixXd to a nested real vector.
| mat | Input real matrix. |
References j.
|
extern |
Scales every entry of a complex matrix by a scalar.
| A | Input matrix. |
| scalar | Complex scale factor. |
Scales every entry of a complex matrix by a scalar.
| A | The matrix to be multiplied. |
| scalar | The complex scalar value. |
References j.
Referenced by Element::apply_transformation().
|
extern |
Returns the sign of an integer.
| v | Input value. |
Returns the sign of an integer.
| v | The integer value. |
Referenced by dq_multiply().
|
extern |
Stacks four input matrices into a single block column.
| u1 | First input block. |
| u2 | Second input block. |
| u3 | Third input block. |
| u4 | Fourth input block. |
|
extern |
Converts a nested complex vector to an Eigen MatrixXcd.
| vec | 2-D vector of complex values. |
Converts a nested complex vector to an Eigen MatrixXcd.
| vec | The input 2D vector (matrix). |
| std::runtime_error | if the inner vectors have inconsistent lengths. |
References j.
Referenced by StabilityEstimate::compute_transfer_function(), example_MMC(), and example_stability_check().
|
extern |
Converts a nested real vector to an Eigen MatrixXd.
| vec | 2-D vector of double values. |
Converts a nested real vector to an Eigen MatrixXd.
| vec | The input 2D vector (matrix). |
| std::runtime_error | if the inner vectors have inconsistent lengths. |
References j.
|
extern |
Vacuum permittivity (F/m).
Vacuum permittivity (F/m).
|
extern |
Euler–Mascheroni constant.
Euler–Mascheroni constant.
|
extern |
Vacuum permeability (H/m).
Vacuum permeability (H/m).