Added multiple tutorials

Former-commit-id: 706aa31449
This commit is contained in:
Sebastian Koch
2016-06-03 16:53:22 +02:00
parent 0fabc50c00
commit c5e77fa5d7
33 changed files with 695 additions and 1390 deletions
+20
View File
@@ -31,6 +31,26 @@ void assert_is_RowVectorX(const std::string name, const Eigen::PlainObjectBase<S
throw std::runtime_error(name + " must be a row vector.");
}
template<typename Scalar>
void assert_is_Vector2(const std::string name, const Eigen::PlainObjectBase<Scalar>& v)
{
if (v.size() == 0)
return;
if ((v.cols() != 1) || (v.rows() != 2))
throw std::runtime_error(name + " must be a column vector with 2 entries.");
}
template<typename Scalar>
void assert_is_RowVector2(const std::string name, const Eigen::PlainObjectBase<Scalar>& v)
{
if (v.size() == 0)
return;
if ((v.cols() != 2) || (v.rows() != 1))
throw std::runtime_error(name + " must be a row vector with 2 entries.");
}
template<typename Scalar>
void assert_is_Vector3(const std::string name, const Eigen::PlainObjectBase<Scalar>& v)
{