matAlloc is now matFunctions