[petsc-users] square root function

Barry Smith bsmith at mcs.anl.gov
Mon Apr 4 16:42:57 CDT 2011


   PetscSqrtScalar() macro automatically becomes the correct thing.

   Barry

On Apr 4, 2011, at 4:30 PM, Gaurish Telang wrote:

> Hi,
> 
> Is there a squareroot function implemented in PETSc which can be applied to a PetscScalar type? I am not sure if the sqrt function of the C math library will work on this datatype.
> 
> Regards,
> 
> Gaurish 
> 



More information about the petsc-users mailing list