Hi Dennis,
as can be seen from the reult below a FN loop is sub-optimal, which is why I
was asking; and thanks your suggestion is good.
The results I got from building an array of dimension 63998 are below. That
number seems odd, but using the matbuild method there's a limitation of
64000 elements (which may or may not be reached - but it is a limit).
Also, the CATS method comes close to fastest but required an intermediate
step to convert the values in the seed array to nulls.
I can send the test program to anyone who's interested.

str() method            0.0091          *:: str(val:@vm,count(seed,@vm)):val
cats method             0.0134          *:: cats(fields(seed,@tm,2),reuse(val))
matbuild method 0.03            *:: matbuild result from dimar using @vm
f/n loop method     19.5695             *:: for 1 to maxseed ; ins val before
result<1,1> ; next

Cheers,
Stuart


> Subject: RE: [U2] Propagating an array
> well, if you want to be truly esoteric,
>
> dim array( {big enough to cater for WorkCount} )
> matparse array from WORK<1> using @VM
> mat array = WorkValue
> matbuild Work2 from array using @VM










**********************************************************************
This email message and any files transmitted with it are confidential
and intended solely for the use of addressed recipient(s). If you have 
received this email in error please notify the Spotless IS Support Centre (61 3 9269 
7555) immediately who will advise further action.

This footnote also confirms that this email message has been scanned
for the presence of computer viruses.
**********************************************************************
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to