MCPcopy Create free account
hub / github.com/numpy/numpy / npyiter_casting_to_string

Function npyiter_casting_to_string

numpy/core/src/multiarray/nditer_constr.c:1274–1291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1272}
1273
1274static const char *
1275npyiter_casting_to_string(NPY_CASTING casting)
1276{
1277 switch (casting) {
1278 case NPY_NO_CASTING:
1279 return "'no'";
1280 case NPY_EQUIV_CASTING:
1281 return "'equiv'";
1282 case NPY_SAFE_CASTING:
1283 return "'safe'";
1284 case NPY_SAME_KIND_CASTING:
1285 return "'same_kind'";
1286 case NPY_UNSAFE_CASTING:
1287 return "'unsafe'";
1288 default:
1289 return "<unknown>";
1290 }
1291}
1292
1293
1294static int

Callers 1

npyiter_check_castingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected