-
Consider the following code:
My goal is to create a vertical vector, by using the semi-colon. However, the semi-colon is printed out and no new row is added to the matrix: Could you please help this |
Beta Was this translation helpful? Give feedback.
Answered by
xkevio
Dec 15, 2023
Replies: 1 comment 1 reply
-
This will transform #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 $ |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
psads-git
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This will transform
data
into an array of arrays, which can then be spread into the matrix where each array is its own line.