Skip to content

Instantly share code, notes, and snippets.

@ihnorton
Last active August 29, 2015 14:17
Show Gist options
  • Save ihnorton/c7c959285a4fcecc2c23 to your computer and use it in GitHub Desktop.
Save ihnorton/c7c959285a4fcecc2c23 to your computer and use it in GitHub Desktop.
ccall gemv example
A = [1.0 0.0; 0.0 1.0]; lda = 2; X = [ 1.0 1.0 ]; incx = 1;
beta = 0.0; Y = [0.0 0.0]; incy=1
trans = 'N'; m = 2; n = 2; alpha = 1.0;
ccall((:dgemv64_, "libopenblas"), cdecl, Void,
(Ptr{Uint8}, Ptr{Int}, Ptr{Int},
Ptr{Float64}, Ptr{Float64}, Ptr{Int}, Ptr{Float64},
Ptr{Int},
Ptr{Float64}, Ptr{Float64}, Ptr{Int}),
&trans, &m, &n, &alpha, A, &lda, X, &incx, &beta, Y, &incy)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment