| 
									
										
										
										
											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-02-14 15:25:03 +08:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * tensors.h | 
					
						
							|  |  |  |  * @brief Tensor expression templates based on http://www.gps.caltech.edu/~walter/FTensor/FTensor.pdf
 | 
					
						
							|  |  |  |  * Created on: Feb 10, 2010 | 
					
						
							|  |  |  |  * @author: Frank Dellaert | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #pragma once
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | namespace tensors { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	/** index */ | 
					
						
							|  |  |  | 	template<int Dim, char C> struct Index { | 
					
						
							| 
									
										
										
										
											2010-10-12 05:14:35 +08:00
										 |  |  | 		static const int dim = Dim; | 
					
						
							| 
									
										
										
										
											2010-02-14 15:25:03 +08:00
										 |  |  | 	}; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | } // namespace tensors
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // Expression templates
 | 
					
						
							| 
									
										
										
										
											2010-08-20 01:23:19 +08:00
										 |  |  | #include <gtsam/geometry/Tensor1Expression.h>
 | 
					
						
							|  |  |  | #include <gtsam/geometry/Tensor2Expression.h>
 | 
					
						
							|  |  |  | #include <gtsam/geometry/Tensor3Expression.h>
 | 
					
						
							| 
									
										
										
										
											2010-02-14 15:25:03 +08:00
										 |  |  | // Tensor4 not needed so far
 | 
					
						
							| 
									
										
										
										
											2010-08-20 01:23:19 +08:00
										 |  |  | #include <gtsam/geometry/Tensor5Expression.h>
 | 
					
						
							| 
									
										
										
										
											2010-02-14 15:25:03 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | // Actual tensor classes
 | 
					
						
							| 
									
										
										
										
											2010-08-20 01:23:19 +08:00
										 |  |  | #include <gtsam/geometry/Tensor1.h>
 | 
					
						
							|  |  |  | #include <gtsam/geometry/Tensor2.h>
 | 
					
						
							|  |  |  | #include <gtsam/geometry/Tensor3.h>
 | 
					
						
							|  |  |  | #include <gtsam/geometry/Tensor4.h>
 | 
					
						
							|  |  |  | #include <gtsam/geometry/Tensor5.h>
 | 
					
						
							| 
									
										
										
										
											2010-02-14 15:25:03 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 |