From: Uno on
On 7/9/2010 2:46 PM, Richard Maine wrote:
> Uno<merrilljensen(a)q.com> wrote:

> Often, even usually, but not always. If that were always the case, then
> the committee wouldn't have gone to the bother of defining C_float and
> C_double. Since those exist specifically for the purpose, why not use
> them and be always right instead of avoiding them and being sometimes
> wrong? It isn't as though there is any big difficulty in using them.
>

Ok, thx Richard, that sounds easy enough when you say it like that. I'm
still pretty wobbly in deciding what gets declared and where (and why).

Is it
a) necessary
b) prudent
c) more legible
d) more reusable
e) wasted effort
to have a subroutine like pass if you have a C caller and wanted to use
LAPACK's eigenvalue capability?
--
Uno
From: Richard Maine on
Uno <merrilljensen(a)q.com> wrote:

> On 7/9/2010 2:46 PM, Richard Maine wrote:
> > Uno<merrilljensen(a)q.com> wrote:
>
> > Often, even usually, but not always. If that were always the case, then
> > the committee wouldn't have gone to the bother of defining C_float and
> > C_double. Since those exist specifically for the purpose, why not use
> > them and be always right instead of avoiding them and being sometimes
> > wrong? It isn't as though there is any big difficulty in using them.
> >
> Ok, thx Richard, that sounds easy enough when you say it like that. I'm
> still pretty wobbly in deciding what gets declared and where (and why).
>
> Is it
> a) necessary
> b) prudent
> c) more legible
> d) more reusable
> e) wasted effort
> to have a subroutine like pass if you have a C caller and wanted to use
> LAPACK's eigenvalue capability?

I don't understand the question. I know of no subroutine "pass". The
"pass" in the prior code in this thread is not a subroutine. And I don't
see any particular relevance of that structure to LAPACK.

For this thread, I think I'll just stick to answering the simple factual
ones such as the one I did (on Fortran real/double vs C float/double)
and let other people pick up the other bits.

--
Richard Maine | Good judgment comes from experience;
email: last name at domain . net | experience comes from bad judgment.
domain: summertriangle | -- Mark Twain
First  |  Prev  | 
Pages: 1 2 3 4
Prev: non printing characters
Next: Fortran problem