Function that computes the gradient vector for general optimization. Takes parameter vector and returns gradient vector.
Note: Uses Float64Array for performance and memory efficiency in numerical computations.
Function that computes the gradient vector for general optimization. Takes parameter vector and returns gradient vector.
Note: Uses Float64Array for performance and memory efficiency in numerical computations.