alpaqa
1.0.0a14
Nonconvex constrained optimization
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
i
j
l
m
n
o
p
r
s
t
u
v
w
Functions
a
b
c
d
e
f
g
i
j
l
m
n
o
p
r
s
t
u
w
Variables
Typedefs
a
c
d
f
i
l
m
p
r
s
t
u
v
Enumerations
Concepts
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
j
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
z
ŷ
α
γ
δ
ε
λ
ρ
σ
τ
φ
ψ
ϵ
Typedefs
a
b
c
d
e
f
h
i
l
m
n
o
p
r
s
t
v
w
Enumerations
Enumerator
a
f
i
s
u
Related Symbols
Files
File List
File Members
All
a
c
d
e
f
g
l
m
p
r
s
t
u
w
Functions
a
c
d
e
f
g
l
m
p
r
s
t
w
Variables
Typedefs
Enumerations
Enumerator
Macros
a
c
e
p
u
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Concepts
Loading...
Searching...
No Matches
src
alpaqa
include
alpaqa
util
alloc-check.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <Eigen/Core>
4
5
namespace
alpaqa
{
6
7
#ifdef EIGEN_RUNTIME_NO_MALLOC
8
template
<
bool
Allow>
9
struct
ScopedMallocChecker {
10
ScopedMallocChecker
() :
prev
(
Eigen
::
internal
::
is_malloc_allowed
()) {
11
Eigen::internal::set_is_malloc_allowed(
Allow
);
12
}
13
~ScopedMallocChecker
() { Eigen::internal::set_is_malloc_allowed(
prev
); }
14
bool
prev
;
15
};
16
#else
17
template
<
bool
>
18
struct
[[
maybe_unused
]]
ScopedMallocChecker
{
19
// Empty constructor suppresses MSVC /we4101 (unreferenced local variable)
20
ScopedMallocChecker
()
noexcept
{}
// NOLINT(*-use-equals-default)
21
};
18
struct
[[
maybe_unused
]]
ScopedMallocChecker
{
…
};
22
#endif
23
struct
[[
maybe_unused
]]
ScopedMallocBlocker
:
ScopedMallocChecker
<false> {};
24
struct
[[
maybe_unused
]]
ScopedMallocAllower
:
ScopedMallocChecker
<true> {};
25
26
}
// namespace alpaqa
alpaqa
Definition
anderson.hpp:10
alpaqa::inf
constexpr const auto inf
Definition
config.hpp:85
alpaqa::ScopedMallocAllower
Definition
alloc-check.hpp:24
alpaqa::ScopedMallocBlocker
Definition
alloc-check.hpp:23
alpaqa::ScopedMallocChecker
Definition
alloc-check.hpp:18
alpaqa::ScopedMallocChecker::ScopedMallocChecker
ScopedMallocChecker() noexcept
Definition
alloc-check.hpp:20
Generated on Wed Nov 15 2023 for alpaqa by
1.9.8