Handling the general case for an empty CSC matrix during the conversion to CSR format
This commit is contained in:
parent
e50eefebd1
commit
71bc920bd5
|
|
@ -88,8 +88,11 @@ KLU_convert_matrix_in_CSR /* return TRUE if successful, FALSE otherwise
|
||||||
{
|
{
|
||||||
if (Ai_CSC == NULL || Ax_CSC == NULL)
|
if (Ai_CSC == NULL || Ax_CSC == NULL)
|
||||||
{
|
{
|
||||||
Ap_CSR [0] = 0 ;
|
/* CSC Matrix is empty, so the CSR one */
|
||||||
Ap_CSR [1] = 0 ;
|
for (i = 0 ; i <= n ; i++)
|
||||||
|
{
|
||||||
|
Ap_CSR [i] = 0 ;
|
||||||
|
}
|
||||||
Common->status = KLU_OK ;
|
Common->status = KLU_OK ;
|
||||||
return (TRUE) ;
|
return (TRUE) ;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue