From: John C. <co...@cc...> - 2008-08-30 21:52:23
|
Albert Graef scripsit: > Is it true that complex double is just two doubles, similar for complex > float? That would make things much easier, because a complex matrix > could be represented internally as a double matrix with twice the number > of columns. I guess that ISO C99 implementations are free to choose the > internal representation, though. Probably so, but I can't imagine any C compiler choosing a representation other than two consecutive floats, because Fortran requires that a COMPLEX must take up the same space as two REALs. Nobody is going to implement complex numbers in C in a way that's incompatible with Fortran (other than C being row-major rather than column-major). -- There are three kinds of people in the world: John Cowan those who can count, co...@cc... and those who can't. |