Skip to main content

Timeline for Converting Association to Matrix

Current License: CC BY-SA 4.0

7 events
when toggle format what by license comment
Oct 18, 2021 at 12:37 vote accept sam wolfe
Sep 19, 2021 at 18:00 history tweeted twitter.com/StackMma/status/1439650521384722437
Sep 19, 2021 at 12:50 comment added Roman SparseArray[KeyValueMap[Rule, assoc]] would work too.
Sep 17, 2021 at 20:48 answer added Alan timeline score: 1
Sep 17, 2021 at 19:47 comment added Henrik Schumacher Thinking of it, SparseArray[Keys[assoc] -> Values[assoc], {3, 3}] should perform better for long assiciations.
Sep 17, 2021 at 19:45 comment added Henrik Schumacher Try SparseArray[Normal[assoc]] or (if you know the dimensions in advance) SparseArray[Normal[assoc],{3,3}].
Sep 17, 2021 at 19:41 history asked sam wolfe CC BY-SA 4.0