Re: Passing subset of arrays to sub/functions



StoneAgeProgrammer wrote:
>
> Can anybody assist me in how I can call sub/functions with subset of (one
> dimensional) arrays ? I am converting from Fortran with extensive use of this
> functionality.
> In the receiving array index (0) shall refer to first element of subset in
> call.
> When I try I get type mismatch (array vs. singel variable even when passing
> ByRef).

As Bob B notes, VB doesn't support the form. What about leaving it in
Fortran and turning it into a DLL? (My primary use of VB is as the
front end UI for Fortran calculational engines.)
.



Relevant Pages

  • Re: Who uses clapack?
    ... > functions like SUM and MAXVAL and the ability to use array sections ... > drastically change the meaning of a Fortran code. ... >>Have you ever seen those bills for a Fortran compiler for an ... engineering applications in the C and C++ languages. ...
    (comp.lang.fortran)
  • Re: Who uses clapack?
    ... > functions like SUM and MAXVAL and the ability to use array sections ... > drastically change the meaning of a Fortran code. ... >>Have you ever seen those bills for a Fortran compiler for an ... engineering applications in the C and C++ languages. ...
    (sci.math.num-analysis)
  • Re: Benchmarking APL
    ... with that of FORTRAN. ... APL a 400% gain in programming efficiency could be obtained with only ... Another good-for-APL array problem, vector convolution, gave these ... Tomcatv, one of the SPEC benchmarks, is more typical of large array ...
    (comp.lang.apl)
  • Re: newbie: array passing problem
    ... Can X be treated as on dimensional array with 5 elements? ... existing Fortran to make life easier. ... comments and converting it line by line. ... VB requires array dimensions match caller and callee so not, directly, no. ...
    (microsoft.public.vb.general.discussion)
  • Re: Mixing C++/Fortran using Two-Dimensional Array
    ... not a subset as in Fortran. ... if you really need it you can get the effect by an array of TYPE ... the lowest-level base element pointer, which is all you actually need ... macros in C, although it can be difficult to find macro names that are ...
    (comp.lang.fortran)

Loading