Advertisement
Guest User

Untitled

a guest
Mar 20th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. do
  2. {
  3. OCTAVE_LOCAL_BUFFER (octave_idx_type, qinit, nc);
  4.  
  5. for (octave_idx_type i = 0; i < nc; i++)
  6. qinit[i] = static_cast<octave_idx_type> (Qinit (i));
  7.  
  8. status = umfpack_qsymbolic<lu_elt_type> (nr, nc, Ap, Ai, Ax,
  9. qinit, &Symbolic, control,
  10. info);
  11. }
  12. while (0);
  13.  
  14. if (status < 0)
  15. {
  16. // this is not the case
  17. }
  18. else
  19. {
  20. umfpack_report_symbolic<lu_elt_type> (Symbolic, control);
  21.  
  22. void *Numeric;
  23. status = umfpack_numeric<lu_elt_type> (Ap, Ai, Ax, Symbolic,
  24. &Numeric, control, info);
  25. umfpack_free_symbolic<lu_elt_type> (&Symbolic);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement