More "minimal" code: no need to convert, say, NumPy matrix objects to array objects.