Proper types for assembled matrix