C abs a b is equivalent to absdiff a b c. The class mat tp is a thin template wrapper on top of the mat class. Once the array is created it is automatically managed via a reference counting mechanism.