soegaard2
2020-5-31 09:54:57

I am working on documentation on Flmatrix (matrices containing floating point numbers). Any comments are welcome:

http://soegaard.github.io/tmp/flmatrix/flmatrix.html

The Github repo is here: https://github.com/soegaard/flmatrix


notjack
2020-5-31 09:58:56

huh. it says your library is in… the base package??


notjack
2020-5-31 09:59:02

that’s a new one


soegaard2
2020-5-31 10:02:47

Good catch!


soegaard2
2020-5-31 10:03:21

Just wrote @defmodule[flmatrix] .


notjack
2020-5-31 10:03:33

do you also need an info.rkt file?


soegaard2
2020-5-31 10:03:56

Sure - it hasn’t been submitted to the package server yet.


notjack
2020-5-31 10:04:30

they’re still needed to list dependencies and scribble docs


notjack
2020-5-31 10:04:52

(I was looking for it to see what deps your lib uses)


soegaard2
2020-5-31 10:05:39

Not much. Search for require in flmatrix.rkt


soegaard2
2020-5-31 10:06:45

I think an info file will fix the base problem too.


notjack
2020-5-31 10:07:19

Yup. That’s so weird though. Why does scribble think a non-package module is in the base package?


notjack
2020-5-31 10:07:30

¯_(ツ)_/¯


sorawee
2020-5-31 10:07:33

I’m surprised that these are not linked automatically


sorawee
2020-5-31 10:07:49

notjack
2020-5-31 10:08:01

needs for-label imports, probably


notjack
2020-5-31 10:08:18

(for-label racket/base flmatrix)


soegaard2
2020-5-31 10:08:28

Well, I need to write the documentation for them first…


notjack
2020-5-31 10:08:45

oh, yeah that would probably help


soegaard2
2020-5-31 10:08:57

I started with the Quick Tutorial.


sorawee
2020-5-31 10:09:22

Yeah, but also the link for define. (for-label racket/base) is the thing needed here


soegaard2
2020-5-31 10:09:49

Now I see. I’ll add a for-label.


sorawee
2020-5-31 10:10:09

Is there a conversion function from the current math library?


soegaard2
2020-5-31 10:10:48

No. But that’s good idea.


sorawee
2020-5-31 10:11:33

Nit: nxn/mxn is hard to read IMO


soegaard2
2020-5-31 10:12:08

Noted. I’ll need something better.


notjack
2020-5-31 10:13:49

out of curiosity, is there something like this library but for fixnum matrices?


notjack
2020-5-31 10:14:02

does math have that already?


sorawee
2020-5-31 10:15:01

Nit: grammar error in “Since BLAS and LAPACK exists in multiple versions, so a little care is needed.”


sorawee
2020-5-31 10:15:38

Typo: CLASS -> CBLAS


sorawee
2020-5-31 10:16:18

Hope the Kronecker product is supported :wink:


sorawee
2020-5-31 10:16:53

And speaking of it, I do hope that https://github.com/racket/math/pull/41 will be merged for the next release


soegaard2
2020-5-31 10:17:09

@notjack Not that I know of. math/matrix can handle matrices over fixnums, but there isn’t anything specialized.


soegaard2
2020-5-31 10:17:57

I added kron to flmatrix for you :slightly_smiling_face:


sorawee
2020-5-31 10:18:42

Oohh. I missed it


sorawee
2020-5-31 10:18:47

Thank you!


soegaard2
2020-5-31 10:25:31

Does the division into “levels” make sense?


soegaard2
2020-5-31 10:28:12

“median” should be “medium”


laurent.orseau
2020-5-31 13:07:49

By ‘action’ you mean ‘sequence of stepwise actions’?


laurent.orseau
2020-5-31 13:11:57

Also, branching factor is normally how many stepwise actions you have at each step. So if you always have, say, 4 possible actions at each step, the branching factor is 4, and you have 4^t sequences of actions of length t.

Then you have the effective branching factor which depends on how much you prune during search.


laurent.orseau
2020-5-31 13:12:32

Filtering afterwards doesn’t sound very efficient ;)


samth
2020-5-31 18:56:00

@soegaard2 is probably the best person to review that PR by @sorawee


notjack
2020-5-31 19:15:26

it’s not, but I think there’s some good generalized ways I can do the filtering without needing to know anything domain specific about the state space



notjack
2020-5-31 19:17:51

(I’m trying to make a passable general-purpose planner, not a great Sokoban planner)


notjack
2020-5-31 19:18:24

(and users won’t be expected to provide their own heuristics)


soegaard2
2020-5-31 21:24:52

@samth @sorawee I gave my thumbs-up a while ago. But I forgot to do it in the the Github thread (we talked over Slack).


burnerbrun
2020-6-1 00:20:05

@burnerbrun has joined the channel