Updated the func() method to return the chi-squared value.
The back calculated reduced tensor elements is still missing.
Authored by: bugman 2008-01-15
Parent: [r4741]
Child: [r4743]