Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
matrixes.cpp
Go to the documentation of this file.
1
#include "
common_lib/maths/matrixes.hpp
"
2
3
namespace
common_lib::maths
{
4
void
copy_eigen_sparse_matrix
(
const
Eigen::SparseMatrix<float> &original,
5
Eigen::SparseMatrix<float> ©) {
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
matrixes.hpp
common_lib::maths
Definition
angle_and_norms.hpp:8
common_lib::maths::copy_eigen_sparse_matrix
void copy_eigen_sparse_matrix(const Eigen::SparseMatrix< float > &original, Eigen::SparseMatrix< float > ©)
Definition
matrixes.cpp:4
src
common_lib
src
maths
matrixes.cpp
Generated by
1.9.8