imageworks/OpenShadingLanguage — pull request #117 by lgritz (2012-03-01 00:04:06+00:00)
Title: Review: fix Gabor noise numeric instabilities.

Squash numerical instabilities that could lead to inf values in Gabor -- basically by turning off filtering for very tiny filter values (which should not be visible, since filtering does very little when derivs are small, and even speeds things up by not filtering needlessly), and when the determinant of a troublesome matrix is too small (other things will be divided by it later).

In the process of debugging this, I realized that I never implemented operator<< for the Matrix22 class, so that's mixed in here as well (even though it's not actually used in the code now that I've removed the debug scaffolding).