WPILibC++ 2023.4.3
|
This module provides a sparse matrix representation, and basic associated matrix manipulations and operations. More...
Functions | |
const SparseView< Derived > | Eigen::MatrixBase< Derived >::sparseView (const Scalar &m_reference=Scalar(0), const typename NumTraits< Scalar >::Real &m_epsilon=NumTraits< Scalar >::dummy_precision()) const |
This module provides a sparse matrix representation, and basic associated matrix manipulations and operations.
See the Sparse tutorial
This module depends on: Core.
const SparseView< Derived > Eigen::MatrixBase< Derived >::sparseView | ( | const Scalar & | reference = Scalar(0) , |
const typename NumTraits< Scalar >::Real & | epsilon = NumTraits<Scalar>::dummy_precision() |
||
) | const |
*this
with values smaller than reference * epsilon removed.This method is typically used when prototyping to convert a quickly assembled dense Matrix D
to a SparseMatrix S:
where reference is a meaningful non zero reference value, and epsilon is a tolerance factor defaulting to NumTraits<Scalar>::dummy_precision().