DPsim
Loading...
Searching...
No Matches
Definitions.h
1/* Copyright 2017-2021 Institute for Automation of Complex Power Systems,
2 * EONERC, RWTH Aachen University
3 *
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at https://mozilla.org/MPL/2.0/.
7 *********************************************************************************/
8
9#pragma once
10
11#include <dpsim-models/Definitions.h>
12
13// This macro defines the tolerance used to compare double numbers
14#define DOUBLE_EPSILON 1E-12
15
16namespace DPsim {
17// #### Types ####
18using Real = CPS::Real;
19using Complex = CPS::Complex;
20using String = CPS::String;
21using Bool = CPS::Bool;
22using Int = CPS::Int;
23using UInt = CPS::UInt;
24using Matrix = CPS::Matrix;
25using MatrixComp = CPS::MatrixComp;
26using SparseMatrix = CPS::SparseMatrixRow;
27using SparseMatrixComp = CPS::SparseMatrixCompRow;
28
29template <typename T> using MatrixVar = CPS::MatrixVar<T>;
30
33} // namespace DPsim