(This is a post for CS320 Boston University.)

Please take a look at this. Get yourself familiar with matirx operations and high order functions. Also, it is a good example of functions/closures.

  • A brief summary of library functions: http://www.ats-lang.org/LIBRARY/prelude/matrixref.html
  • A chapter about matrices: http://www.ats-lang.org/DOCUMENT/INT2PROGINATS/HTML/x1559.html