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-08-27 03:55:40 +08:00
|
|
|
/**
|
|
|
|
|
* @file LieVector.cpp
|
|
|
|
|
* @brief Implementations for LieVector functions
|
|
|
|
|
* @author Alex Cunningham
|
|
|
|
|
*/
|
|
|
|
|
|
2012-06-04 21:44:19 +08:00
|
|
|
#include <cstdarg>
|
2010-08-27 03:55:40 +08:00
|
|
|
#include <gtsam/base/LieVector.h>
|
|
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
|
|
namespace gtsam {
|
|
|
|
|
|
|
|
|
|
/* ************************************************************************* */
|
|
|
|
|
LieVector::LieVector(size_t m, const double* const data)
|
2014-01-23 13:52:55 +08:00
|
|
|
: Vector(m)
|
2010-08-27 03:55:40 +08:00
|
|
|
{
|
2014-01-23 13:52:55 +08:00
|
|
|
for(size_t i = 0; i < m; i++)
|
|
|
|
|
(*this)(i) = data[i];
|
2010-08-27 03:55:40 +08:00
|
|
|
}
|
|
|
|
|
|
2013-05-01 01:15:42 +08:00
|
|
|
/* ************************************************************************* */
|
|
|
|
|
void LieVector::print(const std::string& name) const {
|
|
|
|
|
gtsam::print(vector(), name);
|
2010-08-27 03:55:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // \namespace gtsam
|