Skip to content

Commit

Permalink
update for 0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
joshday committed Mar 17, 2017
1 parent 816373d commit 08914e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1 +1 @@
julia 0.5-
julia 0.6-
8 changes: 4 additions & 4 deletions src/StandardizedMatrices.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ module StandardizedMatrices
export StandardizedMatrix

#-----------------------------------------------------------------------------# types
typealias AVec{T} AbstractVector{T}
typealias AMat{T} AbstractMatrix{T}
typealias VecF Vector{Float64}
const AVec{T} = AbstractVector{T}
const AMat{T} = AbstractMatrix{T}
const VecF = Vector{Float64}

#----------------------------------------------------------------# StandardizedMatrix
"""
Expand Down Expand Up @@ -35,7 +35,7 @@ StandardizedMatrix(x::AMat) = StandardizedMatrix(x, vec(mean(x, 1)), vec(std(x,
#----------------------------------------------------------------------# Base methods
# http://docs.julialang.org/en/release-0.4/manual/interfaces/#man-interfaces-abstractarray
Base.size(o::StandardizedMatrix) = size(o.data)
Base.linearindexing(o::StandardizedMatrix) = Base.linearindexing(o.data)
Base.IndexStyle(o::StandardizedMatrix) = IndexStyle(o.data)
function Base.getindex(o::StandardizedMatrix, i::Int, j::Int)
v = getindex(o.data, i, j)
return (v - o.μ[j]) * o.σinv[j]
Expand Down

0 comments on commit 08914e4

Please sign in to comment.