Closed adi-lb-phoenix closed 3 months ago
Solved it by changing the loop in define (mat-cons) from
(for (((set n 0) (lt n len)) (set n (add n 1)) )
to
(for ( (set n 0) (lt n len) (set n (add n 1) ))
The parenthesis were not in order. As all the conditions that lets a for loop operate must be within a single parenthesis ex for ( conditions )
Command executed :
This is the code that was written in c-lisp (matrix_multiplication.sexp) :
Output received :