Skip to content

Commit a43d151

Browse files
committed
Add wrappers of routines not in Reference-LAPACK
1 parent cb62e00 commit a43d151

File tree

1 file changed

+61
-1
lines changed

1 file changed

+61
-1
lines changed

src/libblas.jl

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,63 @@
1+
function ssymv(uplo, n, alpha, A, lda, px, stx, beta, py, sty)
2+
return ccall((@blasfunc(ssymv_), libblastrampoline), Cvoid,
3+
(Ref{UInt8}, Ref{BlasInt}, Ref{Float32}, Ptr{Float32},
4+
Ref{BlasInt}, Ptr{Float32}, Ref{BlasInt}, Ref{Float32},
5+
Ptr{Float32}, Ref{BlasInt}),
6+
uplo, n, alpha, A, lda, px, stx, beta, py, sty)
7+
end
8+
9+
function dsymv(uplo, n, alpha, A, lda, px, stx, beta, py, sty)
10+
return ccall((@blasfunc(dsymv_), libblastrampoline), Cvoid,
11+
(Ref{UInt8}, Ref{BlasInt}, RefFloat64}, Ptr{Float64},
12+
Ref{BlasInt}, Ptr{Float64}, Ref{BlasInt}, Ref{Float64},
13+
Ptr{Float64}, Ref{BlasInt}),
14+
uplo, n, alpha, A, lda, px, stx, beta, py, sty)
15+
end
16+
17+
function csymv(uplo, n, alpha, A, lda, px, stx, beta, py, sty)
18+
return ccall((@blasfunc(csymv_), libblastrampoline), Cvoid,
19+
(Ref{UInt8}, Ref{BlasInt}, Ref{ComplexF32}, Ptr{ComplexF32},
20+
Ref{BlasInt}, Ptr{ComplexF32}, Ref{BlasInt}, Ref{ComplexF32},
21+
Ptr{ComplexF32}, Ref{BlasInt}),
22+
uplo, n, alpha, A, lda, px, stx, beta, py, sty)
23+
end
24+
25+
function zsymv(uplo, n, alpha, A, lda, px, stx, beta, py, sty)
26+
return ccall((@blasfunc(zsymv_), libblastrampoline), Cvoid,
27+
(Ref{UInt8}, Ref{BlasInt}, Ref{ComplexF64}, Ptr{ComplexF64},
28+
Ref{BlasInt}, Ptr{ComplexF64}, Ref{BlasInt}, Ref{ComplexF64},
29+
Ptr{ComplexF64}, Ref{BlasInt}),
30+
uplo, n, alpha, A, lda, px, stx, beta, py, sty)
31+
end
32+
33+
function ssyr(uplo, n, a, x, stx, A, lda)
34+
return ccall((@blasfunc(ssyr_), libblastrampoline), Cvoid,
35+
(Ref{UInt8}, Ref{BlasInt}, Ref{Float32}, Ptr{Float32},
36+
Ref{BlasInt}, Ptr{Float32}, Ref{BlasInt}),
37+
uplo, n, a, x, stx, A, lda)
38+
end
39+
40+
function dsyr(uplo, n, a, x, stx, A, lda)
41+
return ccall((@blasfunc(ssyr_), libblastrampoline), Cvoid,
42+
(Ref{UInt8}, Ref{BlasInt}, Ref{Float64}, Ptr{Float64},
43+
Ref{BlasInt}, Ptr{Float64}, Ref{BlasInt}),
44+
uplo, n, a, x, stx, A, lda)
45+
end
46+
47+
function csyr(uplo, n, a, x, stx, A, lda)
48+
return ccall((@blasfunc(ssyr_), libblastrampoline), Cvoid,
49+
(Ref{UInt8}, Ref{BlasInt}, Ref{ComplexF32}, Ptr{ComplexF32},
50+
Ref{BlasInt}, Ptr{ComplexF32}, Ref{BlasInt}),
51+
uplo, n, a, x, stx, A, lda)
52+
end
53+
54+
function zsyr(uplo, n, a, x, stx, A, lda)
55+
return ccall((@blasfunc(ssyr_), libblastrampoline), Cvoid,
56+
(Ref{UInt8}, Ref{BlasInt}, Ref{ComplexF64}, Ptr{ComplexF64},
57+
Ref{BlasInt}, Ptr{ComplexF64}, Ref{BlasInt}),
58+
uplo, n, a, x, stx, A, lda)
59+
end
60+
161
function drot(n, dx, incx, dy, incy, c, s)
262
return ccall((@blasfunc(drot_), libblastrampoline), Cvoid,
363
(Ref{BlasInt}, Ptr{Float64}, Ref{BlasInt}, Ptr{Float64}, Ref{BlasInt},
@@ -33,7 +93,7 @@ function zrot(n, zx, incx, zy, incy, c, s)
3393
n, zx, incx, zy, incy, c, s)
3494
end
3595

36-
function crot(n, dx, incx, dy, incy, c, s)
96+
function crot(n, cx, incx, cy, incy, c, s)
3797
return ccall((@blasfunc(crot_), libblastrampoline), Cvoid,
3898
(Ref{BlasInt}, Ptr{ComplexF32}, Ref{BlasInt}, Ptr{ComplexF32}, Ref{BlasInt},
3999
Ref{Float32}, Ref{ComplexF32}),

0 commit comments

Comments
 (0)