Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
matrixes.cpp
Go to the documentation of this file.
2
3namespace common_lib::maths {
4void copy_eigen_sparse_matrix(const Eigen::SparseMatrix<float> &original,
5 Eigen::SparseMatrix<float> &copy) {
6 for (int i = 0; i < original.rows(); i++) {
7 for (int j = 0; j < original.cols(); j++) {
8 copy.coeffRef(i, j) = original.coeff(i, j);
9 }
10 }
11}
12} // namespace common_lib::maths
void copy_eigen_sparse_matrix(const Eigen::SparseMatrix< float > &original, Eigen::SparseMatrix< float > &copy)
Definition matrixes.cpp:4