mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-18 12:23:13 +08:00
fix a warning in test/sparse.h
This commit is contained in:
parent
92959aa5f3
commit
484ed3bbe2
@ -58,7 +58,7 @@ initSparse(double density,
|
|||||||
std::vector<Vector2i>* zeroCoords = 0,
|
std::vector<Vector2i>* zeroCoords = 0,
|
||||||
std::vector<Vector2i>* nonzeroCoords = 0)
|
std::vector<Vector2i>* nonzeroCoords = 0)
|
||||||
{
|
{
|
||||||
sparseMat.startFill(refMat.rows()*refMat.cols()*density);
|
sparseMat.startFill(int(refMat.rows()*refMat.cols()*density));
|
||||||
for(int j=0; j<refMat.cols(); j++)
|
for(int j=0; j<refMat.cols(); j++)
|
||||||
{
|
{
|
||||||
for(int i=0; i<refMat.rows(); i++)
|
for(int i=0; i<refMat.rows(); i++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user