Browse Source

Handling the general case for an empty CSC matrix during the conversion to CSR format

pre-master-46
Francesco Lannutti 10 years ago
committed by Holger Vogt
parent
commit
b87c539435
  1. 7
      src/maths/KLU/klu_utils.c

7
src/maths/KLU/klu_utils.c

@ -88,8 +88,11 @@ KLU_convert_matrix_in_CSR /* return TRUE if successful, FALSE otherwise
{
if (Ai_CSC == NULL || Ax_CSC == NULL)
{
Ap_CSR [0] = 0 ;
Ap_CSR [1] = 0 ;
/* CSC Matrix is empty, so the CSR one */
for (i = 0 ; i <= n ; i++)
{
Ap_CSR [i] = 0 ;
}
Common->status = KLU_OK ;
return (TRUE) ;
}

Loading…
Cancel
Save