interface for matrix.h operations