On Tuesday 04 March 2003 18:19, Aleksandar Donev wrote:
> Hello,
>
> I am interested in experiences about typical compiler handling of
> something like:
>
> REAL, DIMENSION(3,3) :: A, B, C ! Dimension is known and small, 2 or 3 or 4
> C=MATMUL(A,B)
>
> or something more complex like:
> C=MATMUL(A,MATMUL(B,TRANSPOSE(A)))
>
> Can I expect the compiler to inline these for small matrices or do some
> other optimization, or should I write my own macros to do the job?
>
> Thanks,
> Aleksandar
Yes, inline expansion should be expected from commercial compilers. CVF was
among the first to do this well for IA32. ifc began to inline MATMUL() very
recently.
--
Tim Prince
|