Exemple #1
0
 public static ZMatrixRMaj checkZeros(ZMatrixRMaj A, int numRows, int numCols)
 {
     if (A == null)
     {
         return(new ZMatrixRMaj(numRows, numCols));
     }
     else if (numRows != A.numRows || numCols != A.numCols)
     {
         throw new ArgumentException("Input is not " + numRows + " x " + numCols + " matrix");
     }
     else
     {
         A.zero();
     }
     return(A);
 }