🛰️航天仿真算法库 SpaceAST
0.0.1
载入中...
搜索中...
未找到
BrentSolver.hpp
浏览该文件的文档.
1
20
21
#pragma once
22
23
#include "AstGlobal.h"
24
#include "AstMath/UnarySolver.hpp"
25
26
27
AST_NAMESPACE_BEGIN
28
31
class
AST_MATH_API
BrentqSolver
:
public
UnarySolver
32
{
33
public
:
34
using
UnarySolver::UnarySolver;
35
BrentqSolver
() =
default
;
36
~BrentqSolver
() =
default
;
37
using
UnarySolver::solve;
38
errc_t
solve
(
UnaryScalarFunc
& func,
double
min,
double
max,
double
& result)
override
;
39
};
40
43
class
AST_MATH_API
BrenthSolver
:
public
UnarySolver
44
{
45
public
:
46
using
UnarySolver::UnarySolver;
47
BrenthSolver
() =
default
;
48
~BrenthSolver
() =
default
;
49
using
UnarySolver::solve;
50
errc_t
solve
(
UnaryScalarFunc
& func,
double
min,
double
max,
double
& result)
override
;
51
};
52
53
using
BrentSolver
=
BrentqSolver
;
54
55
AST_NAMESPACE_END
ast::BrenthSolver
Brenth法求解器
定义
BrentSolver.hpp:44
ast::BrentqSolver
Brentq法求解器
定义
BrentSolver.hpp:32
ast::UnaryScalarFunc
一元标量值函数
定义
UnaryScalarFunc.hpp:31
ast::UnarySolver
一元方程求解器
定义
UnarySolver.hpp:66
ast::UnarySolver::solve
std::enable_if<!std::is_base_of< UnaryScalarFunc, typenamestd::remove_pointer< Func >::type >::value, errc_t >::type solve(Func func, double min, double max, double &result)
求解一元方程(支持lambda函数)
定义
UnarySolver.hpp:108
src
AstMath
NLE
Impl
BrentSolver.hpp
制作者
1.12.0