You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the method "public void LUFactor(float[] data, int order, int[] ipiv)", you have in your code:
// Compute multipliers.
if (j < order & data[indexjj] != 0.0)
{
...
}
You are missing the second & in your AND operation - otherwise you are doing a bitwise AND instead of the logical AND which is what you want. In your case it might actually work but it is misleading and error prone. It should be:
// Compute multipliers.
if (j < order && data[indexjj] != 0.0)
{
...
}
Cheers!
Ilya
The text was updated successfully, but these errors were encountered:
In the method "public void LUFactor(float[] data, int order, int[] ipiv)", you have in your code:
// Compute multipliers.
if (j < order & data[indexjj] != 0.0)
{
...
}
You are missing the second & in your AND operation - otherwise you are doing a bitwise AND instead of the logical AND which is what you want. In your case it might actually work but it is misleading and error prone. It should be:
// Compute multipliers.
if (j < order && data[indexjj] != 0.0)
{
...
}
Cheers!
Ilya
The text was updated successfully, but these errors were encountered: