RobinHankin / spray

sparse arrays and fast multivariate polynomials
https://robinhankin.github.io/spray/
2 stars 2 forks source link

perm_matrix() does not respect perm_set option #36

Closed RobinHankin closed 1 year ago

RobinHankin commented 1 year ago

Look:

> options("perm_set" = letters)
> perm_matrix(rperm(1,9)) -> M
> M
  1 2 3 4 5 6 7 8 9
1 0 0 0 0 1 0 0 0 0
2 0 0 0 0 0 0 0 0 1
3 0 0 0 1 0 0 0 0 0
4 1 0 0 0 0 0 0 0 0
5 0 0 0 0 0 1 0 0 0
6 0 0 0 0 0 0 0 1 0
7 0 0 1 0 0 0 0 0 0
8 0 0 0 0 0 0 1 0 0
9 0 1 0 0 0 0 0 0 0
> 

Above, row names and column names are integers 1-9 and should be letters a-i.

RobinHankin commented 1 year ago

this should be on the permutations repo, not here.

RobinHankin commented 1 year ago

and it's fixed there anyway.