Array command accepts only constant value as its dimensionality, e.g. Array(X, 3, 4).
How can I define a matrix of symbolic dimensionality, e.g. an m x n matrix?
Furthermore, how can I get the symbolic partial derivatives of a scalar objective function with respect to a matrix or a vector?