Re: [Jprogramming] Creating a distance matrix.

2019-10-22 Thread 'Jim Russell' via Programming
Wow! > On Oct 22, 2019, at 4:00 PM, Raul Miller wrote: > > Probably worth noting also that I could have instead said: > > D=: (+|:)>0;1.5;2 1.5;2.5 2 1.5 0 > > This is actually one character shorter than my previous expression... > > Thanks, > > -- > Raul > >> On Tue, Oct 22, 2019 at 2

[Jprogramming] 901-beta-n

2019-10-22 Thread Eric Iverson
901-beta-n is available. This fixes a few bugs found in beta-l and beta-m. -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Creating a distance matrix.

2019-10-22 Thread Raul Miller
Probably worth noting also that I could have instead said: D=: (+|:)>0;1.5;2 1.5;2.5 2 1.5 0 This is actually one character shorter than my previous expression... Thanks, -- Raul On Tue, Oct 22, 2019 at 2:29 PM wrote: > > From: Raul Miller > Date: Tue, 22 Oct 2019 13:29:19 -0400 > >

[Jprogramming] Unicode code point conversion verbs

2019-10-22 Thread 'robert therriault' via Programming
Hi all, I updated the wiki to include some verbs that will take literal, unicode, unicode4 or integer types (including 1 and 0 as binary) and return valid Unicode code point. https://code.jsoftware.com/wiki/Vocabulary/UnicodeCodePoint#Verbs_to_convert_literal.2C_unicode_and_unicode4_encodings_

Re: [Jprogramming] Creating a distance matrix.

2019-10-22 Thread peter
From: Raul Miller Date: Tue, 22 Oct 2019 13:29:19 -0400 > What do you mean by "more efficient"? (What resource is constrained?) I listed all 16 elements of the matrix. It being symmetrical with 0s on the diagonal, only 6 elements should be needed. Rather than "more efficient", better word

Re: [Jprogramming] Creating a distance matrix.

2019-10-22 Thread 'Mike Day' via Programming
As Raul says, it’s not clear what you’re after. An interesting property is shown by: : @ -:)d v (<"1 ix) } D ) Yes, we could avoid doubly setting the main diagonal, and could just set the upper or lower triangle followed by adding the transpose, at the expense of complicating the code. The

Re: [Jprogramming] Creating a distance matrix.

2019-10-22 Thread Raul Miller
This seems like an underspecified problem. What do you mean by "more efficient"? (What resource is constrained?) For example, are you looking for code golf [source code is the limiting resource] on this specific matrix? Are you trying to save memory? Are you trying to save time? These days, a m

[Jprogramming] Creating a distance matrix.

2019-10-22 Thread peter
Given a fully connected graph of n nodes. The nodes are assigned indices i.n arbitrarily. D is a distance matrix. Eg. n =. 4 ] D =. 4 4 $ 0 1.5 2 2.5 1.5 0 1.5 2 2 1.5 0 1.5 2.5 2 1.5 0 I'm not claiming this matrix fits in Euclidean geometry. Nevertheless each element on the diagonal is 0 and

Re: [Jprogramming] " ... newer version of the base library."

2019-10-22 Thread peter
From: chris burke Date: Tue, 22 Oct 2019 07:20:32 -0700 > The message is confusing, and I will fix it for 901. > > install'all' should get the latest library, but you won't see that until > you restart the session, so it is comparing the latest library with the > current session library. > >

Re: [Jprogramming] " ... newer version of the base library."

2019-10-22 Thread 'robert therriault' via Programming
Hi Peter, In my experience, if you do an 'update all' you need to do a restart to get the base library accepted as updated. Cheers, bob > On Oct 22, 2019, at 7:11 AM, pe...@easthope.ca wrote: > > Hi, > > I've installed j807_i386.deb in Debian 10. > https://code.jsoftware.com/wiki/Guides/Getti

Re: [Jprogramming] " ... newer version of the base library."

2019-10-22 Thread chris burke
The message is confusing, and I will fix it for 901. install'all' should get the latest library, but you won't see that until you restart the session, so it is comparing the latest library with the current session library. Enter JVERSION to see your current system. Restart J and enter JVERSION ag

[Jprogramming] " ... newer version of the base library."

2019-10-22 Thread peter
Hi, I've installed j807_i386.deb in Debian 10. https://code.jsoftware.com/wiki/Guides/Getting_Started has advice "It's a good idea to install all the addons - they provide many useful functions and don't take much space." Therefore I did "install 'all' ". That completes with these notices Add