Many thanks @Abdelpakey! Your explanation for these 2 lines of code makes sense.
However, I am just confused with your function my_nullspace() where it is just calculating the null space of a matrix, so why would calculating the null space of a matrix involve things like making the “A” variable/matrix differentiable and also things like back prop the loss function?
Many thanks again @Abdelpakey.