linearDeriv function

Matrix linearDeriv(
  1. Matrix matrix
)

derivative of a linear matrix

  • matrix The matrix to find the derivative
  • Returns The new matrix

Implementation

Matrix linearDeriv(Matrix matrix) {
  return fill(1, matrix.row, matrix.col);
}