Re: Matrix multiplication using subarrays?
- From: Peter <sherwood@xxxxxxxxxxxxxx>
- Date: Thu, 26 Jul 2007 16:56:42 -0700
Richard Maine wrote:
I think you are misdiagnosing the problem. Since you haven't given
enough data for us to do the diagnosis, there isn't much help I can
offer.
The problem turns out to be that I had the dimensions of A reversed in
the actual pgm. Hence, my diagnosis of the proximate cause was correct
(I had the advantage of a numerical example), but I hadn't given you
the data you needed to make this diagnosis. However, you provided a
key bit of help, namely, that the submatrix should behave as expected.
As an aside, since you are presumably using f90/f95 anyway (given the
array slice notation and the MATMUL intrinsic), I often find it more
convenient to use an allocatable array for cases like this.
This is the kind of wisdom I was looking for.
.
- References:
- Matrix multiplication using subarrays?
- From: Peter
- Re: Matrix multiplication using subarrays?
- From: Richard Maine
- Matrix multiplication using subarrays?
- Prev by Date: Re: C/C++ speed optimization bible/resources/pointers needed!
- Next by Date: forall and do loop
- Previous by thread: Re: Matrix multiplication using subarrays?
- Next by thread: Re: C/C++ speed optimization bible/resources/pointers needed!
- Index(es):