GMat GLM primitives