See the documentation, eg ?isapprox
in the REPL. In particular,
x
andy
may also be arrays of numbers, in which casenorm
defaults to the usual
norm
function in LinearAlgebra, but may be changed by passing anorm::Function
keyword argument. (For numbers,norm
is the same thing asabs
.) Whenx
andy
are arrays, ifnorm(x-y)
is not finite (i.e.±Inf
orNaN
), the comparison falls back to checking whether all elements ofx
andy
are approximately equal component-wise.