!cxPCiPlsXnajakSrqd:matrix.org

Array languages

260 Members
General discussion about APL-like array languages. See #array:matrix.org for other rooms13 Servers

Load older messages


SenderMessageTime
9 Jan 2022
@dzaima:matrix.orgdzaima oh and primes/factorization 18:57:28
@mlochbaum:matrix.orgMarshall

×´ appears twice in primes.bqn, once for finding the size of the sieve's wheel, and once for the totient function.

19:10:29
@_discord_595317473247756288:t2bot.ioAlex Shroyer In probabilities for sure. Also markov chain monte carlo method and some signal processing functions.
Usually multiplying floats in the range from 0 to 1.
19:12:06
@mlochbaum:matrix.orgMarshall

There's a reduction with modular multiplication for computing a modular exponent in Miller-Rabin, but it's still logarithmic in length.

19:12:36
@mlochbaum:matrix.orgMarshall

And that's not the best method either, just easier to write.

19:13:15
@_discord_768182477449592832:t2bot.ioSouth ohhhhh markov chains, now that would be fun in J 19:13:20
@_discord_595317473247756288:t2bot.ioAlex Shroyer unfortunately I've only done it in python so far 19:13:46
@_discord_595317473247756288:t2bot.ioAlex Shroyer but I've used np.prod multiple times (analogous to */) 19:14:11
@mlochbaum:matrix.orgMarshall

Some Markov-related J code here. Only */ is an outer product, not a reduction.

19:18:50
@_discord_272556648134868992:t2bot.ioInternet Janitor I'm specifically interested in the reduction case 20:57:28
10 Jan 2022
@_discord_595317473247756288:t2bot.ioAlex Shroyer Internet Janitor I looked at my github repos, and found several cases of using np.prod:

1. vectorizing an image np.prod((rows, cols))
2. concatenating column vectors of an n by n image np.zeros((n*n, np.prod((rows,cols))))
3. inner loop of Viterbi algorithm, np.prod((a,b,c)) in place of a*b*c
4. calculating probabilities in naive bayes (spam email classifier)
5. naive bayes again, this time in inner loop of iterated conditional mode (ICM) using markov random fields
6. another np.prod((rows, cols)) to vectorize an image
7. used in this code challenge problem (discussed on ArrayCast) https://www.codewars.com/kata/5a905c2157c562994900009d
14:21:16
@_discord_595317473247756288:t2bot.ioAlex Shroyer The only cases which really call for */ are the naive bayes and the "product array" problem. 14:22:38
@_discord_595317473247756288:t2bot.ioAlex Shroyer So 3/7. 14:22:47
@_discord_272556648134868992:t2bot.ioInternet Janitor Alex Shroyer thank you; that's very helpful 15:29:36
@_discord_410034813500915713:t2bot.ioiblis joined the room.21:53:47
11 Jan 2022
@_discord_711561782564749313:t2bot.ioovs joined the room.19:49:03
12 Jan 2022
@wezl_:matrix.orgWezlhttps://en.wikipedia.org/wiki/F-Script_(programming_language)23:01:33
13 Jan 2022
@_discord_773353582430912532:t2bot.iooldmate#9999 changed their profile picture.06:04:43
@_discord_451256785186324500:t2bot.ioBedstorm joined the room.08:26:42
14 Jan 2022
@_discord_353952774897270785:t2bot.iozardoz#4281 changed their profile picture.16:39:21
15 Jan 2022
@_discord_264329328706322432:t2bot.iozindel joined the room.13:04:30
17 Jan 2022
@alexdikelsky:matrix.orgAlex Dikelsky joined the room.16:48:59
20 Jan 2022
@_discord_434478261188427796:t2bot.ioWPR joined the room.11:50:23
@_discord_680765589366636564:t2bot.ioawagga changed their display name from awagga to awagga#8442.16:01:27
@_discord_680765589366636564:t2bot.ioawagga changed their display name from awagga#8442 to awagga.16:01:33
21 Jan 2022
@_discord_353952774897270785:t2bot.iozardoz#4281 changed their profile picture.21:07:02
22 Jan 2022
@_discord_640758321866866699:t2bot.ioarwn changed their display name from arwn to arwn#2335.22:32:46
@_discord_640758321866866699:t2bot.ioarwn changed their display name from arwn#2335 to arwn.22:32:49
24 Jan 2022
@_discord_718934840690606141:t2bot.ioDanielAjoy joined the room.06:48:07
@mondra:matrix.orgmondra joined the room.14:03:33

There are no newer messages yet.


Back to Room List