|
Harmony
HARMONic stabilitY assessment of PE-penetrated power systems
|
Central include hub for Harmony: third-party libraries, standard headers, and shared type aliases. More...
#include <symengine/basic.h>#include <symengine/symbol.h>#include <symengine/add.h>#include <symengine/mul.h>#include <symengine/pow.h>#include <symengine/real_double.h>#include <symengine/eval_double.h>#include <symengine/eval.h>#include <symengine/functions.h>#include <symengine/complex.h>#include <symengine/complex_double.h>#include <symengine/expression.h>#include <symengine/symengine_config.h>#include <symengine/matrix.h>#include <symengine/subs.h>#include <symengine/simplify.h>#include <symengine/matrices/identity_matrix.h>#include <symengine/matrices/matrix_mul.h>#include <symengine/matrices/matrix_add.h>#include <symengine/matrix_expressions.h>#include <symengine/matrices/immutable_dense_matrix.h>#include <symengine/polys/basic_conversions.h>#include <symengine/printers.h>#include <symengine/real_mpfr.h>#include <Eigen/Dense>#include <Eigen/Sparse>#include <unsupported/Eigen/MatrixFunctions>#include <unsupported/Eigen/NonLinearOptimization>#include <unsupported/Eigen/NumericalDiff>#include <math.h>#include <string>#include <iostream>#include <fstream>#include <vector>#include <complex>#include <stdexcept>#include <tuple>#include <variant>#include <algorithm>#include <sstream>#include <thread>#include <chrono>#include <any>#include <map>#include <cctype>#include <regex>#include <memory>#include <unordered_map>#include <cmath>#include <functional>#include <iomanip>#include <filesystem>#include <set>#include <mutex>#include <atomic>#include <deque>#include <cstdlib>#include "gurobi_c++.h"#include <GLFW/glfw3.h>#include <imgui.h>#include <imgui_impl_glfw.h>#include <imgui_impl_opengl3.h>#include <implot.h>#include <sundials/sundials_types.h>#include <sundials/sundials_context.h>#include <cvode/cvode.h>#include <kinsol/kinsol.h>#include <nvector/nvector_serial.h>#include <sunmatrix/sunmatrix_dense.h>#include <sunlinsol/sunlinsol_dense.h>

Go to the source code of this file.
Macros | |
| #define | _USE_MATH_DEFINES |
Functions | |
| template<typename Table > | |
| Eigen::MatrixXd | map2dense (const Table &tbl, const std::vector< std::string > &colNames) |
| Convert a nested string-keyed table to a dense Eigen matrix. | |
Central include hub for Harmony: third-party libraries, standard headers, and shared type aliases.
Pulls in SymEngine (symbolic math), Eigen (dense/sparse linear algebra), GLFW/ImGui/Implot (visualization), SUNDIALS (time integration), and Gurobi (optimization). Defines common using aliases for SymEngine and Eigen types used across the codebase, and provides the map2dense helper for converting string-keyed tables to Eigen matrices.
| #define _USE_MATH_DEFINES |
| Eigen::MatrixXd map2dense | ( | const Table & | tbl, |
| const std::vector< std::string > & | colNames | ||
| ) |
Convert a nested string-keyed table to a dense Eigen matrix.
Row indices are parsed from the outer map keys via std::stoi. Column order follows colNames; missing entries default to 0.0.
| Table | Nested map type: outer key is row id string, inner map is column name to value. |
| tbl | Source table. |
| colNames | Ordered column names defining matrix column layout. |
Referenced by PowerFlow::make_OPF().