Hi to the developers,
It would be convenient to have built-in the max or min of an array and a real number, which means taking the max or min in each entry
real[int] aa(nn),res(nn);
real rr;
res=max(aa,rr);
would give res(i)=max(aa(i),rr)
This would simplify and fasten computations, avoiding to make explicit loops.
Then also useful would be the max (resp min) of two arrays of same length
real[int] aa(nn),bb(nn),res(nn);
res=max(aa,bb);
would do res(i)=max(aa(i),bb(i))
Thanks for your consideration.