On Mon, 2008-08-04 at 07:57 -0500, Barry Smith wrote:
On Aug 4, 2008, at 3:14 AM, Ahmed El Zein wrote:
I am working on a project where I would like to copy a sparse matrix
in
CSR format.
I have tried MatGetRow() which works OK but I would really like to get
pointers to the 3
On Mon, 2008-08-04 at 04:17 -0500, Matthew Knepley wrote:
On Mon, Aug 4, 2008 at 3:14 AM, Ahmed El Zein ahmed at azein.com wrote:
I am working on a project where I would like to copy a sparse matrix in
CSR format.
I have tried MatGetRow() which works OK but I would really like to get
On Mon, Aug 4, 2008 at 10:53 PM, Ahmed El Zein ahmed at azein.com wrote:
my code looks like:
ierr = MatCreate(PETSC_COMM_WORLD,A); CHKERRQ(ierr);
ierr = MatSetSizes(A,M,N,M,N); CHKERRQ(ierr);
ierr = MatSetType(A, MATSEQAIJ); CHKERRQ(ierr);
ierr = MatAssemblyBegin(A,
On Mon, 2008-08-04 at 10:38 -0500, Matthew Knepley wrote:
On Mon, Aug 4, 2008 at 9:58 AM, Ahmed El Zein ahmed at azein.com wrote:
On Mon, 2008-08-04 at 04:17 -0500, Matthew Knepley wrote:
On Mon, Aug 4, 2008 at 3:14 AM, Ahmed El Zein ahmed at azein.com wrote:
I am working on a project
On Mon, 2008-08-04 at 23:13 +0800, Zi-Hao Wei wrote:
On Mon, Aug 4, 2008 at 10:53 PM, Ahmed El Zein ahmed at azein.com wrote:
my code looks like:
ierr = MatCreate(PETSC_COMM_WORLD,A); CHKERRQ(ierr);
ierr = MatSetSizes(A,M,N,M,N); CHKERRQ(ierr);
ierr = MatSetType(A, MATSEQAIJ);
On Mon, 2008-08-04 at 11:14 -0500, Barry Smith wrote:
Send us the code. This is suppose to be easy stuff.
I have attached the code.
Ahmed
Barry
On Aug 4, 2008, at 11:09 AM, Ahmed El Zein wrote:
On Mon, 2008-08-04 at 23:13 +0800, Zi-Hao Wei wrote:
On Mon, Aug 4, 2008 at 10:53 PM,
I downloaded and recompiled the latest PETSc release and it is working
fine now.
Thank you all for you time and your help.
Ahmed
On Mon, 2008-08-04 at 13:14 -0500, Barry Smith wrote:
Looks fine to me. I removed the gratuitous C++ and changed
#include private/matimpl.h to
#include
I am working on a project where I would like to copy a sparse matrix in
CSR format.
I have tried MatGetRow() which works OK but I would really like to get
pointers to the 3 arrays directly.
I also tried MatGetRowIJ() which allows me to get the i and j arrays but
I can't see how to access the
On Mon, Aug 4, 2008 at 3:14 AM, Ahmed El Zein ahmed at azein.com wrote:
I am working on a project where I would like to copy a sparse matrix in
CSR format.
I have tried MatGetRow() which works OK but I would really like to get
pointers to the 3 arrays directly.
I also tried MatGetRowIJ()
On Aug 4, 2008, at 3:14 AM, Ahmed El Zein wrote:
I am working on a project where I would like to copy a sparse matrix
in
CSR format.
I have tried MatGetRow() which works OK but I would really like to get
pointers to the 3 arrays directly.
I also tried MatGetRowIJ() which allows me to
On Mon, Aug 4, 2008 at 9:58 AM, Ahmed El Zein ahmed at azein.com wrote:
On Mon, 2008-08-04 at 04:17 -0500, Matthew Knepley wrote:
On Mon, Aug 4, 2008 at 3:14 AM, Ahmed El Zein ahmed at azein.com wrote:
I am working on a project where I would like to copy a sparse matrix in
CSR format.
I
Send us the code. This is suppose to be easy stuff.
Barry
On Aug 4, 2008, at 11:09 AM, Ahmed El Zein wrote:
On Mon, 2008-08-04 at 23:13 +0800, Zi-Hao Wei wrote:
On Mon, Aug 4, 2008 at 10:53 PM, Ahmed El Zein ahmed at azein.com
wrote:
my code looks like:
ierr =
It's to let you interleave calls. You can call MatAssemblyBegin as soon as
you've finished assembling the matrix, but you need not call MatAssemblyEnd
until you require more operations on A.
So you can build A (call Begin), build B (call Begin), build a vector x and b,
and only call
13 matches
Mail list logo