minabs(A, dims)

minabs(A, dims)

Compute the minimum absolute values over given dimensions.


julia> minabs([-5, 10, -3, 7])
julia> minabs([3.14, -2.5, 1.8, -4.2])
julia> minabs([0.5, -0.2, 0.1, -0.3])
julia> minabs([-10, -20, -30, -40])

Common mistake example:

julia> minabs([])
ERROR: ArgumentError: minimum of an empty collection

In this example, an empty collection is provided, which leads to an error. Make sure to handle empty collections appropriately to avoid such errors.

See Also

cummax, eigmax, findmax, hist, hist!, hist2d, hist2d!, histrange, indmax, maxabs, maxabs!, maximum!, mean, mean!, median, median!, minabs, minabs!, minimum!, minmax, quantile!, realmax, std, stdm,

User Contributed Notes

Add a Note

The format of note supported is markdown, use triple backtick to start and end a code block.

*Required Field

Checking you are not a robot: