WPILibC++
2025.3.2
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace 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
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
Enumerations
a
b
c
d
e
f
h
i
l
m
n
o
p
r
s
t
u
v
Enumerator
a
b
c
f
h
i
k
l
m
o
p
s
t
u
w
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
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
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
Enumerator
a
b
c
f
i
k
m
o
p
r
s
v
Related Symbols
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Typedefs
a
b
c
d
e
f
h
i
j
l
m
n
o
p
r
s
t
u
v
w
z
Enumerations
a
c
e
h
m
n
p
r
s
t
u
w
Enumerator
c
h
i
m
n
p
u
w
Macros
_
a
c
d
e
f
g
h
i
j
k
l
m
n
p
r
s
t
u
v
w
x
▼
WPILibC++
LICENSE
Deprecated List
Todo List
►
Topics
►
Namespaces
►
Concepts
►
Classes
▼
Files
▼
File List
►
cameraserver
►
debugging
►
fmt
►
frc
►
frc
►
frc
►
frc
►
frc
►
frc
►
frc2
►
frc2
►
generated
►
generated
►
generated
►
hal
►
networktables
►
thirdparty
▼
thirdparty
►
gcem
▼
sleipnir
▼
include
▼
sleipnir
►
autodiff
►
control
►
optimization
▼
util
►
Assert.hpp
►
Concepts.hpp
►
FunctionRef.hpp
►
IntrusiveSharedPtr.hpp
►
Pool.hpp
►
Print.hpp
►
Spy.hpp
►
SymbolExports.hpp
.styleguide
►
thirdparty
►
units
►
vision
►
wpi
►
wpi
►
wpi
►
wpi
►
wpi
►
wpi
►
wpi
►
wpi
►
wpimath
►
wpinet
cscore.h
►
cscore_c.h
►
cscore_cpp.h
►
cscore_cv.h
cscore_oo.h
►
cscore_raw.h
►
cscore_runloop.h
ntcore.h
►
ntcore_c.h
►
ntcore_cpp.h
►
ntcore_test.h
►
WPILibVersion.h
debugging.hpp
►
pb.h
►
pb_common.h
►
pb_decode.h
►
pb_encode.h
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Concepts
Loading...
Searching...
No Matches
Concepts.hpp
Go to the documentation of this file.
1
// Copyright (c) Sleipnir contributors
2
3
#pragma once
4
5
#include <concepts>
6
7
#include <Eigen/Core>
8
9
namespace
sleipnir
{
10
11
template
<
typename
T>
12
concept
ScalarLike
=
requires
(T t) {
13
t + 1.0;
14
t = 1.0;
15
};
12
concept
ScalarLike
=
requires
(T t) {
…
}
16
17
template
<
typename
T>
18
concept
SleipnirMatrixLike
=
requires
(T t,
int
rows,
int
cols) {
19
t.Rows();
20
t.Cols();
21
t(rows, cols);
22
};
18
concept
SleipnirMatrixLike
=
requires
(T t,
int
rows,
int
cols) {
…
}
23
24
template
<
typename
T>
25
concept
EigenMatrixLike
= std::derived_from<T, Eigen::MatrixBase<T>>;
26
27
template
<
typename
T>
28
concept
MatrixLike
=
SleipnirMatrixLike<T>
||
EigenMatrixLike<T>
;
29
30
template
<
typename
T>
31
concept
EigenSolver
=
requires
(T t) { t.solve(Eigen::VectorXd{}); };
32
33
}
// namespace sleipnir
sleipnir::EigenMatrixLike
Definition
Concepts.hpp:25
sleipnir::EigenSolver
Definition
Concepts.hpp:31
sleipnir::MatrixLike
Definition
Concepts.hpp:28
sleipnir::ScalarLike
Definition
Concepts.hpp:12
sleipnir::SleipnirMatrixLike
Definition
Concepts.hpp:18
sleipnir
Definition
Hessian.hpp:18
thirdparty
sleipnir
include
sleipnir
util
Concepts.hpp
Generated on Mon Mar 17 2025 23:50:34 for WPILibC++ by
1.12.0