Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-pcd!hplsla!jima From: jima@hplsla.HP.COM (Jim Adcock) Newsgroups: comp.lang.c++ Subject: Re: ?-tion on sizeof classes Message-ID: <6590155@hplsla.HP.COM> Date: 19 Jun 89 16:05:02 GMT References: <2425@blake.acs.washington.edu> Organization: HP Lake Stevens, WA Lines: 11 > The reason I ask is that it would sure be nice if I could assume > sizeof(Complex) == 2*sizeof(double) > because this is what a LOT of FORTRAN routines assume. FFT > routines, for example, routinely treat an N point complex vector as > a 2N real vector. I suspect that most machines will find C++ and FORTRAN complex numbers compatible for equivalent precisions. Using FORTRAN matrix routines might be more difficult -- but it shouldn't be hard to write a wrapper class with most of its stuff in-line. Perhaps someone is already trying this?