repl.txt (716B)
1 2 {{alias}}() 3 Returns a list of ndarray casting modes. 4 5 The output array contains the following modes: 6 7 - 'none': only allow casting between identical types 8 - 'equiv': allow casting between identical and byte swapped types 9 - 'safe': only allow "safe" casts 10 - 'same-kind': allow "safe" casts and casts within the same kind (e.g., 11 between signed integers or between floats) 12 - 'unsafe': allow casting between all types (including between integers and 13 floats) 14 15 Returns 16 ------- 17 out: Array<string> 18 List of ndarray casting modes. 19 20 Examples 21 -------- 22 > var out = {{alias}}() 23 [ 'none', 'equiv', 'safe', 'same-kind', 'unsafe' ] 24 25 See Also 26 -------- 27