| 
									
										
										
										
											2010-07-05 07:50:21 +08:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * SPQRUtil.h | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  *   Created on: Jul 1, 2010 | 
					
						
							|  |  |  |  *       Author: nikai | 
					
						
							|  |  |  |  *  Description: the utility functions for SPQR | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #pragma once
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-08-20 01:23:19 +08:00
										 |  |  | #include <gtsam/base/Matrix.h>
 | 
					
						
							| 
									
										
										
										
											2010-07-05 07:50:21 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | #ifdef GT_USE_LAPACK
 | 
					
						
							| 
									
										
										
										
											2010-08-20 01:23:19 +08:00
										 |  |  | #include <gtsam/spqr_mini/spqr_subset.hpp>
 | 
					
						
							| 
									
										
										
										
											2010-07-05 07:50:21 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | namespace gtsam { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	/** make stairs and speed up householder_spqr. Stair is defined as the row index of where zero entries start in each column */ | 
					
						
							|  |  |  | 	long* MakeStairs(Matrix &A); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	/** Householder tranformation, zeros below diagonal */ | 
					
						
							|  |  |  | 	void householder_spqr(Matrix &A, long* Stair = NULL); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | #endif
 |