Creating a dense matrix in C++ that can be solved using CHOLMOD

433 Views Asked by At

I'm working on a project that is trying to optimize the time it takes to solve a dense matrix. Right now, matrices are being processed within C++ and as it stands there are no plans to change that. Looking at the CHOLMOD user manual and examples folder, I can't seem to find anything that shows a matrix not being read in from stdin or from a file.

Is there a way to convert an existing matrix (of type double *) to a cholmod_dense or some form that CHOLMOD can recognize so that I can solve for it?

Alternatively if there is some form that my matrices must be in before being converted, what form should that be in and is there a way to do it without temporarily writing results to a file and then reading it back into a cholmod_dense matrix?

0

There are 0 best solutions below