Function that computes the residual vector for nonlinear least squares problems. Takes parameter vector and returns residual vector.
Note: Uses Float64Array for performance and type safety in numerical computations.
Function that computes the residual vector for nonlinear least squares problems. Takes parameter vector and returns residual vector.
Note: Uses Float64Array for performance and type safety in numerical computations.