<ahref="complex_8h.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> <spanclass="comment">/***************************************************************************************************</span></div><divclass="line"><aname="l00002"></a><spanclass="lineno"> 2</span> <spanclass="comment"> * Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.</span></div><divclass="line"><aname="l00003"></a><spanclass="lineno"> 3</span> <spanclass="comment"> *</span></div><divclass="line"><aname="l00004"></a><spanclass="lineno"> 4</span> <spanclass="comment"> * Redistribution and use in source and binary forms, with or without modification, are permitted</span></div><divclass="line"><aname="l00005"></a><spanclass="lineno"> 5</span> <spanclass="comment"> * provided that the following conditions are met:</span></div><divclass="line"><aname="l00006"></a><spanclass="lineno"> 6</span> <spanclass="comment"> * * Redistributions of source code must retain the above copyright notice, this list of</span></div><divclass="line"><aname="l00007"></a><spanclass="lineno"> 7</span> <spanclass="comment"> * conditions and the following disclaimer.</span></div><divclass="line"><aname="l00008"></a><spanclass="lineno"> 8</span> <spanclass="comment"> * * Redistributions in binary form must reproduce the above copyright notice, this list of</span></div><divclass="line"><aname="l00009"></a><spanclass="lineno"> 9</span> <spanclass="comment"> * conditions and the following disclaimer in the documentation and/or other materials</span></div><divclass="line"><aname="l00010"></a><spanclass="lineno"> 10</span> <spanclass="comment"> * provided with the distribution.</span></div><divclass="line"><aname="l00011"></a><spanclass="lineno"> 11</span> <spanclass="comment"> * * Neither the name of the NVIDIA CORPORATION nor the names of its contributors may be used</span></div><divclass="line"><aname="l00012"></a><spanclass="lineno"> 12</span> <spanclass="comment"> * to endorse or promote products derived from this software without specific prior written</span></div><divclass="line"><aname="l00013"></a><spanclass="lineno"> 13</span> <spanclass="comment"> * permission.</span></div><divclass="line"><aname="l00014"></a><spanclass="lineno"> 14</span> <spanclass="comment"> *</span></div><divclass="line"><aname="l00015"></a><spanclass="lineno"> 15</span> <spanclass="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR</span></div><divclass="line"><aname="l00016"></a><spanclass="lineno"> 16</span> <spanclass="comment"> * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND</span></div><divclass="line"><aname="l00017"></a><spanclass="lineno"> 17</span> <spanclass="comment"> * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE</span></div><divclass="line"><aname="l00018"></a><spanclass="lineno"> 18</span> <spanclass="comment"> * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,</span></div><divclass="line"><aname="l00019"></a><spanclass="lineno"> 19</span> <spanclass="comment"> * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;</span></div><divclass="line"><aname="l00020"></a><spanclass="lineno"> 20</span> <spanclass="comment"> * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,</span></div><divclass="line"><aname="l00021"></a><spanclass="lineno"> 21</span> <spanclass="comment"> * STRICT LIABILITY, OR TOR (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE</span></div><divclass="line"><aname="l00022"></a>
<divclass="ttc"id="classcutlass_1_1platform_1_1complex_html_a835363f62c6a079496c22074ab428651"><divclass="ttname"><ahref="classcutlass_1_1platform_1_1complex.html#a835363f62c6a079496c22074ab428651">cutlass::platform::complex::imag</a></div><divclass="ttdeci">CUTLASS_HOST_DEVICE T & imag()</div><divclass="ttdoc">Accesses the imaginary part of the complex number. </div><divclass="ttdef"><b>Definition:</b> complex.h:154</div></div>
<divclass="ttc"id="namespacecutlass_1_1platform_html_a043e8559161ee0fcaf943a1dfe1a9cbb"><divclass="ttname"><ahref="namespacecutlass_1_1platform.html#a043e8559161ee0fcaf943a1dfe1a9cbb">cutlass::platform::operator==</a></div><divclass="ttdeci">CUTLASS_HOST_DEVICE bool operator==(complex< T > const &lhs, complex< T > const &rhs)</div><divclass="ttdoc">Equality operator. </div><divclass="ttdef"><b>Definition:</b> complex.h:224</div></div>
<divclass="ttc"id="classcutlass_1_1platform_1_1complex_html_a57360dbcada12083ecb92fba32fae801"><divclass="ttname"><ahref="classcutlass_1_1platform_1_1complex.html#a57360dbcada12083ecb92fba32fae801">cutlass::platform::complex::imag</a></div><divclass="ttdeci">CUTLASS_HOST_DEVICE T const & imag() const</div><divclass="ttdoc">Accesses the imaginary part of the complex number. </div><divclass="ttdef"><b>Definition:</b> complex.h:148</div></div>
<divclass="ttc"id="namespacecutlass_1_1platform_html_a34950f01ed89108b1d79c651aa58ecba"><divclass="ttname"><ahref="namespacecutlass_1_1platform.html#a34950f01ed89108b1d79c651aa58ecba">cutlass::platform::operator*</a></div><divclass="ttdeci">CUTLASS_HOST_DEVICE complex< T > operator*(complex< T > const &lhs, complex< T > const &rhs)</div><divclass="ttdoc">Multiplication. </div><divclass="ttdef"><b>Definition:</b> complex.h:256</div></div>
<divclass="ttc"id="namespacecutlass_1_1platform_html_abff9e10130849ea46f6245f4e8cc2cc9"><divclass="ttname"><ahref="namespacecutlass_1_1platform.html#abff9e10130849ea46f6245f4e8cc2cc9">cutlass::platform::operator-=</a></div><divclass="ttdeci">CUTLASS_HOST_DEVICE complex< T >& operator-=(complex< T >&lhs, complex< T > const &rhs)</div><divclass="ttdoc">Subtraction. </div><divclass="ttdef"><b>Definition:</b> complex.h:319</div></div>
<divclass="ttc"id="namespacecutlass_1_1platform_html_aa486433971cdd6b7648c1e5459c42763"><divclass="ttname"><ahref="namespacecutlass_1_1platform.html#aa486433971cdd6b7648c1e5459c42763">cutlass::platform::operator-</a></div><divclass="ttdeci">CUTLASS_HOST_DEVICE complex< T > operator-(complex< T > const &lhs, complex< T > const &rhs)</div><divclass="ttdoc">Subtraction. </div><divclass="ttdef"><b>Definition:</b> complex.h:248</div></div>
<divclass="ttc"id="classcutlass_1_1platform_1_1complex_html_acda3e2050b2fefb1aca1fa8aa2063f8b"><divclass="ttname"><ahref="classcutlass_1_1platform_1_1complex.html#acda3e2050b2fefb1aca1fa8aa2063f8b">cutlass::platform::complex::real</a></div><divclass="ttdeci">CUTLASS_HOST_DEVICE T & real()</div><divclass="ttdoc">Accesses the real part of the complex number. </div><divclass="ttdef"><b>Definition:</b> complex.h:142</div></div>
<divclass="ttc"id="namespacecutlass_1_1platform_html_a25a36d44c7b9f182eb404a3251cd4f39"><divclass="ttname"><ahref="namespacecutlass_1_1platform.html#a25a36d44c7b9f182eb404a3251cd4f39">cutlass::platform::real</a></div><divclass="ttdeci">CUTLASS_HOST_DEVICE float const & real(cuFloatComplex const &z)</div><divclass="ttdoc">Returns the real part of the complex number. </div><divclass="ttdef"><b>Definition:</b> complex.h:44</div></div>
<divclass="ttc"id="namespacecutlass_1_1platform_html_a3c5dc10135c54b3b212c9e107ba1476a"><divclass="ttname"><ahref="namespacecutlass_1_1platform.html#a3c5dc10135c54b3b212c9e107ba1476a">cutlass::platform::sin</a></div><divclass="ttdeci">CUTLASS_HOST_DEVICE complex< T > sin(complex< T > const &z)</div><divclass="ttdoc">Computes the sin of complex z. </div><divclass="ttdef"><b>Definition:</b> complex.h:450</div></div>
<divclass="ttc"id="classcutlass_1_1platform_1_1complex_html_a71ee9d620f72fbcd54f6e3049707eb99"><divclass="ttname"><ahref="classcutlass_1_1platform_1_1complex.html#a71ee9d620f72fbcd54f6e3049707eb99">cutlass::platform::complex::complex</a></div><divclass="ttdeci">CUTLASS_HOST_DEVICE complex(cuFloatComplex const &z)</div><divclass="ttdoc">Conversion from cuFloatComplex. </div><divclass="ttdef"><b>Definition:</b> complex.h:124</div></div>
<divclass="ttc"id="namespacecutlass_1_1platform_html_ae0ad2891ed2be526d97bc5665d5c0a92"><divclass="ttname"><ahref="namespacecutlass_1_1platform.html#ae0ad2891ed2be526d97bc5665d5c0a92">cutlass::platform::cos</a></div><divclass="ttdeci">CUTLASS_HOST_DEVICE complex< T > cos(complex< T > const &z)</div><divclass="ttdoc">Computes the cosine of complex z. </div><divclass="ttdef"><b>Definition:</b> complex.h:442</div></div>
<divclass="ttc"id="namespacecutlass_1_1platform_html_a93b0f0d73fa3cf11c5018460b257837c"><divclass="ttname"><ahref="namespacecutlass_1_1platform.html#a93b0f0d73fa3cf11c5018460b257837c">cutlass::platform::operator+</a></div><divclass="ttdeci">CUTLASS_HOST_DEVICE complex< T > operator+(complex< T > const &lhs, complex< T > const &rhs)</div><divclass="ttdoc">Addition. </div><divclass="ttdef"><b>Definition:</b> complex.h:240</div></div>
<divclass="ttc"id="namespacecutlass_1_1platform_html_a6c9200b03868a5090027e5cfc8e27c62"><divclass="ttname"><ahref="namespacecutlass_1_1platform.html#a6c9200b03868a5090027e5cfc8e27c62">cutlass::platform::polar</a></div><divclass="ttdeci">CUTLASS_HOST_DEVICE complex< T > polar(T const &r, T const &theta=T())</div><divclass="ttdoc">Returns a complex number with magnitude r and phase theta. </div><divclass="ttdef"><b>Definition:</b> complex.h:400</div></div>
<divclass="ttc"id="classcutlass_1_1platform_1_1complex_html_ab06cbc1eefd47df3d3748d42d6d95974"><divclass="ttname"><ahref="classcutlass_1_1platform_1_1complex.html#ab06cbc1eefd47df3d3748d42d6d95974">cutlass::platform::complex::real</a></div><divclass="ttdeci">CUTLASS_HOST_DEVICE T const & real() const</div><divclass="ttdoc">Accesses the real part of the complex number. </div><divclass="ttdef"><b>Definition:</b> complex.h:136</div></div>
<divclass="ttc"id="namespacecutlass_1_1platform_html_ac594526ef64ecf364ae957753ce64b40"><divclass="ttname"><ahref="namespacecutlass_1_1platform.html#ac594526ef64ecf364ae957753ce64b40">cutlass::platform::operator/=</a></div><divclass="ttdeci">CUTLASS_HOST_DEVICE complex< T >& operator/=(complex< T >&lhs, complex< T > const &rhs)</div><divclass="ttdoc">Division. </div><divclass="ttdef"><b>Definition:</b> complex.h:346</div></div>
<divclass="ttc"id="namespacecutlass_1_1platform_html_a81308ccea406262e143e27193cbdf747"><divclass="ttname"><ahref="namespacecutlass_1_1platform.html#a81308ccea406262e143e27193cbdf747">cutlass::platform::sqrt</a></div><divclass="ttdeci">CUTLASS_HOST_DEVICE complex< T > sqrt(complex< T > const &z)</div><divclass="ttdoc">Computes the square root of complex number z. </div><divclass="ttdef"><b>Definition:</b> complex.h:432</div></div>
<divclass="ttc"id="namespacecutlass_1_1platform_html_a34c5ca341da805d5d1bc703c53c96d9d"><divclass="ttname"><ahref="namespacecutlass_1_1platform.html#a34c5ca341da805d5d1bc703c53c96d9d">cutlass::platform::operator+=</a></div><divclass="ttdeci">CUTLASS_HOST_DEVICE complex< T >& operator+=(complex< T >&lhs, complex< T > const &rhs)</div><divclass="ttdoc">Addition. </div><divclass="ttdef"><b>Definition:</b> complex.h:310</div></div>
<divclass="ttc"id="namespacecutlass_1_1platform_html_a18bc43cfdc4d066a6c10ad2002196ee6"><divclass="ttname"><ahref="namespacecutlass_1_1platform.html#a18bc43cfdc4d066a6c10ad2002196ee6">cutlass::platform::imag</a></div><divclass="ttdeci">CUTLASS_HOST_DEVICE float const & imag(cuFloatComplex const &z)</div><divclass="ttdoc">Returns the imaginary part of the complex number. </div><divclass="ttdef"><b>Definition:</b> complex.h:68</div></div>
<divclass="ttc"id="namespacecutlass_1_1platform_html_a1a6ab5742404272f76faeaf22f3ec11b"><divclass="ttname"><ahref="namespacecutlass_1_1platform.html#a1a6ab5742404272f76faeaf22f3ec11b">cutlass::platform::exp</a></div><divclass="ttdeci">CUTLASS_HOST_DEVICE complex< T > exp(complex< T > const &z)</div><divclass="ttdoc">Computes the complex exponential of z. </div><divclass="ttdef"><b>Definition:</b> complex.h:408</div></div>
<divclass="ttc"id="namespacecutlass_1_1platform_html_a62dd6ae0e1b4476fd62ac70c26f12a06"><divclass="ttname"><ahref="namespacecutlass_1_1platform.html#a62dd6ae0e1b4476fd62ac70c26f12a06">cutlass::platform::log10</a></div><divclass="ttdeci">CUTLASS_HOST_DEVICE complex< T > log10(complex< T > const &z)</div><divclass="ttdoc">Computes the complex exponential of z. </div><divclass="ttdef"><b>Definition:</b> complex.h:424</div></div>
<divclass="ttc"id="namespacecutlass_1_1platform_html_a9d631b040eea94d9b5af04faa5c20bb1"><divclass="ttname"><ahref="namespacecutlass_1_1platform.html#a9d631b040eea94d9b5af04faa5c20bb1">cutlass::platform::norm</a></div><divclass="ttdeci">CUTLASS_HOST_DEVICE T norm(complex< T > const &z)</div><divclass="ttdoc">Returns the squared magnitude. </div><divclass="ttdef"><b>Definition:</b> complex.h:375</div></div>
<divclass="ttc"id="namespacecutlass_1_1platform_html_aa8b8911c3529ee9d433b0c4d90bde50c"><divclass="ttname"><ahref="namespacecutlass_1_1platform.html#aa8b8911c3529ee9d433b0c4d90bde50c">cutlass::platform::operator!=</a></div><divclass="ttdeci">CUTLASS_HOST_DEVICE bool operator!=(complex< T > const &lhs, complex< T > const &rhs)</div><divclass="ttdoc">Inequality operator. </div><divclass="ttdef"><b>Definition:</b> complex.h:232</div></div>
<divclass="ttc"id="namespacecutlass_1_1platform_html_a1fbf209c41242b3f605ac220c39e8fd5"><divclass="ttname"><ahref="namespacecutlass_1_1platform.html#a1fbf209c41242b3f605ac220c39e8fd5">cutlass::platform::abs</a></div><divclass="ttdeci">CUTLASS_HOST_DEVICE T abs(complex< T > const &z)</div><divclass="ttdoc">Returns the magnitude of the complex number. </div><divclass="ttdef"><b>Definition:</b> complex.h:359</div></div>
<divclass="ttc"id="namespacecutlass_1_1platform_html_a9a4928ab582beee4e7ddd337529d45ac"><divclass="ttname"><ahref="namespacecutlass_1_1platform.html#a9a4928ab582beee4e7ddd337529d45ac">cutlass::platform::operator*=</a></div><divclass="ttdeci">CUTLASS_HOST_DEVICE complex< T >& operator*=(complex< T >&lhs, complex< T > const &rhs)</div><divclass="ttdoc">Multiplication. </div><divclass="ttdef"><b>Definition:</b> complex.h:328</div></div>
<divclass="ttc"id="classcutlass_1_1platform_1_1complex_html_af40324ec4d1d35a0ceda676c8de968f8"><divclass="ttname"><ahref="classcutlass_1_1platform_1_1complex.html#af40324ec4d1d35a0ceda676c8de968f8">cutlass::platform::complex::complex</a></div><divclass="ttdeci">CUTLASS_HOST_DEVICE complex(cuDoubleComplex const &z)</div><divclass="ttdoc">Conversion from cuDoubleComplex. </div><divclass="ttdef"><b>Definition:</b> complex.h:130</div></div>
<divclass="ttc"id="namespacecutlass_1_1platform_html_a8a1a03766dbd2c2ce10b10498f281bf0"><divclass="ttname"><ahref="namespacecutlass_1_1platform.html#a8a1a03766dbd2c2ce10b10498f281bf0">cutlass::platform::arg</a></div><divclass="ttdeci">CUTLASS_HOST_DEVICE T arg(complex< T > const &z)</div><divclass="ttdoc">Returns the magnitude of the complex number. </div><divclass="ttdef"><b>Definition:</b> complex.h:367</div></div>
<divclass="ttc"id="classcutlass_1_1platform_1_1complex_html_a2e852c886e61a39e884026d6f4c32c1e"><divclass="ttname"><ahref="classcutlass_1_1platform_1_1complex.html#a2e852c886e61a39e884026d6f4c32c1e">cutlass::platform::complex::complex</a></div><divclass="ttdeci">CUTLASS_HOST_DEVICE complex(T r=T(0), T i=T(0))</div><divclass="ttdoc">Constructor. </div><divclass="ttdef"><b>Definition:</b> complex.h:118</div></div>
<divclass="ttc"id="namespacecutlass_1_1platform_html_adc1afc18e182f42f72210e2203ba293c"><divclass="ttname"><ahref="namespacecutlass_1_1platform.html#adc1afc18e182f42f72210e2203ba293c">cutlass::platform::log</a></div><divclass="ttdeci">CUTLASS_HOST_DEVICE complex< T > log(complex< T > const &z)</div><divclass="ttdoc">Computes the complex exponential of z. </div><divclass="ttdef"><b>Definition:</b> complex.h:416</div></div>
<divclass="ttc"id="classcutlass_1_1platform_1_1complex_html_aa7c319b0c67f8ffeee3d1bb4b83ea0d6"><divclass="ttname"><ahref="classcutlass_1_1platform_1_1complex.html#aa7c319b0c67f8ffeee3d1bb4b83ea0d6">cutlass::platform::complex::value_type</a></div><divclass="ttdeci">T value_type</div><divclass="ttdoc">Type alias for scalar type. </div><divclass="ttdef"><b>Definition:</b> complex.h:96</div></div>
<divclass="ttc"id="cutlass_8h_html"><divclass="ttname"><ahref="cutlass_8h.html">cutlass.h</a></div><divclass="ttdoc">Basic include for CUTLASS macros. </div></div>
<divclass="ttc"id="namespacecutlass_1_1platform_html_a4fe79c19fb599cd9b85d08676a711f9f"><divclass="ttname"><ahref="namespacecutlass_1_1platform.html#a4fe79c19fb599cd9b85d08676a711f9f">cutlass::platform::operator/</a></div><divclass="ttdeci">CUTLASS_HOST_DEVICE complex< T > operator/(complex< T > const &lhs, complex< T > const &rhs)</div><divclass="ttdoc">Division. </div><divclass="ttdef"><b>Definition:</b> complex.h:281</div></div>
<divclass="ttc"id="namespacecutlass_1_1platform_html_a7167baf0f7fcf52471c0413f084d98d4"><divclass="ttname"><ahref="namespacecutlass_1_1platform.html#a7167baf0f7fcf52471c0413f084d98d4">cutlass::platform::conj</a></div><divclass="ttdeci">CUTLASS_HOST_DEVICE complex< T > conj(complex< T > const &z)</div><divclass="ttdoc">Returns the complex conjugate. </div><divclass="ttdef"><b>Definition:</b> complex.h:383</div></div>