public static dtype result_type(NPY_TYPES type_num) { var return_type = DefaultArrayHandlers.GetArrayHandler(type_num).MathOpFloatingType(UFuncOperation.divide); dtype result_dtype = NpyCoreApi.DescrFromType(return_type); return(result_dtype); }
/// <summary> /// Returns the descriptor for a given native type or null if src is /// not a scalar type /// </summary> /// <param name="src">Object to type</param> /// <returns>Descriptor for type of 'src' or null if not scalar</returns> internal static dtype FindScalarType(Object src) { NPY_TYPES type = DefaultArrayHandlers.GetArrayType(src); if (type != NPY_TYPES.NPY_NOTSET) { return(NpyCoreApi.DescrFromType(type)); } return(null); }
private static object _getmax(ndarray dest) { return(DefaultArrayHandlers.GetArrayHandler(dest.TypeNum).GetArgSortMaxValue()); }