Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: identifying strings that differ on one or two letters


From   Julian Reif <[email protected]>
To   [email protected]
Subject   Re: st: identifying strings that differ on one or two letters
Date   Sun, 21 Nov 2010 23:29:43 -0600

I did write an earlier version of -strgroup- in Mata a few years ago but it was much too slow. The current C version makes use of bit shifting and few other tricks that I'm not sure can be easily ported over to Mata. 

Julian

On Nov 21, 2010, at 8:28 PM, Joseph Coveney wrote:

> Julian Reif wrote:
> 
> Unfortunately, as Nick pointed out, your platform is currently not supported by
> -strgroup-. This is because the nature of plugins requires that I recompile them
> for all possible platforms in order to use them on that platform.  The only way
> I know how to do this is to actually obtain access to the platform in question,
> install a gcc-compliant compiler if necessary (Linux and Mac OS's tend to
> include have these by default while Windows does not), and then recompile the
> code.  I do not have access to your platform; thus I cannot compile my plugin
> for it.  If anybody knows an easier way to do this, please share.
> 
> Alternatively, if somebody has access to Dalhia's platform and is willing to
> compile the plugin for her, I am happy to send my C code to him or her and then
> upload the compiled plugin file to the SSC archive.
> 
> --------------------------------------------------------------------------------
> 
> Any chance that the C code could be translated into Mata code?  It's not 
> necessarily difficult:  a couple of years ago, I needed to convert the C source
> code for one of Takuya Ooura's double-exponential quadrature programs* into 
> Mata.  It took just a handful of ASCII character changes.  I'm not sure what
> kind of hit it would take in efficiency, but it solves the platform-dependence 
> problem.
> 
> Joseph Coveney
> 
> * www.kurims.kyoto-u.ac.jp/~ooura/intde.html
>  www.kurims.kyoto-u.ac.jp/en/list/OOURA,%20Takuya.html
> 
> 
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index