Skip to content

Instantly share code, notes, and snippets.

@simonster
Created June 17, 2014 22:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simonster/7d1b7259327c71124bf4 to your computer and use it in GitHub Desktop.
Save simonster/7d1b7259327c71124bf4 to your computer and use it in GitHub Desktop.
julia> (+)(A::AbstractArray{Bool},x::Bool) = A .+ x
Warning: New definition
+(AbstractArray{Bool,N},Bool) at none:1
is ambiguous with:
+(Range{T},Real) at range.jl:428.
To fix, define
+(Range{Bool},Bool)
before the new definition.
Warning: New definition
+(AbstractArray{Bool,N},Bool) at none:1
is ambiguous with:
+(SparseMatrixCSC{Tv,Ti<:Integer},Union(Array{T,N},Number)) at sparse/sparsematrix.jl:604.
To fix, define
+(SparseMatrixCSC{Bool,_<:Ti<:Integer},Bool)
before the new definition.
+ (generic function with 128 methods)
julia> (+)(x::Bool,A::AbstractArray{Bool}) = x .+ A
Warning: New definition
+(Bool,AbstractArray{Bool,N}) at none:1
is ambiguous with:
+(Real,UnitRange{T<:Real}) at range.jl:424.
To fix, define
+(Bool,UnitRange{Bool})
before the new definition.
Warning: New definition
+(Bool,AbstractArray{Bool,N}) at none:1
is ambiguous with:
+(Real,Range{T}) at range.jl:425.
To fix, define
+(Bool,Range{Bool})
before the new definition.
+ (generic function with 129 methods)
julia> (-)(A::AbstractArray{Bool},x::Bool) = A .- x
Warning: New definition
-(AbstractArray{Bool,N},Bool) at none:1
is ambiguous with:
-(UnitRange{T<:Real},Real) at range.jl:433.
To fix, define
-(UnitRange{Bool},Bool)
before the new definition.
Warning: New definition
-(AbstractArray{Bool,N},Bool) at none:1
is ambiguous with:
-(StepRange{T,S},Real) at range.jl:434.
To fix, define
-(StepRange{Bool,_<:S},Bool)
before the new definition.
Warning: New definition
-(AbstractArray{Bool,N},Bool) at none:1
is ambiguous with:
-(SparseMatrixCSC{Tv,Ti<:Integer},Union(Array{T,N},Number)) at sparse/sparsematrix.jl:607.
To fix, define
-(SparseMatrixCSC{Bool,_<:Ti<:Integer},Bool)
before the new definition.
- (generic function with 143 methods)
julia> (-)(x::Bool,A::AbstractArray{Bool}) = x .- A
Warning: New definition
-(Bool,AbstractArray{Bool,N}) at none:1
is ambiguous with:
-(Union(Array{T,N},Number),SparseMatrixCSC{Tv,Ti<:Integer}) at sparse/sparsematrix.jl:608.
To fix, define
-(Bool,SparseMatrixCSC{Bool,_<:Ti<:Integer})
before the new definition.
Warning: New definition
-(Bool,AbstractArray{Bool,N}) at none:1
is ambiguous with:
-(Real,Range{T}) at range.jl:431.
To fix, define
-(Bool,Range{Bool})
before the new definition.
- (generic function with 144 methods)
julia> (+)(A::AbstractArray,x::Number) = A .+ x
Warning: New definition
+(AbstractArray{T,N},Number) at none:1
is ambiguous with:
+(SparseMatrixCSC{Tv,Ti<:Integer},Union(Array{T,N},Number)) at sparse/sparsematrix.jl:604.
To fix, define
+(SparseMatrixCSC{Tv,Ti<:Integer},Number)
before the new definition.
+ (generic function with 130 methods)
julia> (+)(x::Number,A::AbstractArray) = x .+ A
Warning: New definition
+(Number,AbstractArray{T,N}) at none:1
is ambiguous with:
+(Union(Array{T,N},Number),SparseMatrixCSC{Tv,Ti<:Integer}) at sparse/sparsematrix.jl:605.
To fix, define
+(Number,SparseMatrixCSC{Tv,Ti<:Integer})
before the new definition.
+ (generic function with 131 methods)
julia> (-)(A::AbstractArray,x::Number) = A .- x
Warning: New definition
-(AbstractArray{T,N},Number) at none:1
is ambiguous with:
-(SparseMatrixCSC{Tv,Ti<:Integer},Union(Array{T,N},Number)) at sparse/sparsematrix.jl:607.
To fix, define
-(SparseMatrixCSC{Tv,Ti<:Integer},Number)
before the new definition.
- (generic function with 145 methods)
julia> (-)(x::Number,A::AbstractArray) = x .- A
Warning: New definition
-(Number,AbstractArray{T,N}) at none:1
is ambiguous with:
-(Union(Array{T,N},Number),SparseMatrixCSC{Tv,Ti<:Integer}) at sparse/sparsematrix.jl:608.
To fix, define
-(Number,SparseMatrixCSC{Tv,Ti<:Integer})
before the new definition.
- (generic function with 146 methods)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment