You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running CL-USER> (magicl:from-array (make-array '(3) :initial-contents '(3d0 3d0 3d0)) '(3))
I get an error of no compatible tensor constructor for type T
This is because FROM-ARRAY by default specializes the tensor on the ARRAY-ELEMENT-TYPE of the input array when TYPE is not specified. This should be changed to inspect the first element in the case that ARRAY-ELEMENT-TYPE is T.
The text was updated successfully, but these errors were encountered:
I have been encountering this error on the current master branch regardless of the dimensions of the array, including if it is a simple vector. from-list works fine, however.
(if relevant, I'm on a windows computer with SBCL)
When running
CL-USER> (magicl:from-array (make-array '(3) :initial-contents '(3d0 3d0 3d0)) '(3))
I get an error of
no compatible tensor constructor for type T
This is because
FROM-ARRAY
by default specializes the tensor on theARRAY-ELEMENT-TYPE
of the input array whenTYPE
is not specified. This should be changed to inspect the first element in the case thatARRAY-ELEMENT-TYPE
isT
.The text was updated successfully, but these errors were encountered: