Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
soth
Commits
ef039d4a
Commit
ef039d4a
authored
Sep 12, 2019
by
Guilhem Saurel
Browse files
const correctness, fix build on 18.04
parent
ce4e91b7
Pipeline
#5600
passed with stage
in 4 minutes and 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/SubMatrix.hpp
View file @
ef039d4a
...
...
@@ -621,12 +621,12 @@ namespace Eigen
EIGEN_INHERIT_ASSIGNMENT_OPERATORS
(
SubMatrix
)
inline
Scalar
&
coeffRef
(
Index
row
,
Index
col
)
inline
Scalar
&
coeffRef
(
Index
row
,
Index
col
)
const
{
return
MemoryBase
::
m_matrix
.
const_cast_derived
().
coeffRef
(
this
->
rowIndex
(
row
),
this
->
colIndex
(
col
));
}
inline
Scalar
&
coeffRef
(
Index
index
)
inline
Scalar
&
coeffRef
(
Index
index
)
const
{
return
MemoryBase
::
m_matrix
.
const_cast_derived
()
.
coeffRef
(
ei_submatrix_index_helper
<
MatrixType
,
PermutationType
>::
index
(
this
->
rowIndex
(
index
),
this
->
colIndex
(
index
)));
...
...
@@ -830,4 +830,3 @@ namespace Eigen
}
// namespace soth
#endif // __SOTH_SUB_MATRIX_H__
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment