csv.cpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2024 INRIA
3 //
4 
5 #include <iostream>
6 
8 
9 #include <boost/variant.hpp> // to avoid C99 warnings
10 
11 #include <boost/test/unit_test.hpp>
12 #include <boost/utility/binary.hpp>
13 
14 BOOST_AUTO_TEST_SUITE(BOOST_TEST_MODULE)
15 
16 using namespace pinocchio;
17 
18 BOOST_AUTO_TEST_CASE(test_random_matrix)
19 {
20  const Eigen::DenseIndex mat_size = 20;
21  const Eigen::MatrixXd matrix = Eigen::MatrixXd::Random(mat_size, mat_size);
22  toCSVfile(TEST_SERIALIZATION_FOLDER "/test.csv", matrix);
23 }
24 
25 BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE
BOOST_AUTO_TEST_CASE(test_random_matrix)
Definition: csv.cpp:18
csv.hpp
pinocchio::toCSVfile
void toCSVfile(const std::string &filename, const Eigen::MatrixBase< Derived > &matrix)
Definition: csv.hpp:17
pinocchio
Main pinocchio namespace.
Definition: timings.cpp:27


pinocchio
Author(s):
autogenerated on Thu Dec 19 2024 03:41:28