svd-js icon indicating copy to clipboard operation
svd-js copied to clipboard

ZeroDivisionError: float division by zero

Open pygabc1 opened this issue 3 years ago • 0 comments

Hi, how did you handle "ZeroDivisionError: float division by zero"? Many lines occurred these problems, and it might result in the left singular vector(matrix) with all zero components. For example, for c = f/z, I modified to c = (f/z if z != 0 else 0) (for python)

pygabc1 avatar Oct 09 '20 01:10 pygabc1