numerics
Loading...
Searching...
No Matches
types.hpp
Go to the documentation of this file.
1/// @file analysis/types.hpp
2/// @brief Common function type aliases for the analysis module
3#pragma once
4
5#include "core/types.hpp"
6#include <functional>
7
8namespace num {
9
10/// @brief Real-valued scalar function f(x)
11using ScalarFn = std::function<real(real)>;
12
13/// @brief Real-valued multivariate function f(x) where x is a scalar parameter
14/// and the function returns a vector of residuals -- used in nonlinear systems
15using VectorFn = std::function<void(real, real*, real*)>;
16
17} // namespace num
Core type definitions.
std::function< void(real, real *, real *)> VectorFn
Real-valued multivariate function f(x) where x is a scalar parameter and the function returns a vecto...
Definition types.hpp:15
double real
Definition types.hpp:10
constexpr T ipow(T x) noexcept
Compute x^N at compile time via repeated squaring.
std::function< real(real)> ScalarFn
Real-valued scalar function f(x)
Definition types.hpp:11