Closed pkvov closed 5 years ago
repeat a vector as matrix
(let [x (dv [1 2 3] a (create-matrix 3 x)] a)
output a => [ [1 2 3] [1 2 3] [1 2 3]]
This question has been answered in my recent Deep Learning from Scratch to GPU article.
repeat a vector as matrix
(let [x (dv [1 2 3] a (create-matrix 3 x)] a)
output a => [ [1 2 3] [1 2 3] [1 2 3]]