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
Eigen
src
Core
SelfCwiseBinaryOp.h
Go to the documentation of this file.
1
// This file is part of Eigen, a lightweight C++ template library
2
// for linear algebra.
3
//
4
// Copyright (C) 2009-2010 Gael Guennebaud <gael.guennebaud@inria.fr>
5
//
6
// This Source Code Form is subject to the terms of the Mozilla
7
// Public License v. 2.0. If a copy of the MPL was not distributed
8
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
10
#ifndef EIGEN_SELFCWISEBINARYOP_H
11
#define EIGEN_SELFCWISEBINARYOP_H
12
13
namespace
Eigen
{
14
15
// TODO generalize the scalar type of 'other'
16
17
template
<
typename
Derived>
18
EIGEN_DEVICE_FUNC
EIGEN_STRONG_INLINE
Derived&
DenseBase<Derived>::operator*=
(
const
Scalar
&
other
)
19
{
20
internal::call_assignment
(this->derived(), PlainObject::Constant(
rows
(),
cols
(),
other
),
internal::mul_assign_op<Scalar,Scalar>
());
21
return
derived();
22
}
23
24
template
<
typename
Derived>
25
EIGEN_DEVICE_FUNC
EIGEN_STRONG_INLINE
Derived&
ArrayBase<Derived>::operator+=
(
const
Scalar
&
other
)
26
{
27
internal::call_assignment
(this->derived(), PlainObject::Constant(
rows
(),
cols
(),
other
),
internal::add_assign_op<Scalar,Scalar>
());
28
return
derived();
29
}
30
31
template
<
typename
Derived>
32
EIGEN_DEVICE_FUNC
EIGEN_STRONG_INLINE
Derived&
ArrayBase<Derived>::operator-=
(
const
Scalar
&
other
)
33
{
34
internal::call_assignment
(this->derived(), PlainObject::Constant(
rows
(),
cols
(),
other
),
internal::sub_assign_op<Scalar,Scalar>
());
35
return
derived();
36
}
37
38
template
<
typename
Derived>
39
EIGEN_DEVICE_FUNC
EIGEN_STRONG_INLINE
Derived&
DenseBase<Derived>::operator/=
(
const
Scalar
&
other
)
40
{
41
internal::call_assignment
(this->derived(), PlainObject::Constant(
rows
(),
cols
(),
other
),
internal::div_assign_op<Scalar,Scalar>
());
42
return
derived();
43
}
44
45
}
// end namespace Eigen
46
47
#endif // EIGEN_SELFCWISEBINARYOP_H
EIGEN_DEVICE_FUNC
#define EIGEN_DEVICE_FUNC
Definition:
Macros.h:976
Eigen
Namespace containing all symbols from the Eigen library.
Definition:
jet.h:637
Eigen::DenseBase< Solve< Decomposition, RhsType > >::Scalar
internal::traits< Solve< Decomposition, RhsType > >::Scalar Scalar
Definition:
DenseBase.h:66
Eigen::ArrayBase::operator+=
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator+=(const Scalar &scalar)
Definition:
SelfCwiseBinaryOp.h:25
rows
int rows
Definition:
Tutorial_commainit_02.cpp:1
Eigen::DenseBase::operator/=
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator/=(const Scalar &other)
Definition:
SelfCwiseBinaryOp.h:39
Eigen::internal::mul_assign_op
Definition:
AssignmentFunctors.h:89
EIGEN_STRONG_INLINE
#define EIGEN_STRONG_INLINE
Definition:
Macros.h:917
Eigen::ArrayBase< ArrayWrapper< ExpressionType > >::Scalar
internal::traits< ArrayWrapper< ExpressionType > >::Scalar Scalar
Definition:
ArrayBase.h:50
Eigen::internal::div_assign_op
Definition:
AssignmentFunctors.h:110
Eigen::internal::sub_assign_op
Definition:
AssignmentFunctors.h:67
Eigen::DenseBase::operator*=
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator*=(const Scalar &other)
Definition:
SelfCwiseBinaryOp.h:18
Eigen::internal::add_assign_op
Definition:
AssignmentFunctors.h:46
cols
int cols
Definition:
Tutorial_commainit_02.cpp:1
Eigen::ArrayBase::operator-=
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived & operator-=(const Scalar &scalar)
Definition:
SelfCwiseBinaryOp.h:32
Eigen::internal::call_assignment
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void call_assignment(Dst &dst, const Src &src)
Definition:
AssignEvaluator.h:834
pybind_wrapper_test_script.other
other
Definition:
pybind_wrapper_test_script.py:42
gtsam
Author(s):
autogenerated on Wed Mar 19 2025 03:03:29