[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: MatTranspose
- To: petsc-users@xxxxxxxxxxx
- Subject: Re: MatTranspose
- From: "Matthew Knepley" <knepley@xxxxxxxxx>
- Date: Tue, 8 Apr 2008 07:34:27 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=3UHuedke+5mHX923QgMNoUnTKSGYdwSwwppNjOu2xxQ=; b=kxph5Z3PHn6wPxRHQ7xd1oDF24Asme96k4UuXRZMGQlmgoxTDASUHILdkxtjKyOKbIMLmPCfCm0DOjAjZSDG9K+4kNlHnSjANMzoNiVD4WvlQ31Yul+dkwrgW1iXsObyy+U5k7vE0FFQOG1iUeQKKzXOI04CoMc9zEVJ4TS8j6A=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MSrUbsHvwI6UzeuLVhILOxjwxoNGJsdkhbUSllI1/roUCqBiAg2sTQByVUfIjJrgO4pSsde5rZH3268KDYiMSbaxvaBVx50rWBoAT7LWk5n4eCtgDONJEe8TlzI6H4VcFJM+CyW130NJZxwgvYCilxzBhFKeJCYS3pSZb/uiDSA=
- In-reply-to: <20080408124010.7d183e23@rav.ippt.gov.pl>
- References: <20080408124010.7d183e23@rav.ippt.gov.pl>
- Reply-to: petsc-users@xxxxxxxxxxx
- Sender: owner-petsc-users@xxxxxxxxxxx
On Tue, Apr 8, 2008 at 5:40 AM, Toby D. Young <tyoung@xxxxxxxxxxx> wrote:
>
>
> Hello all.
>
> I confused about the statement on MatTranspose() on the manual pages at
>
> http://www-unix.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/Mat/MatTranspose.html
>
> where for
>
> #include "petscmat.h"
> PetscErrorCode MatTranspose(Mat mat,Mat *B)
>
> is the statement:
>
> Notes
> If you pass in PETSC_NULL for B an in-place transpose in mat will be
> done
>
> Does this mean that if I pass PETSC_NULL then the matrix "A" will be
> returned as its own transpose? Does this save memory if I do not need
Yes.
> the original matrix and only its transpose? If not, is there an
Yes.
Matt
> efficient way to destroy the original matrix, thus keeping the
> transpose only?
>
> Can anyone please clarify for me what this statement means?
>
> ...and finally thanks to all for answering my previous confused
> questions. :-)
>
> Best,
> Toby
>
>
>
> --
>
> Toby D. Young - Adiunkt (Assistant Professor)
> Department of Computational Science
> Institute of Fundamental Technological Research
> Polish Academy of Sciences
> Room 206, ul. Swietokrzyska 21
> 00-049 Warszawa, Polska
>
> +48 22 826 12 81 ext. 184
> http://rav.ippt.gov.pl/~tyoung
>
>
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which
their experiments lead.
-- Norbert Wiener