| 
									
										
										
										
											2010-10-14 12:54:38 +08:00
										 |  |  | /* ----------------------------------------------------------------------------
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |  * GTSAM Copyright 2010, Georgia Tech Research Corporation,  | 
					
						
							|  |  |  |  * Atlanta, Georgia 30332-0415 | 
					
						
							|  |  |  |  * All Rights Reserved | 
					
						
							|  |  |  |  * Authors: Frank Dellaert, et al. (see THANKS for the full author list) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |  * See LICENSE for the license information | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |  * -------------------------------------------------------------------------- */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-07-05 07:50:21 +08:00
										 |  |  | /*
 | 
					
						
							| 
									
										
										
										
											2010-10-20 12:21:58 +08:00
										 |  |  |  * DenseQRUtil.h | 
					
						
							| 
									
										
										
										
											2010-07-05 07:50:21 +08:00
										 |  |  |  * | 
					
						
							|  |  |  |  *   Created on: Jul 1, 2010 | 
					
						
							|  |  |  |  *       Author: nikai | 
					
						
							| 
									
										
										
										
											2010-10-20 12:21:58 +08:00
										 |  |  |  *  Description: the utility functions for DenseQR | 
					
						
							| 
									
										
										
										
											2010-07-05 07:50:21 +08:00
										 |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #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-10-20 12:21:58 +08:00
										 |  |  | #include <gtsam/base/DenseQR.h>
 | 
					
						
							| 
									
										
										
										
											2010-07-05 07:50:21 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | namespace gtsam { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-10-20 12:21:58 +08:00
										 |  |  | 	/** make stairs and speed up householder_denseqr. Stair is defined as the row index of where zero entries start in each column */ | 
					
						
							| 
									
										
										
										
											2010-07-05 07:50:21 +08:00
										 |  |  | 	long* MakeStairs(Matrix &A); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	/** Householder tranformation, zeros below diagonal */ | 
					
						
							| 
									
										
										
										
											2010-10-20 12:21:58 +08:00
										 |  |  | 	void householder_denseqr(Matrix &A, long* Stair = NULL); | 
					
						
							| 
									
										
										
										
											2010-07-05 07:50:21 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-10-22 00:32:11 +08:00
										 |  |  |     /** Householder tranformation in column mafor form */  | 
					
						
							| 
									
										
										
										
											2010-10-20 12:21:58 +08:00
										 |  |  | 	void householder_denseqr_colmajor(boost::numeric::ublas::matrix<double, boost::numeric::ublas::column_major>& A, long *Stair); | 
					
						
							| 
									
										
										
										
											2010-07-05 07:50:21 +08:00
										 |  |  | } | 
					
						
							|  |  |  | #endif
 |