C abs a is equivalent to absdiff a scalar all 0 c. You should avoid using this method if possible as it may be removed or be changed in the future. Once matrix is created it will be automatically managed by using reference counting mechanism.