# This is the signum function for numeric arrays.

sign = function (x)
{
  return (x > 0) - (x < 0);
};


syntax highlighted by Code2HTML, v. 0.9.1