mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 11:19:02 +08:00
another warning fix
This commit is contained in:
parent
a4252584ed
commit
7f881e814f
@ -96,7 +96,7 @@ initSparse(double density,
|
|||||||
std::vector<int>* zeroCoords = 0,
|
std::vector<int>* zeroCoords = 0,
|
||||||
std::vector<int>* nonzeroCoords = 0)
|
std::vector<int>* nonzeroCoords = 0)
|
||||||
{
|
{
|
||||||
sparseVec.reserve(refVec.size()*density);
|
sparseVec.reserve(int(refVec.size()*density));
|
||||||
sparseVec.setZero();
|
sparseVec.setZero();
|
||||||
for(int i=0; i<refVec.size(); i++)
|
for(int i=0; i<refVec.size(); i++)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user