[petsc-users] HermitianTranspose version of MatCreateTranspose.

Barry Smith bsmith at mcs.anl.gov
Mon Feb 23 15:59:14 CST 2015


> On Feb 23, 2015, at 3:45 PM, Andrew Spott <ansp6066 at colorado.edu> wrote:
> 
> It looks like this function doesn’t exist, but it should be pretty easy to write.
> 
> A few questions:
> 
> - Does a new MatType need to be created? or will MATTRANSPOSEMAT work?
> - Is there any way to write this from outside of the PETSc library proper?
>  Initial examination makes it seem like it isn’t possible, because _p_Mat is an incomplete type after the library has been built.

   The directory include/petsc-private/matimp.h is always provided with a PETSc installation so though _p_Mat  is "private" to PETSc you can extend PETSc "out side of the library proper".

   Barry

> - Is this a good idea?  Or should a MatShell just be made?
> 
> -Andrew
> 



More information about the petsc-users mailing list