defined (untested) matrix and vector functions