~ubuntu-branches/ubuntu/saucy/blender/saucy-proposed

« back to all changes in this revision

Viewing changes to extern/Eigen3/Eigen/src/SparseCore/SparseFuzzy.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-03-06 12:08:47 UTC
  • mfrom: (1.5.1) (14.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20130306120847-frjfaryb2zrotwcg
Tags: 2.66a-1ubuntu1
* Resynchronize with Debian (LP: #1076930, #1089256, #1052743, #999024,
  #1122888, #1147084)
* debian/control:
  - Lower build-depends on libavcodec-dev since we're not
    doing the libav9 transition in Ubuntu yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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