As an exercise for the SEG Reproducibility Zoo, the example in rsf/tutorials/cg reproduces the tutorial from Karl Schleicher on the method of conjugate gradients.
The tutorial was published in the April 2018 issue of The Leading Edge.
Madagascar users are encouraged to try improving the results.