derivative of a linear matrix
matrix
Matrix linearDeriv(Matrix matrix) { return fill(1, matrix.row, matrix.col); }