<div dir="ltr">It make sense now. Thanks Jed.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Apr 26, 2014 at 11:36 PM, Jed Brown <span dir="ltr"><<a href="mailto:jed@jedbrown.org" target="_blank">jed@jedbrown.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">yuqing xia <<a href="mailto:yuqing.xia@colorado.edu">yuqing.xia@colorado.edu</a>> writes:<br>
<br>
> Dear Developer and Users<br>
><br>
> I am new to SLEPC. So my PETSC is compiled with flag<br>
> --with-scalar-type=complex --with-clanguage=c++, therefore SLEPC should<br>
> also support c++ complex type. But when I tried to insert C++ complex type<br>
> value into a PETSC complex matrix, It seems SLEPC's inside complex type is<br>
> not compatible with C++ complex type according to the test result.<br>
><br>
> Here is the matrix I want to insert their value to Petsc matrix<br>
> (-0.131541,0)(0,0)(0,0)<br>
> (0,0)(-0.188541,0)(0,0)<br>
> (0,0)(0,0)(-0.245541,0)<br>
> Here is the Petsc matrix after inserting the above matrix value into it<br>
> Matrix Object: 1 MPI processes<br>
> type: seqaij<br>
> row 0: (0, -0.131541) (1, 0) (2, 0)<br>
> row 1: (0, 0) (1, -0.188541) (2, 0)<br>
> row 2: (0, 0) (1, 0) (2, -0.24554<br>
<br>
</div></div>These are (column_index, matrix_entry) pairs.<br>
<div class="HOEnZb"><div class="h5"><br>
> Does anyone know how to avoid the problem.<br>
><br>
> Best<br>
> Yuqing Xia<br>
</div></div></blockquote></div><br></div>