Fix nan
in reverse mode gradient caused by rotation_matrix
#1457
Draft
dpanici wants to merge 3 commits intomaster from dp/nangrad-bdryerr-coils
+64-19
nan
in reverse mode gradient caused by rotation_matrix
#1457