PolyFEM
Loading...
Searching...
No Matches
FrankeProblem.hpp
Go to the documentation of this file.
1#pragma once
2
4
5#include <vector>
6#include <Eigen/Dense>
7
8namespace polyfem
9{
10 namespace problem
11 {
13 {
14 public:
15 FrankeProblem(const std::string &name);
16
17 VectorNd eval_fun(const VectorNd &pt, const double t) const override;
18 AutodiffGradPt eval_fun(const AutodiffGradPt &pt, const double t) const override;
19 AutodiffHessianPt eval_fun(const AutodiffHessianPt &pt, const double t) const override;
20
21 bool is_scalar() const override { return true; }
22 };
23
25 {
26 public:
27 FrankeProblemOld(const std::string &name);
28
29 VectorNd eval_fun(const VectorNd &pt, const double t) const override;
30 AutodiffGradPt eval_fun(const AutodiffGradPt &pt, const double t) const override;
31 AutodiffHessianPt eval_fun(const AutodiffHessianPt &pt, const double t) const override;
32
33 bool is_scalar() const override { return true; }
34 };
35 } // namespace problem
36} // namespace polyfem
const std::string & name() const
Definition Problem.hpp:23
bool is_scalar() const override
VectorNd eval_fun(const VectorNd &pt, const double t) const override
VectorNd eval_fun(const VectorNd &pt, const double t) const override
Eigen::Matrix< AutodiffScalarHessian, Eigen::Dynamic, 1, 0, 3, 1 > AutodiffHessianPt
Eigen::Matrix< double, Eigen::Dynamic, 1, 0, 3, 1 > VectorNd
Definition Types.hpp:11
Eigen::Matrix< AutodiffScalarGrad, Eigen::Dynamic, 1, 0, 3, 1 > AutodiffGradPt