function arrayMax<ArrayType, ScalarBasicType> input ArrayType a; output ScalarBasicType b; end arrayMax;