Skip to content

indmax on subarrays returns Tuple instead of Integer #13888

@baggepinnen

Description

@baggepinnen

julia> indmax(sub(randn(10,10),1,:))
(1:10,2)

help?> indmax
search: indmax findmax invdigamma

indmax(itr) -> Integer

Returns the index of the maximum element in a collection.

julia> versioninfo()
Julia Version 0.4.1-pre+16
Commit 2cdef5d (2015-10-24 06:33 UTC)
Platform Info:
System: Linux (x86_64-redhat-linux)
CPU: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.3

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions