Hi all,
I am trying to modify elements in a matrix that I created with (def the-matrix (matrix 1000 3)) .
I know that I can do the most operations with ($= the-matrix operator other-matrix).
The problem is that I have a seq of elements that corresponds to the matrix but can't figure out how to loop and add from the seq.
I have tried with (for [x seq] ($= the-matrix + x)) but it keeps freezing my repl.
So it looks like this but with fewer elements in the colllections.
matrix = [0.0 0.0 0.0]
seq = (23.33 333.3 9898.0)
How can I put the values from the sequence into the matrix??
Thanks,