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
8
namespace
num
{
9
10
/// @brief Real-valued scalar function f(x)
11
using
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
15
using
VectorFn
= std::function<
void
(
real
,
real
*,
real
*)>;
16
17
}
// namespace num
types.hpp
Core type definitions.
num
Definition
quadrature.hpp:8
num::VectorFn
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
num::real
double real
Definition
types.hpp:10
num::ipow
constexpr T ipow(T x) noexcept
Compute x^N at compile time via repeated squaring.
Definition
integer_pow.hpp:34
num::ScalarFn
std::function< real(real)> ScalarFn
Real-valued scalar function f(x)
Definition
types.hpp:11
include
analysis
types.hpp
Generated by
1.9.8