File tree Expand file tree Collapse file tree 2 files changed +0
-51
lines changed
numpy/core/src/multiarray Expand file tree Collapse file tree 2 files changed +0
-51
lines changed Original file line number Diff line number Diff line change @@ -543,35 +543,6 @@ PyArray_AssignZero(PyArrayObject *dst,
543
543
return retcode ;
544
544
}
545
545
546
- /*
547
- * Fills an array with ones.
548
- *
549
- * dst: The destination array.
550
- * wheremask: If non-NULL, a boolean mask specifying where to set the values.
551
- *
552
- * Returns 0 on success, -1 on failure.
553
- */
554
- NPY_NO_EXPORT int
555
- PyArray_AssignOne (PyArrayObject * dst ,
556
- PyArrayObject * wheremask )
557
- {
558
- npy_bool value ;
559
- PyArray_Descr * bool_dtype ;
560
- int retcode ;
561
-
562
- /* Create a raw bool scalar with the value True */
563
- bool_dtype = PyArray_DescrFromType (NPY_BOOL );
564
- if (bool_dtype == NULL ) {
565
- return -1 ;
566
- }
567
- value = 1 ;
568
-
569
- retcode = PyArray_AssignRawScalar (dst , bool_dtype , (char * )& value ,
570
- wheremask , NPY_SAFE_CASTING );
571
-
572
- Py_DECREF (bool_dtype );
573
- return retcode ;
574
- }
575
546
576
547
/*NUMPY_API
577
548
* Copy an array.
Original file line number Diff line number Diff line change @@ -1401,28 +1401,6 @@ _dtype_from_buffer_3118(PyObject *memoryview)
1401
1401
}
1402
1402
1403
1403
1404
- /*
1405
- * Call the python _is_from_ctypes
1406
- */
1407
- NPY_NO_EXPORT int
1408
- _is_from_ctypes (PyObject * obj ) {
1409
- PyObject * ret_obj ;
1410
- static PyObject * py_func = NULL ;
1411
-
1412
- npy_cache_import ("numpy.core._internal" , "_is_from_ctypes" , & py_func );
1413
-
1414
- if (py_func == NULL ) {
1415
- return -1 ;
1416
- }
1417
- ret_obj = PyObject_CallFunctionObjArgs (py_func , obj , NULL );
1418
- if (ret_obj == NULL ) {
1419
- return -1 ;
1420
- }
1421
-
1422
- return PyObject_IsTrue (ret_obj );
1423
- }
1424
-
1425
-
1426
1404
NPY_NO_EXPORT PyObject *
1427
1405
_array_from_buffer_3118 (PyObject * memoryview )
1428
1406
{
You can’t perform that action at this time.
0 commit comments