fix blas library load for unix. fix reference to old empty-vector word in matrices
parent
eec1758fd6
commit
954737dfeb
|
@ -2,9 +2,9 @@ USING: alien alien.c-types alien.syntax kernel system combinators ;
|
|||
IN: math.blas.cblas
|
||||
|
||||
<< "cblas" {
|
||||
{ [ os macosx? ] [ "libcblas.dylib" "cdecl" add-library ] }
|
||||
{ [ os windows? ] [ "cblas.dll" "cdecl" add-library ] }
|
||||
[ drop "libcblas.so" "cdecl" add-library ]
|
||||
{ [ os macosx? ] [ "libblas.dylib" "cdecl" add-library ] }
|
||||
{ [ os windows? ] [ "blas.dll" "cdecl" add-library ] }
|
||||
[ "libblas.so" "cdecl" add-library ]
|
||||
} cond >>
|
||||
|
||||
LIBRARY: cblas
|
||||
|
|
|
@ -215,7 +215,7 @@ syntax:M: blas-matrix-base clone
|
|||
clone n*M.M+n*M-in-place ;
|
||||
|
||||
: n*M.V ( alpha A x -- alpha*A.x )
|
||||
1.0 2over [ Mheight ] dip empty-vector
|
||||
1.0 2over [ Mheight ] dip <empty-vector>
|
||||
n*M.V+n*V-in-place ; inline
|
||||
|
||||
: M.V ( A x -- A.x )
|
||||
|
|
Loading…
Reference in New Issue