Loading [MathJax]/extensions/tex2jax.js
PolyFEM
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
x
y
z
Typedefs
Enumerations
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Typedefs
b
c
d
e
f
g
h
l
m
n
o
p
q
s
t
v
Enumerations
Related Symbols
a
c
e
g
i
l
o
p
s
Files
File List
File Members
All
_
a
c
d
e
f
g
h
i
j
l
m
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
_
a
c
d
e
f
g
i
l
m
q
s
t
v
w
x
y
z
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
MatrixLagrangianForm.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
AugmentedLagrangianForm.hpp
"
4
5
namespace
polyfem::solver
6
{
8
class
MatrixLagrangianForm
:
public
AugmentedLagrangianForm
9
{
10
public
:
16
MatrixLagrangianForm
(
const
StiffnessMatrix
&A,
17
const
Eigen::MatrixXd &b,
18
const
StiffnessMatrix
&A_proj = {},
19
const
Eigen::MatrixXd &b_pro = {});
20
21
std::string
name
()
const override
{
return
"generic-lagrangian"
; }
22
26
double
value_unweighted
(
const
Eigen::VectorXd &
x
)
const override
;
27
31
void
first_derivative_unweighted
(
const
Eigen::VectorXd &
x
, Eigen::VectorXd &gradv)
const override
;
32
36
void
second_derivative_unweighted
(
const
Eigen::VectorXd &
x
,
StiffnessMatrix
&hessian)
const override
;
37
38
public
:
39
void
update_lagrangian
(
const
Eigen::VectorXd &
x
,
const
double
k_al)
override
;
40
double
compute_error
(
const
Eigen::VectorXd &
x
)
const override
;
41
42
private
:
43
StiffnessMatrix
AtA
;
44
Eigen::VectorXd
Atb
;
45
};
8
class
MatrixLagrangianForm
:
public
AugmentedLagrangianForm
{
…
};
46
}
// namespace polyfem::solver
AugmentedLagrangianForm.hpp
x
int x
Definition
SplineBasis3d.cpp:55
polyfem::solver::AugmentedLagrangianForm
Form of the augmented lagrangian.
Definition
AugmentedLagrangianForm.hpp:9
polyfem::solver::MatrixLagrangianForm
Form of the lagrangian in augmented lagrangian.
Definition
MatrixLagrangianForm.hpp:9
polyfem::solver::MatrixLagrangianForm::name
std::string name() const override
Definition
MatrixLagrangianForm.hpp:21
polyfem::solver::MatrixLagrangianForm::first_derivative_unweighted
void first_derivative_unweighted(const Eigen::VectorXd &x, Eigen::VectorXd &gradv) const override
Compute the first derivative of the value wrt x.
Definition
MatrixLagrangianForm.cpp:35
polyfem::solver::MatrixLagrangianForm::update_lagrangian
void update_lagrangian(const Eigen::VectorXd &x, const double k_al) override
Definition
MatrixLagrangianForm.cpp:45
polyfem::solver::MatrixLagrangianForm::second_derivative_unweighted
void second_derivative_unweighted(const Eigen::VectorXd &x, StiffnessMatrix &hessian) const override
Compute the second derivative of the value wrt x.
Definition
MatrixLagrangianForm.cpp:40
polyfem::solver::MatrixLagrangianForm::AtA
StiffnessMatrix AtA
Definition
MatrixLagrangianForm.hpp:43
polyfem::solver::MatrixLagrangianForm::compute_error
double compute_error(const Eigen::VectorXd &x) const override
Definition
MatrixLagrangianForm.cpp:51
polyfem::solver::MatrixLagrangianForm::Atb
Eigen::VectorXd Atb
Definition
MatrixLagrangianForm.hpp:44
polyfem::solver::MatrixLagrangianForm::value_unweighted
double value_unweighted(const Eigen::VectorXd &x) const override
Compute the value of the form.
Definition
MatrixLagrangianForm.cpp:27
polyfem::solver
Definition
OptState.hpp:16
polyfem::StiffnessMatrix
Eigen::SparseMatrix< double, Eigen::ColMajor > StiffnessMatrix
Definition
Types.hpp:22
src
polyfem
solver
forms
lagrangian
MatrixLagrangianForm.hpp
Generated by
1.9.8