[Jprogramming] Arrayfire addon

2022-01-27 Thread Mike Powell
maximize the time spent with the fastest tool available. And that means expressing your ML logic in array terms. J should be good at that. Mike Powell -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Different result of mean for row and column vectors

2020-04-16 Thread Mike Powell
2 3 4 > 2 3 4 > $ +/ foo > 3 4 > > [0]: https://code.jsoftware.com/wiki/Vocabulary/slash > [1]: https://code.jsoftware.com/wiki/Vocabulary/AET#Item > > Cheers, > > Jan-Pieter > > Op wo 15 apr. 2020 om 20:54 schreef Mike Powell : > >> Thomas, >>

Re: [Jprogramming] Different result of mean for row and column vectors

2020-04-15 Thread Mike Powell
Thomas, I J there is not really anything for a column vector. If an object, like your rvec, has a single dimension it’s a vector. If it has two dimensions, as does cvec, it’s a matrix. That’s different from most conventional mathematical notation. When you do the summation with +/ you lose a d

Re: [Jprogramming] Generating "music" in J (or otherwise)

2020-03-30 Thread Mike Powell
> On Mar 30, 2020, at 07:04, Raul Miller wrote: > > Hmm... > > Currently only $854 for a paperback copy of Cybernetic Music from > Amazon ($34 for hardcover, though (and $14 for a paperback copy from > Albris -- plus $4.80 for tax and shipping...)). I think you meant $8.45 for the Amazon pap

Re: [Jprogramming] multiply two multidimensional matrices

2020-02-07 Thread Mike Powell
Ken Iverson dealt with tensor contraction in his APL 79 paper "The Derivative Operator". He suggested an operator (a J adverb) which today can just be an APL function (a J verb). This took an array as its left argument and an even-numbered vector of indices as its right argument. It performed ze

Re: [Jprogramming] 901 and calculus primitives (D. et. al.)

2019-08-27 Thread Mike Powell
Having had a chance to look at math/calculus, I’m pretty sure it’ll meet all of my needs. I’ll keep J807 for reference. Thanks, Mike > On Aug 27, 2019, at 08:56, Eric Iverson wrote: > > 901 and calculus primitives (D. et. al.): > > If you want D. , and it completely meets your requirements

Re: [Jprogramming] Calculus primitives are removed

2019-08-27 Thread Mike Powell
_update/update.sh" > > then on restarting J, I had the updated version. > > Cheers, bob > >> On Aug 27, 2019, at 7:50 AM, Mike Powell wrote: >> >> Platform: Darwin 64 > > ---

Re: [Jprogramming] Calculus primitives are removed

2019-08-27 Thread Mike Powell
64 (arm64-v8a) > Installer: unknown > InstallPath: /storage/emulated/0/Android/data/com.jsoftware.j.android/files > Contact: www.jsoftware.com > > > On Tue, Aug 27, 2019, 10:35 PM Mike Powell wrote: > >> I downloaded j901_mac64.zip from the link >> https://code.jsoftwa

Re: [Jprogramming] Calculus primitives are removed

2019-08-27 Thread Mike Powell
#x27;t support the u. > primitive, which is new. > > Henry Rich > > On 8/27/2019 10:29 AM, Mike Powell wrote: >>> Try >>> >>> load'math/calculus' >>> +: deriv_jcalculus_ 1 >>> >> I have installed J901 beta and start J

Re: [Jprogramming] Calculus primitives are removed

2019-08-27 Thread Mike Powell
> Try > > load'math/calculus' > +: deriv_jcalculus_ 1 > I have installed J901 beta and start J with jqt.app just fine. I’ve used the Package Manager to install math/calculus (three times): Updating server catalog... Done. Installing 1 package of size 6.4 KB Downloading math/calculus... I

Re: [Jprogramming] Calculus primitives are removed

2019-08-26 Thread Mike Powell
”. (I’m certainly not arguing for any further expansion of the capability.) Is there some documentation that describes what’s available in the math/calculus addon? Cheers, Mike Powell > On Aug 26, 2019, at 16:04, Henry Rich wrote: > > J has supported symbolic differentiation and in

Re: [Jprogramming] Video for the Tail Monadic Verb

2019-06-09 Thread Mike Powell
Robert, > I believe that an object with a shape of 0 does present as a blank line. Indeed. I just found it unhelpful in the video to say that something with a shape of zero is a blank line. Perhaps a little picky. As you suggest, better to say “… presents as …”. > For the background shapes, I c

Re: [Jprogramming] Video for the Tail Monadic Verb

2019-06-07 Thread Mike Powell
Bob, Your work is just excellent. I’ll offer two comments: At 3:46 of the Tail video you say: “which gives us a shape of zero which is a blank line”. Not sure about that. I applaud your use of visual coding. Objects or parts of objects are outlined in various ways with various colour fills. I

Re: [Jprogramming] Converting numpy array to J?

2018-12-04 Thread Mike Powell
Devon, If it’s just MNIST data you need, I was able to reformat files from http://yann.lecun.com/exdb/mnist/ quite satisfactorily. I used Dyalog APL and did actually write up the format as a pdf file. The function I used went like this: r←read file;⎕IO;tn;d

[Jprogramming] D. derivative

2018-09-15 Thread Mike Powell
I'm having trouble understanding one of the examples in NuVoc dealing with the derivative conjunction. It comes up in the third of the common uses section. This sets out a verb that calculates 3 values from a list. The verb is f =: (<./ , (+/ % #) , >./)@, and the sample data x =: 2 4 $ 3 1 2