Synopsis:
If m or n is a ring element, then it is interpreted as a one-by-one matrix. If m is a vector, it is interpreted as a matrix with one column, and if n is a vector, it is interpreted as a matrix with one row. If both m and n are ring elements, then the result will be a ring element rather than a one-by-one matrix. If m is a vector and n is a ring element, then the result will be a vector rather than a matrix with one column.
The most common usage is when m has one column and n has one row. In this case the result h is a matrix whose (i,j)-th entry is the result of differentiating nj by the differential operator corresponding to mi.
See also:
Code:
-- ../../../Macaulay2/m2/matrix.m2:446 diff(Matrix, Matrix) := Matrix => (m,n) -> (BinaryMatrixOperation ggdiff)(m,n)