Skip to content

Some methods fail on typemin/typemax(::BigInt) #7501

@quinnj

Description

@quinnj

Discussed in #6712
There are a few algorithms in Base that use typemin(T) which fail for BigInt.

findmax{T}(A::AbstractArray{T}, region) at reducedim.jl#288

In  [24]: t = eye(BigInt,100);

In  [25]: findmax(t,2)

Out [25]: ERROR: no method typemin(Type{BigInt})
while loading In[25], in expression starting on line 1
 in findmax at reducedim.jl:288

And

maximum{T}(A::SparseMatrixCSC{T}, region) sparse/sparsematrix.jl#695

cc: @lindahua

Metadata

Metadata

Assignees

No one assigned

    Labels

    bignumsBigInt and BigFloatbugIndicates an unexpected problem or unintended behaviorrationalsThe Rational type and values thereof

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions