hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
Namespaces | Typedefs | Functions | Variables
types.hpp File Reference
#include <complex>
#include <cstddef>
#include <cstdint>
#include <Eigen/Core>
#include <Eigen/SparseCore>
Include dependency graph for types.hpp:

Go to the source code of this file.

Namespaces

namespace  hpfem
 

Typedefs

using hpfem::Real = double
 
using hpfem::Complex = std::complex< double >
 
using hpfem::Index = std::int64_t
 global indices (DoFs, entities)
 
using hpfem::LocalIndex = std::int32_t
 element-local indices
 
using hpfem::Vector = Eigen::Matrix< Complex, Eigen::Dynamic, 1 >
 
using hpfem::RealVector = Eigen::Matrix< Real, Eigen::Dynamic, 1 >
 
using hpfem::Matrix = Eigen::Matrix< Complex, Eigen::Dynamic, Eigen::Dynamic >
 
using hpfem::RealMatrix = Eigen::Matrix< Real, Eigen::Dynamic, Eigen::Dynamic >
 
using hpfem::SparseMatrix = Eigen::SparseMatrix< Complex, Eigen::RowMajor, Index >
 
template<int Dim>
using hpfem::Point = Eigen::Matrix< Real, Dim, 1 >
 

Functions

constexpr std::size_t hpfem::as_size (Index i) noexcept
 Converts a non-negative global or local index to a container index.
 

Variables

constexpr Complex hpfem::kI {0.0, 1.0}
 
constexpr Index hpfem::kInvalidIndex = -1
 "No entity" marker, e.g. the neighbour across a boundary facet.
 

Detailed Description

Fundamental scalar and index types used throughout hpfem. Convention (see CLAUDE.md §6): time dependence exp(-iωt), SI units.