<div dir="ltr"><div><div><div><div>Dear Developer and Users<br></div><div><br></div> I am new to SLEPC. So my PETSC is compiled with flag --with-scalar-type=complex --with-clanguage=c++, therefore SLEPC should also support c++ complex type. But when I tried to insert C++ complex type value into a PETSC complex matrix, It seems SLEPC's inside complex type is not compatible with C++ complex type according to the test result.<br>

<br></div>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></div>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>Does anyone know how to avoid the problem. <br>

<br></div><div>Best<br>Yuqing Xia<br></div><div><div><br></div></div></div>