So, you think if they had faster ways to do something as common as a sum, they would not implement it? Nope, only slow code provided. :)
One minor enhancement. This may be slightly faster than a fragment you have written.
sum(abs(A(:)))/max(abs(B(:)))
I doubt it is much of a speed bump though.
You can look into using tools like your GPU to do some problems faster. (Which needs a separate tool.) Or, if you are doing a lot of these, the parallel computing TB may help. Speed does not come easily, and often, not cheaply.
Better is often to look more carefully at WHY you are doing those computations, and see if there is a better way.