in-place.jl

Illustrate the memory and speed benefits of in-place operations for GD iteration
2020-06-15 Jeff Fessler, University of Michigan
2021-08-23 Julia 1.6.2, faster closure versions

Simple gradient case

check gradients

Time GD for simple case

Generally, when more steps are done in place, it runs faster and uses less memory.

More complicated gradient (LS)

Time GD for LS