Main Page
Related Pages
Modules
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
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
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
a
c
d
e
f
g
i
k
l
m
n
p
q
r
s
t
u
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Classes
Class List
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
j
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
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
f
k
l
m
n
o
p
r
s
t
v
z
Enumerator
_
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
Related Functions
:
a
b
c
d
e
g
h
i
l
m
n
o
p
r
s
t
u
v
Files
File List
File 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
j
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
k
l
m
n
o
p
q
r
s
t
u
v
x
z
Enumerations
Enumerator
b
c
e
f
g
i
l
m
n
o
p
r
s
t
u
v
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
gtsam
3rdparty
Eigen
doc
snippets
Slicing_custom_padding_cxx11.cpp
Go to the documentation of this file.
1
struct
pad
{
2
Index
size
()
const
{
return
out_size
; }
3
Index
operator[]
(
Index
i
)
const
{
return
std::max<Index>(0,
i
-(
out_size
-
in_size
)); }
4
Index
in_size
,
out_size
;
5
};
6
7
Matrix3i
A
;
8
A
.reshaped() = VectorXi::LinSpaced(9,1,9);
9
cout <<
"Initial matrix A:\n"
<<
A
<<
"\n\n"
;
10
MatrixXi
B
(5,5);
11
B
=
A
(
pad
{3,5},
pad
{3,5});
12
cout <<
"A(pad{3,N}, pad{3,N}):\n"
<<
B
<<
"\n\n"
;
pad::operator[]
Index operator[](Index i) const
Definition:
Slicing_custom_padding_cxx11.cpp:3
B
Matrix< SCALARB, Dynamic, Dynamic, opt_B > B
Definition:
bench_gemm.cpp:49
B
Definition:
test_numpy_dtypes.cpp:301
pad::out_size
Index out_size
Definition:
Slicing_custom_padding_cxx11.cpp:4
A
Definition:
test_numpy_dtypes.cpp:300
A
Matrix3i A
Definition:
Slicing_custom_padding_cxx11.cpp:7
pad::size
Index size() const
Definition:
Slicing_custom_padding_cxx11.cpp:2
pad
Definition:
Slicing_custom_padding_cxx11.cpp:1
pad::in_size
Index in_size
Definition:
Slicing_custom_padding_cxx11.cpp:4
i
int i
Definition:
BiCGSTAB_step_by_step.cpp:9
Eigen::Index
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition:
Meta.h:74
gtsam
Author(s):
autogenerated on Wed Mar 19 2025 03:03:39