SparseFuzzy.h
Go to the documentation of this file.
1 // This file is part of Eigen, a lightweight C++ template library
2 // for linear algebra.
3 //
4 // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr>
5 //
6 // This Source Code Form is subject to the terms of the Mozilla
7 // Public License v. 2.0. If a copy of the MPL was not distributed
8 // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 
10 #ifndef EIGEN_SPARSE_FUZZY_H
11 #define EIGEN_SPARSE_FUZZY_H
12 
13 // template<typename Derived>
14 // template<typename OtherDerived>
15 // bool SparseMatrixBase<Derived>::isApprox(
16 // const OtherDerived& other,
17 // typename NumTraits<Scalar>::Real prec
18 // ) const
19 // {
20 // const typename internal::nested<Derived,2>::type nested(derived());
21 // const typename internal::nested<OtherDerived,2>::type otherNested(other.derived());
22 // return (nested - otherNested).cwise().abs2().sum()
23 // <= prec * prec * (std::min)(nested.cwise().abs2().sum(), otherNested.cwise().abs2().sum());
24 // }
25 
26 #endif // EIGEN_SPARSE_FUZZY_H


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Mon Jun 10 2019 12:35:07