Documentation for polymorphic matrix functions