Skip to content

Commit

Permalink
more strided -> abstract vec (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamed82008 authored and ararslan committed Apr 22, 2019
1 parent 3c74b56 commit ed4cef1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scalmat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ end

### quadratic forms

quad(a::ScalMat, x::StridedVector) = sum(abs2, x) * a.value
invquad(a::ScalMat, x::StridedVector) = sum(abs2, x) * a.inv_value
quad(a::ScalMat, x::AbstractVector) = sum(abs2, x) * a.value
invquad(a::ScalMat, x::AbstractVector) = sum(abs2, x) * a.inv_value

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

0 comments on commit ed4cef1

Please sign in to comment.