quil-lang / magicl

Matrix Algebra proGrams In Common Lisp.
BSD 3-Clause "New" or "Revised" License
238 stars 44 forks source link

In function #'row and #'column, we expected result is a vector, but what is actually returned is a matrix. #201

Closed anranyicheng closed 1 year ago

anranyicheng commented 1 year ago

In function #'row and #'column, we expected result is a vector, but what is actually returned is a matrix. Doc row: "Get row vector from a matrix" Doc column: "Get column vector from a matrix" befor:

(row (eye '(3 3)) 0)

get : MAGICL> (row (eye '(3 3)) 0)

<MATRIX/DOUBLE-FLOAT (1x3):

1.000 0.000 0.000>

after:

(row (eye '(3 3)) 0)

get: MAGICL> (row (eye '(3 3)) 0)

<VECTOR/DOUBLE-FLOAT (3):

1.000 0.000 0.000>