1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.4"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SuperLU: SRC/scsum1.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">SuperLU<span id="projectnumber"> 7.0.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$(function() {
initMenu('',false,false,'search.php','Search');
});
/* @license-end */
</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_1e771ff450ae847412a8c28572c155bb.html">SRC</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#define-members">Macros</a> |
<a href="#func-members">Functions</a> </div>
<div class="headertitle"><div class="title">scsum1.c File Reference</div></div>
</div><!--header-->
<div class="contents">
<p>Takes sum of the absolute values of a complex vector and returns a single precision result.
<a href="#details">More...</a></p>
<div class="textblock"><code>#include "<a class="el" href="slu__scomplex_8h_source.html">slu_scomplex.h</a>"</code><br />
<code>#include "<a class="el" href="slu__Cnames_8h_source.html">slu_Cnames.h</a>"</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for scsum1.c:</div>
<div class="dyncontent">
<div class="center"><img src="scsum1_8c__incl.png" border="0" usemap="#aSRC_2scsum1_8c" alt=""/></div>
<map name="aSRC_2scsum1_8c" id="aSRC_2scsum1_8c">
<area shape="rect" title="Takes sum of the absolute values of a complex vector and returns a single precision result." alt="" coords="73,5,184,32"/>
<area shape="rect" href="slu__scomplex_8h.html" title="Header file for complex operations." alt="" coords="5,80,119,107"/>
<area shape="rect" href="slu__Cnames_8h.html" title="Macros defining how C routines will be called." alt="" coords="143,80,250,107"/>
</map>
</div>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a5a76da95c549c41790389a76e12fdcb5"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="scsum1_8c.html#a5a76da95c549c41790389a76e12fdcb5">CX</a>(I)   cx[(I)-1]</td></tr>
<tr class="separator:a5a76da95c549c41790389a76e12fdcb5"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a3e5754a6f3879338caeaf7420891b842"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="scsum1_8c.html#a3e5754a6f3879338caeaf7420891b842">scsum1_slu</a> (int *n, <a class="el" href="structsinglecomplex.html">singlecomplex</a> *cx, int *incx)</td></tr>
<tr class="separator:a3e5754a6f3879338caeaf7420891b842"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p >Copyright (c) 2003, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from U.S. Dept. of Energy)</p>
<p >All rights reserved.</p>
<p >The source code is distributed under BSD license, see the file License.txt at the top-level directory.</p>
<pre>
-- LAPACK auxiliary routine (version 2.0) --
Univ. of Tennessee, Univ. of California Berkeley, NAG Ltd.,
Courant Institute, Argonne National Lab, and Rice University
October 31, 1992
</pre> </div><h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a5a76da95c549c41790389a76e12fdcb5" name="a5a76da95c549c41790389a76e12fdcb5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5a76da95c549c41790389a76e12fdcb5">◆ </a></span>CX</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define CX</td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname">I</td><td>)</td>
<td>   cx[(I)-1]</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a3e5754a6f3879338caeaf7420891b842" name="a3e5754a6f3879338caeaf7420891b842"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3e5754a6f3879338caeaf7420891b842">◆ </a></span>scsum1_slu()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double scsum1_slu </td>
<td>(</td>
<td class="paramtype">int * </td>
<td class="paramname"><em>n</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structsinglecomplex.html">singlecomplex</a> * </td>
<td class="paramname"><em>cx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int * </td>
<td class="paramname"><em>incx</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<pre>
Purpose
=======
SCSUM1 takes the sum of the absolute values of a complex
vector and returns a single precision result.
Based on SCASUM from the Level 1 BLAS.
The change is to use the 'genuine' absolute value.
Contributed by Nick Higham for use with CLACON.
Arguments
=========
N (input) INT
The number of elements in the vector CX.
CX (input) COMPLEX array, dimension (N)
The vector whose elements will be summed.
INCX (input) INT
The spacing between successive values of CX. INCX > 0.
=====================================================================
</pre> <div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="scsum1_8c_a3e5754a6f3879338caeaf7420891b842_cgraph.png" border="0" usemap="#ascsum1_8c_a3e5754a6f3879338caeaf7420891b842_cgraph" alt=""/></div>
<map name="ascsum1_8c_a3e5754a6f3879338caeaf7420891b842_cgraph" id="ascsum1_8c_a3e5754a6f3879338caeaf7420891b842_cgraph">
<area shape="rect" title=" " alt="" coords="5,5,97,32"/>
<area shape="rect" href="scomplex_8c.html#aba8c451f1819db1fd1901496c1fddc72" title="Returns sqrt(z.r^2 + z.i^2)" alt="" coords="145,5,203,32"/>
</map>
</div>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4
</small></address>
</body>
</html>
|