changeset 16316:49ebf4ad558b

* symbfact.cc (Fsymbfact): Use CHOLMOD_NAME to access allocate_sparse and free_sparse functions.
author John W. Eaton <jwe@octave.org>
date Fri, 15 Mar 2013 04:23:02 -0400
parents 62791b1f06cb
children ce5231908ea2
files libinterp/dldfcn/symbfact.cc
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/dldfcn/symbfact.cc	Fri Mar 15 04:17:30 2013 -0400
+++ b/libinterp/dldfcn/symbfact.cc	Fri Mar 15 04:23:02 2013 -0400
@@ -292,8 +292,9 @@
             W[j] = L.xcidx (j);
 
           // get workspace for computing one row of L
-          cholmod_sparse *R = cholmod_allocate_sparse (n, 1, n, false, true,
-                                                       0, CHOLMOD_PATTERN, cm);
+          cholmod_sparse *R
+            = CHOLMOD_NAME (allocate_sparse) (n, 1, n, false, true,
+                                              0, CHOLMOD_PATTERN, cm);
           octave_idx_type *Rp = static_cast<octave_idx_type *>(R->p);
           octave_idx_type *Ri = static_cast<octave_idx_type *>(R->i);
 
@@ -310,7 +311,7 @@
             }
 
           // free workspace
-          cholmod_free_sparse (&R, cm) ;
+          CHOLMOD_NAME (free_sparse) (&R, cm) ;
 
 
           // transpose L to get R, or leave as is