~ubuntu-branches/ubuntu/trusty/blender/trusty

« back to all changes in this revision

Viewing changes to extern/Eigen3/Eigen/src/Jacobi/Jacobi.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:
4
4
// Copyright (C) 2009 Benoit Jacob <jacob.benoit.1@gmail.com>
5
5
// Copyright (C) 2009 Gael Guennebaud <gael.guennebaud@inria.fr>
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
#ifndef EIGEN_JACOBI_H
27
12
#define EIGEN_JACOBI_H
28
13
 
 
14
namespace Eigen { 
 
15
 
29
16
/** \ingroup Jacobi_Module
30
17
  * \jacobi_module
31
18
  * \class JacobiRotation
326
313
    // both vectors are sequentially stored in memory => vectorization
327
314
    enum { Peeling = 2 };
328
315
 
329
 
    Index alignedStart = first_aligned(y, size);
 
316
    Index alignedStart = internal::first_aligned(y, size);
330
317
    Index alignedEnd = alignedStart + ((size-alignedStart)/PacketSize)*PacketSize;
331
318
 
332
319
    const Packet pc = pset1<Packet>(j.c());
344
331
    Scalar* EIGEN_RESTRICT px = x + alignedStart;
345
332
    Scalar* EIGEN_RESTRICT py = y + alignedStart;
346
333
 
347
 
    if(first_aligned(x, size)==alignedStart)
 
334
    if(internal::first_aligned(x, size)==alignedStart)
348
335
    {
349
336
      for(Index i=alignedStart; i<alignedEnd; i+=PacketSize)
350
337
      {
425
412
    }
426
413
  }
427
414
}
428
 
}
 
415
 
 
416
} // end namespace internal
 
417
 
 
418
} // end namespace Eigen
429
419
 
430
420
#endif // EIGEN_JACOBI_H