DataLab is a compact statistics package aiming at exploratory data analysis. Please visit the DataLab Web site for more information....


Declaration: MatrixSqrt (var Data: TDouble2DArray): integer;
Calculates the square roots of the matrix Data elementwise. Matrix cells which contain negative values are left unprocessed.

The function returns the following error codes:

 0 .... everything OK
-1 ... Data contained at least one negative value