MatrixCwiseUnaryOps.h
Go to the documentation of this file.
00001 // This file is part of Eigen, a lightweight C++ template library
00002 // for linear algebra.
00003 //
00004 // Copyright (C) 2008-2009 Gael Guennebaud <gael.guennebaud@inria.fr>
00005 // Copyright (C) 2006-2008 Benoit Jacob <jacob.benoit.1@gmail.com>
00006 //
00007 // Eigen is free software; you can redistribute it and/or
00008 // modify it under the terms of the GNU Lesser General Public
00009 // License as published by the Free Software Foundation; either
00010 // version 3 of the License, or (at your option) any later version.
00011 //
00012 // Alternatively, you can redistribute it and/or
00013 // modify it under the terms of the GNU General Public License as
00014 // published by the Free Software Foundation; either version 2 of
00015 // the License, or (at your option) any later version.
00016 //
00017 // Eigen is distributed in the hope that it will be useful, but WITHOUT ANY
00018 // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00019 // FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License or the
00020 // GNU General Public License for more details.
00021 //
00022 // You should have received a copy of the GNU Lesser General Public
00023 // License and a copy of the GNU General Public License along with
00024 // Eigen. If not, see <http://www.gnu.org/licenses/>.
00025 
00026 // This file is a base class plugin containing matrix specifics coefficient wise functions.
00027 
00035 EIGEN_STRONG_INLINE const CwiseUnaryOp<internal::scalar_abs_op<Scalar>, const Derived>
00036 cwiseAbs() const { return derived(); }
00037 
00045 EIGEN_STRONG_INLINE const CwiseUnaryOp<internal::scalar_abs2_op<Scalar>, const Derived>
00046 cwiseAbs2() const { return derived(); }
00047 
00055 inline const CwiseUnaryOp<internal::scalar_sqrt_op<Scalar>, const Derived>
00056 cwiseSqrt() const { return derived(); }
00057 
00065 inline const CwiseUnaryOp<internal::scalar_inverse_op<Scalar>, const Derived>
00066 cwiseInverse() const { return derived(); }
00067 
00077 inline const CwiseUnaryOp<std::binder1st<std::equal_to<Scalar> >, const Derived>
00078 cwiseEqual(const Scalar& s) const
00079 {
00080   return CwiseUnaryOp<std::binder1st<std::equal_to<Scalar> >,const Derived>
00081           (derived(), std::bind1st(std::equal_to<Scalar>(), s));
00082 }


libicr
Author(s): Robert Krug
autogenerated on Mon Jan 6 2014 11:33:06