Gradient of a normal (NOT vector) function that has vector arguments

Please refer to this topic and post an MWE - I don’t think your question can be answered at present without additional information.

1 Like