Skip to content

Commit ed4cef1

Browse files
mohdibntarekararslan
authored andcommitted
more strided -> abstract vec (#90)
1 parent 3c74b56 commit ed4cef1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/scalmat.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ end
6161

6262
### quadratic forms
6363

64-
quad(a::ScalMat, x::StridedVector) = sum(abs2, x) * a.value
65-
invquad(a::ScalMat, x::StridedVector) = sum(abs2, x) * a.inv_value
64+
quad(a::ScalMat, x::AbstractVector) = sum(abs2, x) * a.value
65+
invquad(a::ScalMat, x::AbstractVector) = sum(abs2, x) * a.inv_value
6666

6767
quad!(r::AbstractArray, a::ScalMat, x::StridedMatrix) = colwise_sumsq!(r, x, a.value)
6868
invquad!(r::AbstractArray, a::ScalMat, x::StridedMatrix) = colwise_sumsq!(r, x, a.inv_value)

0 commit comments

Comments
 (0)