uncomplicate / neanderthal

Fast Clojure Matrix Library
http://neanderthal.uncomplicate.org
Eclipse Public License 1.0
1.06k stars 56 forks source link

how to repeat a vector as a matrix #60

Closed pkvov closed 5 years ago

pkvov commented 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]]

blueberry commented 5 years ago

This question has been answered in my recent Deep Learning from Scratch to GPU article.