You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- The function returns `-1` if unable to set an element and `0` otherwise.
2517
+
- The function requires a pointer to a data value `v` in order to provide a generic API supporting ndarrays having different data types.
2518
+
- The function has no way of determining whether `v` actually points to a memory address compatible with the underlying input ndarray data type. Accordingly, accessing **unowned** memory is possible, and this function **assumes** you know what you are doing.
2519
+
2520
+
#### stdlib_ndarray_set_float64( \*arr, \*sub, v )
2521
+
2522
+
Sets a double-precision floating-point ndarray data element.
- The function does **not** verify that the type of `v` matches the underlying input ndarray data type, and, thus, overwriting **unowned** memory is possible. The function **assumes** that you know what you are doing.
2537
+
- The function returns `-1` if unable to set an element and `0` otherwise.
2538
+
2539
+
#### stdlib_ndarray_set_float32( \*arr, \*sub, v )
2540
+
2541
+
Sets a single-precision floating-point ndarray data element.
- The function does **not** verify that the type of `v` matches the underlying input ndarray data type, and, thus, overwriting **unowned** memory is possible. The function **assumes** that you know what you are doing.
2556
+
- The function returns `-1` if unable to set an element and `0` otherwise.
2557
+
2558
+
#### stdlib_ndarray_set_uint64( \*arr, \*sub, v )
2559
+
2560
+
Sets an unsigned 64-bit integer ndarray data element.
- The function does **not** verify that the type of `v` matches the underlying input ndarray data type, and, thus, overwriting **unowned** memory is possible. The function **assumes** that you know what you are doing.
2575
+
- The function returns `-1` if unable to set an element and `0` otherwise.
2576
+
2577
+
#### stdlib_ndarray_set_int64( \*arr, \*sub, v )
2578
+
2579
+
Sets a signed 64-bit integer ndarray data element.
- The function does **not** verify that the type of `v` matches the underlying input ndarray data type, and, thus, overwriting **unowned** memory is possible. The function **assumes** that you know what you are doing.
2594
+
- The function returns `-1` if unable to set an element and `0` otherwise.
2595
+
2596
+
#### stdlib_ndarray_set_uint32( \*arr, \*sub, v )
2597
+
2598
+
Sets an unsigned 32-bit integer ndarray data element.
- The function does **not** verify that the type of `v` matches the underlying input ndarray data type, and, thus, overwriting **unowned** memory is possible. The function **assumes** that you know what you are doing.
2613
+
- The function returns `-1` if unable to set an element and `0` otherwise.
2614
+
2615
+
#### stdlib_ndarray_set_int32( \*arr, \*sub, v )
2616
+
2617
+
Sets a signed 32-bit integer ndarray data element.
- The function does **not** verify that the type of `v` matches the underlying input ndarray data type, and, thus, overwriting **unowned** memory is possible. The function **assumes** that you know what you are doing.
2632
+
- The function returns `-1` if unable to set an element and `0` otherwise.
2633
+
2634
+
#### stdlib_ndarray_set_uint16( \*arr, \*sub, v )
2635
+
2636
+
Sets an unsigned 16-bit integer ndarray data element.
- The function does **not** verify that the type of `v` matches the underlying input ndarray data type, and, thus, overwriting **unowned** memory is possible. The function **assumes** that you know what you are doing.
2651
+
- The function returns `-1` if unable to set an element and `0` otherwise.
2652
+
2653
+
#### stdlib_ndarray_set_int16( \*arr, \*sub, v )
2654
+
2655
+
Sets a signed 16-bit integer ndarray data element.
- The function does **not** verify that the type of `v` matches the underlying input ndarray data type, and, thus, overwriting **unowned** memory is possible. The function **assumes** that you know what you are doing.
2670
+
- The function returns `-1` if unable to set an element and `0` otherwise.
2671
+
2672
+
#### stdlib_ndarray_set_uint8( \*arr, \*sub, v )
2673
+
2674
+
Sets an unsigned 8-bit integer ndarray data element.
0 commit comments