示例#1
0
 public static CMatrixRMaj checkZeros(CMatrixRMaj A, int numRows, int numCols)
 {
     if (A == null)
     {
         return(new CMatrixRMaj(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);
 }