Sparse operator for differentiation. diffx = sparse_diff(sz1,m,cyclic) Sparse operator for differentiation along dimension m for "collapsed" matrix of the size sz1. Input: sz1: size of rhs m: dimension to differentiate cyclic: true if domain is cyclic along dimension m. False is the default value
Package: divand