Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
DrTimothyAldenDavis committed Feb 20, 2024
1 parent e8dbdbd commit d65d987
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions SPEX/SPEX_Cholesky/Source/spex_cholesky_symbolic_analysis.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ SPEX_info spex_cholesky_symbolic_analysis
{

SPEX_info info;
HERE

//--------------------------------------------------------------------------
// Check inputs
Expand All @@ -69,25 +70,31 @@ SPEX_info spex_cholesky_symbolic_analysis
int64_t *c = NULL;

// Obtain elimination tree of A
HERE
SPEX_CHECK( spex_cholesky_etree(&S->parent, A) );

// Postorder the elimination tree of A
HERE
SPEX_CHECK( spex_cholesky_post(&post, S->parent, n) );

// Get the column counts of A
SPEX_CHECK( spex_cholesky_counts(&c, A, S->parent, post) );
HERE

// Set the column pointers of L
S->cp = (int64_t*) SPEX_malloc( (n+1)*sizeof(int64_t*));
HERE
if (S->cp == NULL)
{
SPEX_FREE_ALL;
return SPEX_OUT_OF_MEMORY;
}
SPEX_CHECK( spex_cumsum(S->cp, c, n));
HERE

// Set the exact number of nonzeros in L
S->lnz = S->cp[n];
SPEX_FREE_WORKSPACE;
HERE
return SPEX_OK;
}

0 comments on commit d65d987

Please sign in to comment.