~ubuntu-branches/ubuntu/trusty/eigen3/trusty-proposed

« back to all changes in this revision

Viewing changes to test/packetmath.cpp

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2013-05-06 20:58:32 UTC
  • mfrom: (8.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20130506205832-2dxl1uysxuaredbf
Tags: 3.1.3-1
* [52a3539] Update dates in copyright.
* [f22ef64] Return FTBFS if the autotest fails.
* [60b2388] Respect nocheck option.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
// Copyright (C) 2008-2009 Gael Guennebaud <gael.guennebaud@inria.fr>
5
5
// Copyright (C) 2006-2008 Benoit Jacob <jacob.benoit.1@gmail.com>
6
6
//
7
 
// Eigen is free software; you can redistribute it and/or
8
 
// modify it under the terms of the GNU Lesser General Public
9
 
// License as published by the Free Software Foundation; either
10
 
// version 3 of the License, or (at your option) any later version.
11
 
//
12
 
// Alternatively, you can redistribute it and/or
13
 
// modify it under the terms of the GNU General Public License as
14
 
// published by the Free Software Foundation; either version 2 of
15
 
// the License, or (at your option) any later version.
16
 
//
17
 
// Eigen is distributed in the hope that it will be useful, but WITHOUT ANY
18
 
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
19
 
// FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License or the
20
 
// GNU General Public License for more details.
21
 
//
22
 
// You should have received a copy of the GNU Lesser General Public
23
 
// License and a copy of the GNU General Public License along with
24
 
// Eigen. If not, see <http://www.gnu.org/licenses/>.
 
7
// This Source Code Form is subject to the terms of the Mozilla
 
8
// Public License v. 2.0. If a copy of the MPL was not distributed
 
9
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
25
10
 
26
11
#include "main.h"
27
12
 
55
40
{
56
41
  for (int i=0; i<size; ++i)
57
42
  {
58
 
    if (!internal::isApprox(a[i],b[i]))
 
43
    if (a[i]!=b[i] && !internal::isApprox(a[i],b[i]))
59
44
    {
60
45
      std::cout << "[" << Map<const Matrix<Scalar,1,Dynamic> >(a,size) << "]" << " != " << Map<const Matrix<Scalar,1,Dynamic> >(b,size) << "\n";
61
46
      return false;