mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
[Cython] Fix a few compiler warnings from Eigen
This commit is contained in:
parent
02b2bff2c4
commit
92f0f44c8d
@ -42,13 +42,13 @@ inline void sparseCscData(const Eigen::SparseMatrix<double>& mat,
|
||||
|
||||
const double* valuePtr = mat.valuePtr();
|
||||
const int* innerPtr = mat.innerIndexPtr();
|
||||
for (size_t i = 0; i < mat.nonZeros(); ++i) {
|
||||
for (int i = 0; i < mat.nonZeros(); ++i) {
|
||||
value[i] = valuePtr[i];
|
||||
inner[i] = innerPtr[i];
|
||||
}
|
||||
|
||||
const int* outerPtr = mat.outerIndexPtr();
|
||||
for (size_t i = 0; i < mat.outerSize() + 1; ++i) {
|
||||
for (int i = 0; i < mat.outerSize() + 1; ++i) {
|
||||
outer[i] = outerPtr[i];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user