Re: Mathlink problem with lists of reals
- To: mathgroup@smc.vnet.net
- Subject: [mg11180] Re: [mg11161] Mathlink problem with lists of reals
- From: jpk@max.mpae.gwdg.de
- Date: Wed, 25 Feb 1998 03:31:50 -0500
Hi,
You gave RealList as head of ns
> :Begin:
> :Function: writesample
> :Pattern: WriteSample[filename_String, ns_RealList] (* !!!! That's Your
problem *)
> :Arguments: {filename, ns}
> :ArgumentTypes: {String, RealList}
> :ReturnType: Integer
> :End:
>
This pattern will never match because Mathematica has no RealList data
type. In fact You must say
:Pattern: WriteSample[filename_String,ns_ /; VectorQ[ns,Real]]
ns has the head List[] and not RealList or what ever. RealList is a
``type'' for mprep -- not for Mathematica.
Hope that helps
Jens