Turns out yuidoc can only ignore folders. Putting the glmatrix file in a folder so it can be ignored.