Loose-GNSS-IMU/Loose-GNSS-IMU/MatrixUtils.cpp
// A function to convert std vector to eigen vector
A function to convert std vector to eigen vector
A function to convert std vector to eigen vector
VectorXd std2eigVector(vector<double> A) {
	size_t n = A.size();
	VectorXd V = VectorXd::Zero(n);
	for (size_t i = 0; i < n; i++) {
		V(i) = A[i];
	}
	return V;
}
VectorXd std2eigVector ( vector < double > A ) { size_t n = A . size ( ) ; VectorXd V = VectorXd :: Zero ( n ) ; for ( size_t i = 0 ; i < n ; i ++ ) { V ( i ) = A [ i ] ; } return V ; }
A function to convert std vector to eigen vector
A function to convert std vector to eigen vector