Skip to content

Commit

Permalink
no need for numslices
Browse files Browse the repository at this point in the history
  • Loading branch information
lindahua committed Jun 13, 2014
1 parent 338b939 commit 87b8722
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,3 @@ fptype{T<:Union(Float32,Bool,Int8,Uint8,Int16,Uint16)}(::Type{T}) = Float32
fptype{T<:Union(Float64,Int64,Uint64,Int128,Uint128)}(::Type{T}) = Float64
fptype(::Type{Complex64}) = Complex64
fptype(::Type{Complex128}) = Complex128

## auxiliary functions

function numslices(A::AbstractArray, d::Int) # the number of d-dimensional slices
ns = 1
for i=d+1:ndims(A)
ns *= size(A,i)
end
return ns::Int
end

0 comments on commit 87b8722

Please sign in to comment.