Stretch 1D matrix to 2D matrix

This example shows how you can rotate the output of a jit.gradient object. jit.gradient makes a 1-D matrix. You can "stretch" that into a 2-D matrix with jit.matrix and then rotate it with a jit.rota object.

Chapter: