[Rcpp-commits] r3193 - pkg/RcppEigen/inst/include/unsupported/Eigen/src/SparseExtra

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Sep 12 18:37:57 CEST 2011


Author: dmbates
Date: 2011-09-12 18:37:57 +0200 (Mon, 12 Sep 2011)
New Revision: 3193

Modified:
   pkg/RcppEigen/inst/include/unsupported/Eigen/src/SparseExtra/CholmodSupport.h
Log:
Remove the solvetype specification for the solve method (but type is retained for solveInPlace).


Modified: pkg/RcppEigen/inst/include/unsupported/Eigen/src/SparseExtra/CholmodSupport.h
===================================================================
--- pkg/RcppEigen/inst/include/unsupported/Eigen/src/SparseExtra/CholmodSupport.h	2011-09-11 15:12:57 UTC (rev 3192)
+++ pkg/RcppEigen/inst/include/unsupported/Eigen/src/SparseExtra/CholmodSupport.h	2011-09-12 16:37:57 UTC (rev 3193)
@@ -249,8 +249,6 @@
 	M_cholmod_free_dense(&x_cd, &m_cholmod);
     }
 
-	void setSolveType(int type) {m_solveType = type;}
-
 	/** \brief Reports whether previous computation was successful.
 	 *
 	 * \returns \c Success if computation was succesful,
@@ -401,7 +399,7 @@
 	    
 	    // note: cd stands for Cholmod Dense
 	    cholmod_dense b_cd = viewAsCholmod(b.const_cast_derived());
-	    cholmod_dense* x_cd = M_cholmod_solve(m_solveType, m_cholmodFactor, &b_cd, &m_cholmod);
+	    cholmod_dense* x_cd = M_cholmod_solve(CHOLMOD_A, m_cholmodFactor, &b_cd, &m_cholmod);
 	    if(!x_cd)
 	    {
 		this->m_info = NumericalIssue;
@@ -424,7 +422,7 @@
 	    
 	    // note: cs stands for Cholmod Sparse
 	    cholmod_sparse b_cs = viewAsCholmod(b);
-	    cholmod_sparse* x_cs = M_cholmod_spsolve(m_solveType, m_cholmodFactor, &b_cs, &m_cholmod);
+	    cholmod_sparse* x_cs = M_cholmod_spsolve(CHOLMOD_A, m_cholmodFactor, &b_cs, &m_cholmod);
 	    if(!x_cs)
 	    {
 		this->m_info = NumericalIssue;
@@ -458,7 +456,6 @@
 	mutable cholmod_common m_cholmod;
 	cholmod_factor* m_cholmodFactor;
 	mutable ComputationInfo m_info;
-	mutable int m_solveType;
 	bool m_isInitialized;
 	int m_factorizationIsOk;
 	int m_analysisIsOk;



More information about the Rcpp-commits mailing list