long double precision for complex routines

Post here if you have a question about the installation process

long double precision for complex routines

Postby chientewu » Mon Oct 28, 2013 7:38 pm


I recently need to use ZGETRF and ZGETRS routines with long double precisions for complex numbers. I have successfully installed the LAPACK with ZGETRF and ZGETRS being only double precisions. Could anyone help me to extend these two functions to long double precisions? I use ifort compiler. Thanks a bunch!
Posts: 1
Joined: Mon Oct 28, 2013 7:19 pm

Re: long double precision for complex routines

Postby Julien Langou » Tue Nov 26, 2013 3:51 pm


I do not know how to do the hack you want (using "long double" instead of "double") with a compiler flag. Sorry.

This said, "long double" is not much much longer than "double", so in general you would be better off using "quad". I personally am always disappointed when I promote to "long double".

To use "quad" for ZGETRF and ZGETRS, you can either edit all the routine stack so that the code use "quad". Although this seems scary this is not that bad, I did it a few times. Or you can use a multi precision LAPACK package, for example MPACK. (I never used it.)

LAPACK does not currently support "long double" nor "quad".

Julien Langou
Posts: 820
Joined: Thu Dec 09, 2004 12:32 pm
Location: Denver, CO, USA

Return to Installation

Who is online

Users browsing this forum: No registered users and 1 guest