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

« back to all changes in this revision

Viewing changes to extern/Eigen3/Eigen/src/Core/Matrix.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) 2006-2010 Benoit Jacob <jacob.benoit.1@gmail.com>
5
5
// Copyright (C) 2008-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_MATRIX_H
27
12
#define EIGEN_MATRIX_H
28
13
 
 
14
namespace Eigen {
 
15
 
29
16
/** \class Matrix
30
17
  * \ingroup Core_Module
31
18
  *
153
140
 
154
141
    typedef typename Base::PlainObject PlainObject;
155
142
 
156
 
    enum { NeedsToAlign = (!(Options&DontAlign))
157
 
                          && SizeAtCompileTime!=Dynamic && ((static_cast<int>(sizeof(Scalar))*SizeAtCompileTime)%16)==0 };
158
 
    EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF(NeedsToAlign)
159
 
 
160
143
    using Base::base;
161
144
    using Base::coeffRef;
162
145
 
415
398
 
416
399
#undef EIGEN_MAKE_TYPEDEFS_ALL_SIZES
417
400
#undef EIGEN_MAKE_TYPEDEFS
418
 
 
419
 
#undef EIGEN_MAKE_TYPEDEFS_LARGE
420
 
 
421
 
#define EIGEN_USING_MATRIX_TYPEDEFS_FOR_TYPE_AND_SIZE(TypeSuffix, SizeSuffix) \
422
 
using Eigen::Matrix##SizeSuffix##TypeSuffix; \
423
 
using Eigen::Vector##SizeSuffix##TypeSuffix; \
424
 
using Eigen::RowVector##SizeSuffix##TypeSuffix;
425
 
 
426
 
#define EIGEN_USING_MATRIX_TYPEDEFS_FOR_TYPE(TypeSuffix) \
427
 
EIGEN_USING_MATRIX_TYPEDEFS_FOR_TYPE_AND_SIZE(TypeSuffix, 2) \
428
 
EIGEN_USING_MATRIX_TYPEDEFS_FOR_TYPE_AND_SIZE(TypeSuffix, 3) \
429
 
EIGEN_USING_MATRIX_TYPEDEFS_FOR_TYPE_AND_SIZE(TypeSuffix, 4) \
430
 
EIGEN_USING_MATRIX_TYPEDEFS_FOR_TYPE_AND_SIZE(TypeSuffix, X) \
431
 
 
432
 
#define EIGEN_USING_MATRIX_TYPEDEFS \
433
 
EIGEN_USING_MATRIX_TYPEDEFS_FOR_TYPE(i) \
434
 
EIGEN_USING_MATRIX_TYPEDEFS_FOR_TYPE(f) \
435
 
EIGEN_USING_MATRIX_TYPEDEFS_FOR_TYPE(d) \
436
 
EIGEN_USING_MATRIX_TYPEDEFS_FOR_TYPE(cf) \
437
 
EIGEN_USING_MATRIX_TYPEDEFS_FOR_TYPE(cd)
 
401
#undef EIGEN_MAKE_FIXED_TYPEDEFS
 
402
 
 
403
} // end namespace Eigen
438
404
 
439
405
#endif // EIGEN_MATRIX_H