MOAB
4.9.3pre
|
00001 // This file is part of Eigen, a lightweight C++ template library 00002 // for linear algebra. 00003 // 00004 // Copyright (C) 2008-2009 Gael Guennebaud <[email protected]> 00005 // Copyright (C) 2006-2008 Benoit Jacob <[email protected]> 00006 // 00007 // This Source Code Form is subject to the terms of the Mozilla 00008 // Public License v. 2.0. If a copy of the MPL was not distributed 00009 // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 00010 00011 // This file is included into the body of the base classes supporting matrix specific coefficient-wise functions. 00012 // This include MatrixBase and SparseMatrixBase. 00013 00014 typedef CwiseUnaryOp<internal::scalar_abs_op<Scalar>, const Derived> CwiseAbsReturnType; 00015 typedef CwiseUnaryOp<internal::scalar_abs2_op<Scalar>, const Derived> CwiseAbs2ReturnType; 00016 typedef CwiseUnaryOp<internal::scalar_sqrt_op<Scalar>, const Derived> CwiseSqrtReturnType; 00017 typedef CwiseUnaryOp<internal::scalar_sign_op<Scalar>, const Derived> CwiseSignReturnType; 00018 typedef CwiseUnaryOp<internal::scalar_inverse_op<Scalar>, const Derived> CwiseInverseReturnType; 00019 00027 EIGEN_DEVICE_FUNC 00028 EIGEN_STRONG_INLINE const CwiseAbsReturnType 00029 cwiseAbs() const { return CwiseAbsReturnType(derived()); } 00030 00038 EIGEN_DEVICE_FUNC 00039 EIGEN_STRONG_INLINE const CwiseAbs2ReturnType 00040 cwiseAbs2() const { return CwiseAbs2ReturnType(derived()); } 00041 00049 EIGEN_DEVICE_FUNC 00050 inline const CwiseSqrtReturnType 00051 cwiseSqrt() const { return CwiseSqrtReturnType(derived()); } 00052 00059 EIGEN_DEVICE_FUNC 00060 inline const CwiseSignReturnType 00061 cwiseSign() const { return CwiseSignReturnType(derived()); } 00062 00063 00071 EIGEN_DEVICE_FUNC 00072 inline const CwiseInverseReturnType 00073 cwiseInverse() const { return CwiseInverseReturnType(derived()); }