cleanup few warnings
This commit is contained in:
parent
65cc6fdea4
commit
484fcc959e
|
|
@ -40,22 +40,13 @@ int size = Matrix->Size;
|
||||||
|
|
||||||
ASSERT_IS_SPARSE( Matrix );
|
ASSERT_IS_SPARSE( Matrix );
|
||||||
|
|
||||||
#if spCOMPLEX
|
|
||||||
for (I = 1; I <= size; I++) {
|
for (I = 1; I <= size; I++) {
|
||||||
for (pElement = Matrix->FirstInCol[I]; pElement; pElement = pElement->NextInCol) {
|
for (pElement = Matrix->FirstInCol[I]; pElement; pElement = pElement->NextInCol) {
|
||||||
pElement->Real *= constant;
|
pElement->Real *= constant;
|
||||||
|
#if spCOMPLEX
|
||||||
pElement->Imag *= constant;
|
pElement->Imag *= constant;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
#endif
|
|
||||||
|
|
||||||
for (I = 1; I <= size; I++) {
|
|
||||||
pElement = Matrix->FirstInRow[I];
|
|
||||||
while (pElement != NULL)
|
|
||||||
{ pElement->Real *= constant;
|
|
||||||
pElement = pElement->NextInRow;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue