Re: [Jprogramming] finding matching sets

2014-07-28 Thread Joe Bogner
Pascal, Thank you for the additional examples. Here are some timings on the same data timespacex '(~.{."1 t2) ({."1 wrote: > Thanks for letting us know, Joe. > > You might see a big improvement with unboxed symbols taken just before > comparisons as in: > > (~.{."1 t) ({."1 > or > > lr =: 3 :

Re: [Jprogramming] finding matching sets

2014-07-28 Thread Joe Bogner
On Sun, Jul 27, 2014 at 12:33 PM, greg heil wrote: >>What i meant by "just not box them separately in the first place" was, eg, > >ax=:{. ; }. >fsp=:' ' i.~ ] >tc =: (ax~fsp) ;._2 (0 : 0) > c1 p1 0.2 > c1 p2 0.35 > c2 p1 0.2 > c2 p2 0.35 > c3 p1 0.2 > c3 p2 0.35 > c3 p3 0.45 > ) > > Th

[Jprogramming] Problems with Rserve addon

2014-07-28 Thread rlvaughan
Here's an example: We define a function to run a simple GLM in R. RserveExample=: 3 : 0 rdcmd_rserve_ 'x<-c(1,2,3,4,5)' (1!:2) 2 rdcmd_rserve_ 'y<-c(8,21,31,38,50)' (1!:2) 2 rdcmd_rserve_ 'modelfit<-glm(y~x, family=gaussian(link=identity))' (1!:2) 2 if. y do. rdget_rserve_ 'capture.output(

[Jprogramming] small bug

2014-07-28 Thread 'Dan Baronet' via Programming
When I try a new project on Windows the path offered for the new project is ~C:/Users/DanB2/j64-802-user/ the ~ should not be there -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] small bug

2014-07-28 Thread bill lam
That should have been expanded from ~user. What the values of the nouns SystemFolders_j_ and UserFolders_j_ ? Please also post your JVERSION . Thanks. On Jul 28, 2014 7:56 AM, "'Dan Baronet' via Programming" < [email protected]> wrote: > When I try a new project on Windows the path offere

Re: [Jprogramming] Problems with Rserve addon

2014-07-28 Thread chris burke
This example works fine for me, see session below. Tested on J802, linux64, R 3.02. What versions of R and J are you running, and what OS? Chris load '~addons/stats/r/rserve.ijs' RserveExample=: 3 : 0 rdcmd_rserve_ 'x<-c(1,2,3,4,5)' (1!:2) 2 rdcmd_rserve_ 'y<-c(8,21,31,38,50)' (1!:2) 2

[Jprogramming] Problems with Rserve addon

2014-07-28 Thread rlvaughan
I'm running both J801 (Jqt64) and 64-bit J602, on 64-bit Windows 7. If I could get the debugger to work with J801 I would use it all the time. That's another issue I could use help with! It just doesn't work at all, or perhaps I simply don't know how to invoke it properly. The new editor works

Re: [Jprogramming] Problems with Rserve addon

2014-07-28 Thread bill lam
Please also give us the version of R. On Jul 28, 2014 11:17 AM, wrote: > I'm running both J801 (Jqt64) and 64-bit J602, on 64-bit Windows 7. > > If I could get the debugger to work with J801 I would use it all the time. > That's another issue I could use help with! It just doesn't work at all, or

[Jprogramming] Problems with Rserve addon

2014-07-28 Thread rlvaughan
Ok. I downloaded J8.02, installed ALL packages, and ran my little Rserve example program. It (mis)behaved exactly as before. Then I uninstalled R, restarted my computer, deleted the R folder from C:/Program Files, downloaded R, and installed it from scratch. Now my example runs just as it shou

Re: [Jprogramming] Problems with Rserve addon

2014-07-28 Thread chris burke
Good news, thanks. > The lesson is to remove all of R before installing the new version. Do you mean installing a new version of J? I really don't think this is necessary. Installing or uninstalling J does not touch anything related to R. Most likely something went wrong with your R installation

Re: [Jprogramming] Problems with Rserve addon

2014-07-28 Thread 'Pascal Jasmin' via Programming
the debugger is still in JHS, you may find these utilities useful.  They need to be in z in order to be accessible while debugging. dbg 1 is on, dbg 0 is off, and switches back to base locale. dbgs '' gives a stack trace dbgss 0 1 2 3 will provide the local variables for the top 4 procedures o

Re: [Jprogramming] Problems with Rserve addon

2014-07-28 Thread bill lam
the debug package should work in all environments including jqt, jhs and jconsole. load'debug' NB. this may not be needed dbr 1 NB. start debuger when it enters suspended mode, use various db... verbs, eg dbctx'' NB. show the context the debugger is still in JHS, you may find these utilities us

[Jprogramming] ^ and imaginary numbers

2014-07-28 Thread 'Pascal Jasmin' via Programming
   exp =: ^ ^:]"0    100 1 2 exp 1 0 0 100 0 0    100 1 2 ^ 1 0 0 100 1 1 both behave as I wish when I want this    100 1 2 ^ 1 1 _2 100 1 0.25 I get with exp, this    100 1 2 exp 1 1 _2 100 1 2.21455j1.95289 is there a way to define exp such that it does not return imaginary number

Re: [Jprogramming] ^ and imaginary numbers

2014-07-28 Thread 'Pascal Jasmin' via Programming
sorry for noise,  original definition provided inverses on negative y. exp =: (^^:(0~:]))"0 - Original Message - From: 'Pascal Jasmin' via Programming To: Programming forum Cc: Sent: Monday, July 28, 2014 3:50:49 PM Subject: [Jprogramming] ^ and imaginary numbers    exp =: ^ ^:]"0  

Re: [Jprogramming] ^ and imaginary numbers

2014-07-28 Thread Brian Schott
Is this what you want? exp =: ^ ^:(|@])"0 On Mon, Jul 28, 2014 at 3:56 PM, 'Pascal Jasmin' via Programming < [email protected]> wrote: > sorry for noise, original definition provided inverses on negative y. > > exp =: (^^:(0~:]))"0 > > > - Original Message - > From: 'Pascal Jas

Re: [Jprogramming] ^ and imaginary numbers

2014-07-28 Thread Brian Schott
Nevermind, I see you answered yourself. -- (B=) -- For information about J forums see http://www.jsoftware.com/forums.htm

[Jprogramming] J conference 2014

2014-07-28 Thread Eric Iverson
The conference was a success. Speakers: please provide materials as appropriate to JoJ. After a period of recovery (it is a hard work), I assume we'll start thinking about what to do better and different in 2016. -- For informati

Re: [Jprogramming] J conference 2014

2014-07-28 Thread Anssi Seppälä
Thanks for the great conference. The variety of presentations is important. Everybody using J has a interesting story to tell. Those who had not presentation would be potential for the next conference. Anssi -Original Message- From: [email protected] [mailto:prog