gfxgfx
 
Please login or register.

Login with username, password and session length
 
gfx gfx
gfx
1519 Posts in 504 Topics by 735 Members - Latest Member: Rosy December 02, 2020, 08:27:47 AM
*
gfx* Home | Help | Search | Login | Register | gfx
gfx
Absoft User Forum  |  Support  |  General  |  MATMUL & COMPLEX*16
gfx
gfxgfx
 

Author Topic: MATMUL & COMPLEX*16  (Read 5057 times)

Denis

  • Newbie
  • *
  • Posts: 6
MATMUL & COMPLEX*16
« on: January 06, 2009, 11:24:36 AM »
Hello,
It seems that MATMUL do not work in double precision. Is it normal?

The compilation of this simple program fails:
Code: [Select]
program test

COMPLEX(KIND=16),DIMENSION(4,4) :: A,B,C

A = MATMUL(B,C)

end program test

I got a unresolved link related to matmul. However, if I change KIND=16 by KIND=8, no problem.
It is a bit annoying.




forumadmin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 306
Re: MATMUL & COMPLEX*16
« Reply #1 on: January 06, 2009, 11:50:48 AM »
Quad precision matmul is missing from the runtime library. It will be addressed in the next service pack. Note that complex(kind=16) is quad precision. Complex(kind=8) is double precision.These declarations are equivalent to complex*32 and complex*16 for quad and double precision, respectively.

Denis

  • Newbie
  • *
  • Posts: 6
Re: MATMUL & COMPLEX*16
« Reply #2 on: January 07, 2009, 10:59:10 AM »
Thank you for your answer.

If I remember well, COMPLEX*16 has a real & imaginary part in REAL*8 format. Am I right ?

Denis

  • Newbie
  • *
  • Posts: 6
Re: MATMUL & COMPLEX*16
« Reply #3 on: January 08, 2009, 10:29:41 AM »
OK, after a quick search on the web, I note that COMPLEX(KIND=16) means that real & imaginary part are REAL(KIND=8). I 've made the confusion with COMPLEX*16 that is equivalent to COMPLEX(KIND=8).

Absoft User Forum  |  Support  |  General  |  MATMUL & COMPLEX*16
 

gfxgfx
gfx gfx
Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!