<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
On 27.02.2012 18:01, Matthew Knepley wrote:
<blockquote
cite="mid:CAMYG4Gnq+um6Qqo6JtFf+uMvKqG2EynZVaDB+Z9Ee7H2LSJ11w@mail.gmail.com"
type="cite">On Mon, Feb 27, 2012 at 10:55 AM, Barry Smith <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>></span>
wrote:<br>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<br>
I'm afraid the sudden appearance of the blas dot for complex
numbers problem is my fault.<br>
<br>
Traditionally since 199x we never used the complex dot
product from blas because of the return complex type problem.
VecDot_Seq() used #ifdef for complex and a simple loop.<br>
<br>
Since some blas norm suck I off-hand told Shri to use dot
for norm and wasn't thinking the complex case.<br>
<br>
Since then, of course, the complex dot problem has been
coming up.<br>
<br>
Maybe it is best to continue to never use complex blas dot
and just change the VecNorm_ routines to use norm for complex
and not dot.? Just throw away this silly problem and time
sink?</blockquote>
<div><br>
</div>
<div>
Why is this such a problem? Just use PetscScalar for the
BLASdot_() return type and its fine.</div>
</div>
</blockquote>
<br>
For instance MKL's BLAS returns result for zdot in the first
argument and PETSc's BLASdot_() fails there. <br>
<br>
<blockquote
cite="mid:CAMYG4Gnq+um6Qqo6JtFf+uMvKqG2EynZVaDB+Z9Ee7H2LSJ11w@mail.gmail.com"
type="cite">
<div class="gmail_quote">
<div><br>
</div>
<div> Matt</div>
<div> </div>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<span class="HOEnZb"><font color="#888888"><br>
Barry<br>
<br>
</font></span></blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to
which their experiments lead.<br>
-- Norbert Wiener<br>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Regards,
Alexander</pre>
</body>
</html>