public Matrix GetCol(int k) { Matrix m = new Matrix(rows, 1); for (int i = 0; i < rows; i++) m[i, 0] = mat[i, k]; return m; }