Opened 20 years ago

Closed 16 years ago

#27 closed defect (fixed)

zeroDivisionError using cg_solve

Reported by: duncan Owned by: steve
Priority: low Milestone: least_squares module finished
Component: Functionality and features Version: 1.0
Severity: normal Keywords:
Cc:

Description

here's the error

ERROR: test_expand_search3 (__main__.Test_Least_Squares)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "I:\inundation\fit_interpolate\benchmark_least_squares.py", lin
e 147, in test_expand_search3
    calc = interp.fit_points(point_atts )
  File "I:\inundation\pyvolution\least_squares.py", line 881, in fit_p
oints
    return self.fit(z)
  File "I:\inundation\pyvolution\least_squares.py", line 869, in fit
    return conjugate_gradient(self.B, Atz, Atz, imax=2*len(Atz) )
  File "I:\inundation\pyvolution\cg_solve.py", line 55, in conjugate_g
radient
    alpha = rTr/dot(d,q)
ZeroDivisionError: float division

see show_cg_bug.py (changeset:1959)

Change History (3)

comment:1 Changed 20 years ago by ole

Component: Compilation and installationFunctionality and features
Milestone: least_squares module finished

comment:2 Changed 19 years ago by anonymous

Priority: normallow

comment:3 Changed 16 years ago by nariman

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.