Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 2f6559b7006594cad03af173263c219e > files > 1822

mrpt-doc-0.9.4-0.1.20110110svn2383.fc15.i686.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>The MRPT project: CwiseUnaryView.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<div align="left"><a href="http://www.mrpt.org/">Main MRPT website</a> &gt; <b>C++ reference</b> </div>
<div align="right">
<a href="index.html"><img border="0" src="mrpt_logo.png" alt="MRPT logo"></a>
</div>
<!-- Generated by Doxygen 1.7.2 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
          <span class="left">
            <form id="FSearchBox" action="search.php" method="get">
              <img id="MSearchSelect" src="search/mag.png" alt=""/>
              <input type="text" id="MSearchField" name="query" value="Search" size="20" accesskey="S" 
                     onfocus="searchBox.OnSearchFieldFocus(true)" 
                     onblur="searchBox.OnSearchFieldFocus(false)"/>
            </form>
          </span><span class="right"></span>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>CwiseUnaryView.h</h1>  </div>
</div>
<div class="contents">
<a href="_cwise_unary_view_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// This file is part of Eigen, a lightweight C++ template library</span>
<a name="l00002"></a>00002 <span class="comment">// for linear algebra.</span>
<a name="l00003"></a>00003 <span class="comment">//</span>
<a name="l00004"></a>00004 <span class="comment">// Copyright (C) 2009-2010 Gael Guennebaud &lt;gael.guennebaud@inria.fr&gt;</span>
<a name="l00005"></a>00005 <span class="comment">//</span>
<a name="l00006"></a>00006 <span class="comment">// Eigen is free software; you can redistribute it and/or</span>
<a name="l00007"></a>00007 <span class="comment">// modify it under the terms of the GNU Lesser General Public</span>
<a name="l00008"></a>00008 <span class="comment">// License as published by the Free Software Foundation; either</span>
<a name="l00009"></a>00009 <span class="comment">// version 3 of the License, or (at your option) any later version.</span>
<a name="l00010"></a>00010 <span class="comment">//</span>
<a name="l00011"></a>00011 <span class="comment">// Alternatively, you can redistribute it and/or</span>
<a name="l00012"></a>00012 <span class="comment">// modify it under the terms of the GNU General Public License as</span>
<a name="l00013"></a>00013 <span class="comment">// published by the Free Software Foundation; either version 2 of</span>
<a name="l00014"></a>00014 <span class="comment">// the License, or (at your option) any later version.</span>
<a name="l00015"></a>00015 <span class="comment">//</span>
<a name="l00016"></a>00016 <span class="comment">// Eigen is distributed in the hope that it will be useful, but WITHOUT ANY</span>
<a name="l00017"></a>00017 <span class="comment">// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS</span>
<a name="l00018"></a>00018 <span class="comment">// FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License or the</span>
<a name="l00019"></a>00019 <span class="comment">// GNU General Public License for more details.</span>
<a name="l00020"></a>00020 <span class="comment">//</span>
<a name="l00021"></a>00021 <span class="comment">// You should have received a copy of the GNU Lesser General Public</span>
<a name="l00022"></a>00022 <span class="comment">// License and a copy of the GNU General Public License along with</span>
<a name="l00023"></a>00023 <span class="comment">// Eigen. If not, see &lt;http://www.gnu.org/licenses/&gt;.</span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="preprocessor">#ifndef EIGEN_CWISE_UNARY_VIEW_H</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#define EIGEN_CWISE_UNARY_VIEW_H</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span><span class="comment"></span>
<a name="l00028"></a>00028 <span class="comment">/** \class CwiseUnaryView</span>
<a name="l00029"></a>00029 <span class="comment">  * \ingroup Core_Module</span>
<a name="l00030"></a>00030 <span class="comment">  *</span>
<a name="l00031"></a>00031 <span class="comment">  * \brief Generic lvalue expression of a coefficient-wise unary operator of a matrix or a vector</span>
<a name="l00032"></a>00032 <span class="comment">  *</span>
<a name="l00033"></a>00033 <span class="comment">  * \param ViewOp template functor implementing the view</span>
<a name="l00034"></a>00034 <span class="comment">  * \param MatrixType the type of the matrix we are applying the unary operator</span>
<a name="l00035"></a>00035 <span class="comment">  *</span>
<a name="l00036"></a>00036 <span class="comment">  * This class represents a lvalue expression of a generic unary view operator of a matrix or a vector.</span>
<a name="l00037"></a>00037 <span class="comment">  * It is the return type of real() and imag(), and most of the time this is the only way it is used.</span>
<a name="l00038"></a>00038 <span class="comment">  *</span>
<a name="l00039"></a>00039 <span class="comment">  * \sa MatrixBase::unaryViewExpr(const CustomUnaryOp &amp;) const, class CwiseUnaryOp</span>
<a name="l00040"></a>00040 <span class="comment">  */</span>
<a name="l00041"></a>00041 
<a name="l00042"></a>00042 <span class="keyword">namespace </span>internal {
<a name="l00043"></a>00043 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> ViewOp, <span class="keyword">typename</span> MatrixType&gt;
<a name="l00044"></a><a class="code" href="structinternal_1_1traits_3_01_cwise_unary_view_3_01_view_op_00_01_matrix_type_01_4_01_4.html">00044</a> <span class="keyword">struct </span>traits&lt;<a class="code" href="class_cwise_unary_view.html" title="Generic lvalue expression of a coefficient-wise unary operator of a matrix or a vector.">CwiseUnaryView</a>&lt;ViewOp, MatrixType&gt; &gt;
<a name="l00045"></a>00045  : traits&lt;MatrixType&gt;
<a name="l00046"></a>00046 {
<a name="l00047"></a>00047   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="structinternal_1_1result__of.html">result_of</a>&lt;
<a name="l00048"></a>00048                      ViewOp(<span class="keyword">typename</span> traits&lt;MatrixType&gt;::Scalar)
<a name="l00049"></a><a class="code" href="structinternal_1_1traits_3_01_cwise_unary_view_3_01_view_op_00_01_matrix_type_01_4_01_4.html#a3ca0ebaa8a8774614fb993867d5820cc">00049</a>                    &gt;<a class="code" href="classinternal_1_1dense__xpr__base_1_1type.html">::type</a> <a class="code" href="structinternal_1_1traits_3_01_cwise_unary_view_3_01_view_op_00_01_matrix_type_01_4_01_4.html#a3ca0ebaa8a8774614fb993867d5820cc">Scalar</a>;
<a name="l00050"></a><a class="code" href="structinternal_1_1traits_3_01_cwise_unary_view_3_01_view_op_00_01_matrix_type_01_4_01_4.html#a05ad66ae2eaaf70f95aa9703a0f58b1b">00050</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> MatrixType::Nested <a class="code" href="structinternal_1_1traits_3_01_cwise_unary_view_3_01_view_op_00_01_matrix_type_01_4_01_4.html#a05ad66ae2eaaf70f95aa9703a0f58b1b">MatrixTypeNested</a>;
<a name="l00051"></a><a class="code" href="structinternal_1_1traits_3_01_cwise_unary_view_3_01_view_op_00_01_matrix_type_01_4_01_4.html#aa061ed30a6b18444ff703b77df5377c4">00051</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="structinternal_1_1remove__all.html#a563ebdff4a8ca3825b500e7efb95c4bc">remove_all&lt;MatrixTypeNested&gt;::type</a> <a class="code" href="structinternal_1_1traits_3_01_cwise_unary_view_3_01_view_op_00_01_matrix_type_01_4_01_4.html#aa061ed30a6b18444ff703b77df5377c4">_MatrixTypeNested</a>;
<a name="l00052"></a>00052   <span class="keyword">enum</span> {
<a name="l00053"></a><a class="code" href="structinternal_1_1traits_3_01_cwise_unary_view_3_01_view_op_00_01_matrix_type_01_4_01_4.html#ac56f1ffa63e12d1b969052d3ffd71e8fa7ab494ef1b8cf39fa9ceea41816371e2">00053</a>     Flags = (traits&lt;_MatrixTypeNested&gt;::Flags &amp; (<a class="code" href="_constants_8h.html#ab3a408f1142a07c31e28ff8b51175c74">HereditaryBits</a> | <a class="code" href="group__flags.html#ga64e21b7543bdedce27f013512a4403a3" title="Means the expression has a coeffRef() method, i.e.">LvalueBit</a> | <a class="code" href="group__flags.html#gab9799bf6feed77fc9fce0136ee55b99c" title="Short version: means the expression can be seen as 1D vector.">LinearAccessBit</a> | <a class="code" href="group__flags.html#ga54c3b872f5a14e7e0d3d6539b704ea67" title="Means that the underlying array of coefficients can be directly accessed as a plain strided array...">DirectAccessBit</a>)),
<a name="l00054"></a><a class="code" href="structinternal_1_1traits_3_01_cwise_unary_view_3_01_view_op_00_01_matrix_type_01_4_01_4.html#ac56f1ffa63e12d1b969052d3ffd71e8faf578b94beab936b0a7ae7fdfb363f3f2">00054</a>     CoeffReadCost = traits&lt;_MatrixTypeNested&gt;::CoeffReadCost + <a class="code" href="structinternal_1_1functor__traits.html">functor_traits&lt;ViewOp&gt;::Cost</a>,
<a name="l00055"></a><a class="code" href="structinternal_1_1traits_3_01_cwise_unary_view_3_01_view_op_00_01_matrix_type_01_4_01_4.html#ac56f1ffa63e12d1b969052d3ffd71e8fa05b4da8c990e59a2a64707aca0b6385c">00055</a>     MatrixTypeInnerStride =  <a class="code" href="structinternal_1_1inner__stride__at__compile__time.html">inner_stride_at_compile_time&lt;MatrixType&gt;::ret</a>,
<a name="l00056"></a>00056     <span class="comment">// need to cast the sizeof&#39;s from size_t to int explicitly, otherwise:</span>
<a name="l00057"></a>00057     <span class="comment">// &quot;error: no integral type can represent all of the enumerator values</span>
<a name="l00058"></a><a class="code" href="structinternal_1_1traits_3_01_cwise_unary_view_3_01_view_op_00_01_matrix_type_01_4_01_4.html#ac56f1ffa63e12d1b969052d3ffd71e8fa01f3281f315f663873a64057ce60a14c">00058</a>     InnerStrideAtCompileTime = MatrixTypeInnerStride == <a class="code" href="_constants_8h.html#adc9da5be31bdce40c25a92c27999c0e3" title="This value means that a quantity is not known at compile-time, and that instead the value is stored i...">Dynamic</a>
<a name="l00059"></a>00059                              ? int(<a class="code" href="_constants_8h.html#adc9da5be31bdce40c25a92c27999c0e3" title="This value means that a quantity is not known at compile-time, and that instead the value is stored i...">Dynamic</a>)
<a name="l00060"></a>00060                              : int(MatrixTypeInnerStride)
<a name="l00061"></a>00061                                * int(sizeof(typename traits&lt;MatrixType&gt;::<a class="code" href="structinternal_1_1traits_3_01_cwise_unary_view_3_01_view_op_00_01_matrix_type_01_4_01_4.html#a3ca0ebaa8a8774614fb993867d5820cc">Scalar</a>) / sizeof(<a class="code" href="structinternal_1_1traits_3_01_cwise_unary_view_3_01_view_op_00_01_matrix_type_01_4_01_4.html#a3ca0ebaa8a8774614fb993867d5820cc">Scalar</a>)),
<a name="l00062"></a><a class="code" href="structinternal_1_1traits_3_01_cwise_unary_view_3_01_view_op_00_01_matrix_type_01_4_01_4.html#ac56f1ffa63e12d1b969052d3ffd71e8fad7390d52c395d7be00cc34b701d1c180">00062</a>     OuterStrideAtCompileTime = <a class="code" href="structinternal_1_1outer__stride__at__compile__time.html">outer_stride_at_compile_time</a>&lt;MatrixType&gt;::ret
<a name="l00063"></a>00063   };
<a name="l00064"></a>00064 };
<a name="l00065"></a>00065 }
<a name="l00066"></a>00066 
<a name="l00067"></a>00067 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> ViewOp, <span class="keyword">typename</span> MatrixType, <span class="keyword">typename</span> StorageKind&gt;
<a name="l00068"></a>00068 <span class="keyword">class </span>CwiseUnaryViewImpl;
<a name="l00069"></a>00069 
<a name="l00070"></a>00070 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> ViewOp, <span class="keyword">typename</span> MatrixType&gt;
<a name="l00071"></a><a class="code" href="class_cwise_unary_view.html">00071</a> <span class="keyword">class </span><a class="code" href="class_cwise_unary_view.html" title="Generic lvalue expression of a coefficient-wise unary operator of a matrix or a vector.">CwiseUnaryView</a> : internal::no_assignment_operator,
<a name="l00072"></a>00072   <span class="keyword">public</span> CwiseUnaryViewImpl&lt;ViewOp, MatrixType, typename internal::traits&lt;MatrixType&gt;::StorageKind&gt;
<a name="l00073"></a>00073 {
<a name="l00074"></a>00074   <span class="keyword">public</span>:
<a name="l00075"></a>00075 
<a name="l00076"></a><a class="code" href="class_cwise_unary_view.html#ae72028590f5f0f3a0756606ea0bf4803">00076</a>     <span class="keyword">typedef</span> <span class="keyword">typename</span> CwiseUnaryViewImpl&lt;ViewOp, MatrixType,typename internal::traits&lt;MatrixType&gt;::StorageKind&gt;<a class="code" href="class_cwise_unary_view.html#ae72028590f5f0f3a0756606ea0bf4803">::Base</a> <a class="code" href="class_cwise_unary_view.html#ae72028590f5f0f3a0756606ea0bf4803">Base</a>;
<a name="l00077"></a>00077     <a class="code" href="_macros_8h.html#a2e5d5054c3dfcf7642af8bf98e917d67" title="Just a side note.">EIGEN_GENERIC_PUBLIC_INTERFACE</a>(<a class="code" href="class_cwise_unary_view.html" title="Generic lvalue expression of a coefficient-wise unary operator of a matrix or a vector.">CwiseUnaryView</a>)
<a name="l00078"></a>00078 
<a name="l00079"></a><a class="code" href="class_cwise_unary_view.html#ade6804e68f8dc9b530e3d1d77eeedade">00079</a>     inline <a class="code" href="class_cwise_unary_view.html" title="Generic lvalue expression of a coefficient-wise unary operator of a matrix or a vector.">CwiseUnaryView</a>(const MatrixType&amp; mat, const ViewOp&amp; func = ViewOp())
<a name="l00080"></a>00080       : m_matrix(mat), m_functor(func) {}
<a name="l00081"></a>00081 
<a name="l00082"></a>00082     <a class="code" href="_macros_8h.html#ad84d7b9025947395ef1f67e45cea3150">EIGEN_INHERIT_ASSIGNMENT_OPERATORS</a>(<a class="code" href="class_cwise_unary_view.html" title="Generic lvalue expression of a coefficient-wise unary operator of a matrix or a vector.">CwiseUnaryView</a>)
<a name="l00083"></a>00083 
<a name="l00084"></a><a class="code" href="class_cwise_unary_view.html#ad5f55fd4c45d88f89079c84a3763908d">00084</a>     <a class="code" href="_macros_8h.html#af2b60117c00a6e75812de43bfe7db3b1">EIGEN_STRONG_INLINE</a> Index rows()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_matrix.rows(); }
<a name="l00085"></a><a class="code" href="class_cwise_unary_view.html#a1b1e77877ca226343e91e7da4fc6f46d">00085</a>     <a class="code" href="_macros_8h.html#af2b60117c00a6e75812de43bfe7db3b1">EIGEN_STRONG_INLINE</a> Index <a class="code" href="class_cwise_unary_view.html#a1b1e77877ca226343e91e7da4fc6f46d">cols</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_matrix.cols(); }
<a name="l00086"></a>00086 <span class="comment"></span>
<a name="l00087"></a>00087 <span class="comment">    /** \returns the functor representing unary operation */</span>
<a name="l00088"></a><a class="code" href="class_cwise_unary_view.html#ab70a57059db65fc51a7af5fa86a1bfed">00088</a>     <span class="keyword">const</span> ViewOp&amp; <a class="code" href="class_cwise_unary_view.html#ab70a57059db65fc51a7af5fa86a1bfed">functor</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_functor; }
<a name="l00089"></a>00089 <span class="comment"></span>
<a name="l00090"></a>00090 <span class="comment">    /** \returns the nested expression */</span>
<a name="l00091"></a>00091     <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="structinternal_1_1remove__all.html#a563ebdff4a8ca3825b500e7efb95c4bc">internal::remove_all&lt;typename MatrixType::Nested&gt;::type</a>&amp;
<a name="l00092"></a><a class="code" href="class_cwise_unary_view.html#a45fc482b433f366c75e3ff8844358656">00092</a>     <a class="code" href="class_cwise_unary_view.html#a45fc482b433f366c75e3ff8844358656">nestedExpression</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_matrix; }
<a name="l00093"></a>00093 <span class="comment"></span>
<a name="l00094"></a>00094 <span class="comment">    /** \returns the nested expression */</span>
<a name="l00095"></a>00095     <span class="keyword">typename</span> <a class="code" href="structinternal_1_1remove__all.html#a563ebdff4a8ca3825b500e7efb95c4bc">internal::remove_all&lt;typename MatrixType::Nested&gt;::type</a>&amp;
<a name="l00096"></a><a class="code" href="class_cwise_unary_view.html#a828738ae41d5c6ae9bea12e6a4839d87">00096</a>     <a class="code" href="class_cwise_unary_view.html#a828738ae41d5c6ae9bea12e6a4839d87">nestedExpression</a>() { <span class="keywordflow">return</span> m_matrix.const_cast_derived(); }
<a name="l00097"></a>00097 
<a name="l00098"></a>00098   <span class="keyword">protected</span>:
<a name="l00099"></a>00099     <span class="comment">// FIXME changed from MatrixType::Nested because of a weird compilation error with sun CC</span>
<a name="l00100"></a><a class="code" href="class_cwise_unary_view.html#acb1346f15257a80e130548c2c5824ad1">00100</a>     <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="structinternal_1_1nested.html">internal::nested&lt;MatrixType&gt;::type</a> <a class="code" href="class_cwise_unary_view.html#acb1346f15257a80e130548c2c5824ad1">m_matrix</a>;
<a name="l00101"></a><a class="code" href="class_cwise_unary_view.html#ae6b616e06ac451a1ec75cd974f0d95b5">00101</a>     ViewOp <a class="code" href="class_cwise_unary_view.html#ae6b616e06ac451a1ec75cd974f0d95b5">m_functor</a>;
<a name="l00102"></a>00102 };
<a name="l00103"></a>00103 
<a name="l00104"></a>00104 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> ViewOp, <span class="keyword">typename</span> MatrixType&gt;
<a name="l00105"></a><a class="code" href="class_cwise_unary_view_impl_3_01_view_op_00_01_matrix_type_00_01_dense_01_4.html">00105</a> <span class="keyword">class </span>CwiseUnaryViewImpl&lt;ViewOp,MatrixType,<a class="code" href="struct_dense.html" title="The type used to identify a dense storage.">Dense</a>&gt;
<a name="l00106"></a>00106   : <span class="keyword">public</span> internal::dense_xpr_base&lt; CwiseUnaryView&lt;ViewOp, MatrixType&gt; &gt;::<a class="code" href="classinternal_1_1dense__xpr__base_1_1type.html">type</a>
<a name="l00107"></a>00107 {
<a name="l00108"></a>00108   <span class="keyword">public</span>:
<a name="l00109"></a>00109 
<a name="l00110"></a><a class="code" href="class_cwise_unary_view_impl_3_01_view_op_00_01_matrix_type_00_01_dense_01_4.html#a3276c167e5e36fb32e1c59d85b0189bd">00110</a>     <span class="keyword">typedef</span> <a class="code" href="class_cwise_unary_view.html" title="Generic lvalue expression of a coefficient-wise unary operator of a matrix or a vector.">CwiseUnaryView&lt;ViewOp, MatrixType&gt;</a> <a class="code" href="class_cwise_unary_view_impl_3_01_view_op_00_01_matrix_type_00_01_dense_01_4.html#a3276c167e5e36fb32e1c59d85b0189bd">Derived</a>;
<a name="l00111"></a><a class="code" href="class_cwise_unary_view_impl_3_01_view_op_00_01_matrix_type_00_01_dense_01_4.html#adb2f94832d3a5e1571f1ca6c0953640b">00111</a>     <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="structinternal_1_1dense__xpr__base.html">internal::dense_xpr_base&lt; CwiseUnaryView&lt;ViewOp, MatrixType&gt;</a> &gt;<a class="code" href="classinternal_1_1dense__xpr__base_1_1type.html">::type</a> <a class="code" href="class_cwise_unary_view_impl_3_01_view_op_00_01_matrix_type_00_01_dense_01_4.html#adb2f94832d3a5e1571f1ca6c0953640b">Base</a>;
<a name="l00112"></a>00112 
<a name="l00113"></a>00113     <a class="code" href="_macros_8h.html#ab29ea1da9635d033ca44cf26ad6fa0cf">EIGEN_DENSE_PUBLIC_INTERFACE</a>(<a class="code" href="class_cwise_unary_view.html" title="Generic lvalue expression of a coefficient-wise unary operator of a matrix or a vector.">Derived</a>)
<a name="l00114"></a>00114 
<a name="l00115"></a><a class="code" href="class_cwise_unary_view_impl_3_01_view_op_00_01_matrix_type_00_01_dense_01_4.html#a261bf371fcbd7e3cd190844767833822">00115</a>     inline Index innerStride()<span class="keyword"> const</span>
<a name="l00116"></a>00116 <span class="keyword">    </span>{
<a name="l00117"></a>00117       <span class="keywordflow">return</span> derived().nestedExpression().innerStride() * <span class="keyword">sizeof</span>(<span class="keyword">typename</span> internal::traits&lt;MatrixType&gt;::Scalar) / <span class="keyword">sizeof</span>(Scalar);
<a name="l00118"></a>00118     }
<a name="l00119"></a>00119 
<a name="l00120"></a><a class="code" href="class_cwise_unary_view_impl_3_01_view_op_00_01_matrix_type_00_01_dense_01_4.html#aa57df2b3ecee95096c83031a1a0e1ae3">00120</a>     <span class="keyword">inline</span> Index outerStride()<span class="keyword"> const</span>
<a name="l00121"></a>00121 <span class="keyword">    </span>{
<a name="l00122"></a>00122       <span class="keywordflow">return</span> derived().nestedExpression().outerStride();
<a name="l00123"></a>00123     }
<a name="l00124"></a>00124 
<a name="l00125"></a><a class="code" href="class_cwise_unary_view_impl_3_01_view_op_00_01_matrix_type_00_01_dense_01_4.html#a46f2b42e44d514255242b5d653a5ce3d">00125</a>     <a class="code" href="_macros_8h.html#af2b60117c00a6e75812de43bfe7db3b1">EIGEN_STRONG_INLINE</a> CoeffReturnType coeff(Index <a class="code" href="_block_methods_8h.html#ad62dcaf648cca25e9318da34c9840799" title="This is the const version of row().">row</a>, Index <a class="code" href="_block_methods_8h.html#a390f7c534678354959dd587080b82c2c" title="This is the const version of col().">col</a>)<span class="keyword"> const</span>
<a name="l00126"></a>00126 <span class="keyword">    </span>{
<a name="l00127"></a>00127       <span class="keywordflow">return</span> derived().functor()(derived().nestedExpression().coeff(row, col));
<a name="l00128"></a>00128     }
<a name="l00129"></a>00129 
<a name="l00130"></a><a class="code" href="class_cwise_unary_view_impl_3_01_view_op_00_01_matrix_type_00_01_dense_01_4.html#a0012fee270ed8527e874d5c46399ca38">00130</a>     <a class="code" href="_macros_8h.html#af2b60117c00a6e75812de43bfe7db3b1">EIGEN_STRONG_INLINE</a> CoeffReturnType coeff(Index index)<span class="keyword"> const</span>
<a name="l00131"></a>00131 <span class="keyword">    </span>{
<a name="l00132"></a>00132       <span class="keywordflow">return</span> derived().functor()(derived().nestedExpression().coeff(index));
<a name="l00133"></a>00133     }
<a name="l00134"></a>00134 
<a name="l00135"></a><a class="code" href="class_cwise_unary_view_impl_3_01_view_op_00_01_matrix_type_00_01_dense_01_4.html#a14a383b81de339036bc38c5c61004193">00135</a>     <a class="code" href="_macros_8h.html#af2b60117c00a6e75812de43bfe7db3b1">EIGEN_STRONG_INLINE</a> Scalar&amp; coeffRef(Index <a class="code" href="_block_methods_8h.html#ad62dcaf648cca25e9318da34c9840799" title="This is the const version of row().">row</a>, Index <a class="code" href="_block_methods_8h.html#a390f7c534678354959dd587080b82c2c" title="This is the const version of col().">col</a>)
<a name="l00136"></a>00136     {
<a name="l00137"></a>00137       <span class="keywordflow">return</span> derived().functor()(const_cast_derived().nestedExpression().coeffRef(row, col));
<a name="l00138"></a>00138     }
<a name="l00139"></a>00139 
<a name="l00140"></a><a class="code" href="class_cwise_unary_view_impl_3_01_view_op_00_01_matrix_type_00_01_dense_01_4.html#ad9a3ccf08f874a913d129443de263c99">00140</a>     <a class="code" href="_macros_8h.html#af2b60117c00a6e75812de43bfe7db3b1">EIGEN_STRONG_INLINE</a> Scalar&amp; coeffRef(Index index)
<a name="l00141"></a>00141     {
<a name="l00142"></a>00142       <span class="keywordflow">return</span> derived().functor()(const_cast_derived().nestedExpression().coeffRef(index));
<a name="l00143"></a>00143     }
<a name="l00144"></a>00144 };
<a name="l00145"></a>00145 
<a name="l00146"></a>00146 
<a name="l00147"></a>00147 
<a name="l00148"></a>00148 <span class="preprocessor">#endif // EIGEN_CWISE_UNARY_VIEW_H</span>
</pre></div></div>
</div>
<br><hr><br> <table border="0" width="100%"> <tr> <td> Page generated by <a href="http://www.doxygen.org" target="_blank">Doxygen 1.7.2</a> for MRPT 0.9.4 SVN: at Mon Jan 10 22:30:30 UTC 2011</td><td></td> <td width="100"> </td> <td width="150">  </td></tr> </table> </body></html>