<div> I’m not sure what the compilers, and C++ are doing here </div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 7, 2020 at 9:17 AM Кудров Илья <<a href="mailto:ilyakudrov@yandex.ru">ilyakudrov@yandex.ru</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>However, after configuring</div><div> </div><div>cout<<1. + 1.*PETSC_i<<endl;</div><div> </div><div>outputs (1, 0) instead of (1, 1).</div><div> </div><div>07.01.2020, 16:01, "Mark Adams" <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>>:</div><blockquote><div>yes, configure with<div> </div><div>--with-precision=single </div><div>--with-scalar-type=complex</div><div> </div></div> <div><div>On Tue, Jan 7, 2020 at 7:49 AM Кудров Илья <<a href="mailto:ilyakudrov@yandex.ru" target="_blank">ilyakudrov@yandex.ru</a>> wrote:</div><blockquote style="border-left-color:rgb(204,204,204);border-left-style:solid;border-left-width:1px;margin:0px 0px 0px 0.8ex;padding-left:1ex"><div>Good day! Is it possible to use complex numbers in single precision in linear solvers? I'd like to decrease time and memory needed for calculation.</div><div> </div><div>Best regards, Ilya Kudrov!</div></blockquote></div></blockquote>
</blockquote></div></div>