Skip to content
Discussion options

You must be logged in to vote

This will transform data into an array of arrays, which can then be spread into the matrix where each array is its own line.

#let data = ((1,2), (3,4), (5,6))
#let m-data = data.map(x => ($W_(#x.at(0)#x.at(1))$,))
#let matrix = math.mat(delim: "[", ..m-data)

$ #matrix $

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@psads-git
Comment options

Answer selected by psads-git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants