Skip to content

Commit 3f554d3

Browse files
committed
clean up legacy statistics
1 parent d39aa25 commit 3f554d3

File tree

5 files changed

+0
-1328
lines changed

5 files changed

+0
-1328
lines changed

dpnp/backend/include/dpnp_iface.hpp

Lines changed: 0 additions & 224 deletions
Original file line numberDiff line numberDiff line change
@@ -100,35 +100,6 @@ INP_DLLEXPORT void dpnp_memory_memcpy_c(DPCTLSyclQueueRef q_ref,
100100
INP_DLLEXPORT void
101101
dpnp_memory_memcpy_c(void *dst, const void *src, size_t size_in_bytes);
102102

103-
/**
104-
* @ingroup BACKEND_API
105-
* @brief Compute the variance along the specified axis, while ignoring NaNs.
106-
*
107-
* @param [in] q_ref Reference to SYCL queue.
108-
* @param [in] array Input array.
109-
* @param [in] mask_arr Input mask array when elem is nan.
110-
* @param [out] result Output array.
111-
* @param [in] result_size Output array size.
112-
* @param [in] size Number of elements in input arrays.
113-
* @param [in] dep_event_vec_ref Reference to vector of SYCL events.
114-
*/
115-
template <typename _DataType>
116-
INP_DLLEXPORT DPCTLSyclEventRef
117-
dpnp_nanvar_c(DPCTLSyclQueueRef q_ref,
118-
void *array,
119-
void *mask_arr,
120-
void *result,
121-
const size_t result_size,
122-
size_t size,
123-
const DPCTLEventVectorRef dep_event_vec_ref);
124-
125-
template <typename _DataType>
126-
INP_DLLEXPORT void dpnp_nanvar_c(void *array,
127-
void *mask_arr,
128-
void *result,
129-
const size_t result_size,
130-
size_t size);
131-
132103
/**
133104
* @ingroup BACKEND_API
134105
* @brief Custom implementation of dot function
@@ -238,29 +209,6 @@ INP_DLLEXPORT void dpnp_sum_c(void *result_out,
238209
const void *initial,
239210
const long *where);
240211

241-
/**
242-
* @ingroup BACKEND_API
243-
* @brief Custom implementation of count_nonzero function
244-
*
245-
* @param [in] q_ref Reference to SYCL queue.
246-
* @param [in] array1_in Input array.
247-
* @param [out] result1_out Output array.
248-
* @param [in] size Number of elements in input arrays.
249-
* @param [in] dep_event_vec_ref Reference to vector of SYCL events.
250-
*
251-
*/
252-
template <typename _DataType_input, typename _DataType_output>
253-
INP_DLLEXPORT DPCTLSyclEventRef
254-
dpnp_count_nonzero_c(DPCTLSyclQueueRef q_ref,
255-
void *array1_in,
256-
void *result1_out,
257-
size_t size,
258-
const DPCTLEventVectorRef dep_event_vec_ref);
259-
260-
template <typename _DataType_input, typename _DataType_output>
261-
INP_DLLEXPORT void
262-
dpnp_count_nonzero_c(void *array1_in, void *result1_out, size_t size);
263-
264212
/**
265213
* @ingroup BACKEND_API
266214
* @brief Return a partitioned copy of an array.
@@ -541,73 +489,6 @@ INP_DLLEXPORT DPCTLSyclEventRef
541489
template <typename _DataType>
542490
INP_DLLEXPORT void dpnp_initval_c(void *result1, void *value, size_t size);
543491

544-
/**
545-
* @ingroup BACKEND_API
546-
* @brief math library implementation of max function
547-
*
548-
* @param [in] q_ref Reference to SYCL queue.
549-
* @param [in] array1_in Input array with data.
550-
* @param [out] result1 Output array.
551-
* @param [in] result_size Output array size.
552-
* @param [in] shape Shape of input array.
553-
* @param [in] ndim Number of elements in shape.
554-
* @param [in] axis Axis.
555-
* @param [in] naxis Number of elements in axis.
556-
* @param [in] dep_event_vec_ref Reference to vector of SYCL events.
557-
*/
558-
template <typename _DataType>
559-
INP_DLLEXPORT DPCTLSyclEventRef
560-
dpnp_max_c(DPCTLSyclQueueRef q_ref,
561-
void *array1_in,
562-
void *result1,
563-
const size_t result_size,
564-
const shape_elem_type *shape,
565-
size_t ndim,
566-
const shape_elem_type *axis,
567-
size_t naxis,
568-
const DPCTLEventVectorRef dep_event_vec_ref);
569-
570-
template <typename _DataType>
571-
INP_DLLEXPORT void dpnp_max_c(void *array1_in,
572-
void *result1,
573-
const size_t result_size,
574-
const shape_elem_type *shape,
575-
size_t ndim,
576-
const shape_elem_type *axis,
577-
size_t naxis);
578-
579-
/**
580-
* @ingroup BACKEND_API
581-
* @brief math library implementation of mean function
582-
*
583-
* @param [in] q_ref Reference to SYCL queue.
584-
* @param [in] array Input array with data.
585-
* @param [out] result Output array.
586-
* @param [in] shape Shape of input array.
587-
* @param [in] ndim Number of elements in shape.
588-
* @param [in] axis Axis.
589-
* @param [in] naxis Number of elements in axis.
590-
* @param [in] dep_event_vec_ref Reference to vector of SYCL events.
591-
*/
592-
template <typename _DataType, typename _ResultType>
593-
INP_DLLEXPORT DPCTLSyclEventRef
594-
dpnp_mean_c(DPCTLSyclQueueRef q_ref,
595-
void *array,
596-
void *result,
597-
const shape_elem_type *shape,
598-
size_t ndim,
599-
const shape_elem_type *axis,
600-
size_t naxis,
601-
const DPCTLEventVectorRef dep_event_vec_ref);
602-
603-
template <typename _DataType, typename _ResultType>
604-
INP_DLLEXPORT void dpnp_mean_c(void *array,
605-
void *result,
606-
const shape_elem_type *shape,
607-
size_t ndim,
608-
const shape_elem_type *axis,
609-
size_t naxis);
610-
611492
/**
612493
* @ingroup BACKEND_API
613494
* @brief math library implementation of median function
@@ -640,41 +521,6 @@ INP_DLLEXPORT void dpnp_median_c(void *array,
640521
const shape_elem_type *axis,
641522
size_t naxis);
642523

643-
/**
644-
* @ingroup BACKEND_API
645-
* @brief math library implementation of min function
646-
*
647-
* @param [in] q_ref Reference to SYCL queue.
648-
* @param [in] array Input array with data.
649-
* @param [out] result Output array.
650-
* @param [in] result_size Output array size.
651-
* @param [in] shape Shape of input array.
652-
* @param [in] ndim Number of elements in shape.
653-
* @param [in] axis Axis.
654-
* @param [in] naxis Number of elements in axis.
655-
* @param [in] dep_event_vec_ref Reference to vector of SYCL events.
656-
*/
657-
template <typename _DataType>
658-
INP_DLLEXPORT DPCTLSyclEventRef
659-
dpnp_min_c(DPCTLSyclQueueRef q_ref,
660-
void *array,
661-
void *result,
662-
const size_t result_size,
663-
const shape_elem_type *shape,
664-
size_t ndim,
665-
const shape_elem_type *axis,
666-
size_t naxis,
667-
const DPCTLEventVectorRef dep_event_vec_ref);
668-
669-
template <typename _DataType>
670-
INP_DLLEXPORT void dpnp_min_c(void *array,
671-
void *result,
672-
const size_t result_size,
673-
const shape_elem_type *shape,
674-
size_t ndim,
675-
const shape_elem_type *axis,
676-
size_t naxis);
677-
678524
/**
679525
* @ingroup BACKEND_API
680526
* @brief math library implementation of argmax function
@@ -717,76 +563,6 @@ INP_DLLEXPORT DPCTLSyclEventRef
717563
template <typename _DataType, typename _idx_DataType>
718564
INP_DLLEXPORT void dpnp_argmin_c(void *array, void *result, size_t size);
719565

720-
/**
721-
* @ingroup BACKEND_API
722-
* @brief math library implementation of std function
723-
*
724-
* @param [in] q_ref Reference to SYCL queue.
725-
* @param [in] array Input array with data.
726-
* @param [out] result Output array with indices.
727-
* @param [in] shape Shape of input array.
728-
* @param [in] ndim Number of elements in shape.
729-
* @param [in] axis Axis.
730-
* @param [in] naxis Number of elements in axis.
731-
* @param [in] ddof Delta degrees of freedom.
732-
* @param [in] dep_event_vec_ref Reference to vector of SYCL events.
733-
*/
734-
template <typename _DataType, typename _ResultType>
735-
INP_DLLEXPORT DPCTLSyclEventRef
736-
dpnp_std_c(DPCTLSyclQueueRef q_ref,
737-
void *array,
738-
void *result,
739-
const shape_elem_type *shape,
740-
size_t ndim,
741-
const shape_elem_type *axis,
742-
size_t naxis,
743-
size_t ddof,
744-
const DPCTLEventVectorRef dep_event_vec_ref);
745-
746-
template <typename _DataType, typename _ResultType>
747-
INP_DLLEXPORT void dpnp_std_c(void *array,
748-
void *result,
749-
const shape_elem_type *shape,
750-
size_t ndim,
751-
const shape_elem_type *axis,
752-
size_t naxis,
753-
size_t ddof);
754-
755-
/**
756-
* @ingroup BACKEND_API
757-
* @brief math library implementation of var function
758-
*
759-
* @param [in] q_ref Reference to SYCL queue.
760-
* @param [in] array Input array with data.
761-
* @param [out] result Output array with indices.
762-
* @param [in] shape Shape of input array.
763-
* @param [in] ndim Number of elements in shape.
764-
* @param [in] axis Axis.
765-
* @param [in] naxis Number of elements in axis.
766-
* @param [in] ddof Delta degrees of freedom.
767-
* @param [in] dep_event_vec_ref Reference to vector of SYCL events.
768-
*/
769-
template <typename _DataType, typename _ResultType>
770-
INP_DLLEXPORT DPCTLSyclEventRef
771-
dpnp_var_c(DPCTLSyclQueueRef q_ref,
772-
void *array,
773-
void *result,
774-
const shape_elem_type *shape,
775-
size_t ndim,
776-
const shape_elem_type *axis,
777-
size_t naxis,
778-
size_t ddof,
779-
const DPCTLEventVectorRef dep_event_vec_ref);
780-
781-
template <typename _DataType, typename _ResultType>
782-
INP_DLLEXPORT void dpnp_var_c(void *array,
783-
void *result,
784-
const shape_elem_type *shape,
785-
size_t ndim,
786-
const shape_elem_type *axis,
787-
size_t naxis,
788-
size_t ddof);
789-
790566
#define MACRO_1ARG_1TYPE_OP(__name__, __operation1__, __operation2__) \
791567
template <typename _DataType> \
792568
INP_DLLEXPORT DPCTLSyclEventRef __name__( \

dpnp/backend/include/dpnp_iface_fptr.hpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ enum class DPNPFuncName : size_t
6868
DPNP_FN_CORRELATE, /**< Used in numpy.correlate() impl */
6969
DPNP_FN_CORRELATE_EXT, /**< Used in numpy.correlate() impl, requires extra
7070
parameters */
71-
DPNP_FN_COUNT_NONZERO, /**< Used in numpy.count_nonzero() impl */
72-
DPNP_FN_COV, /**< Used in numpy.cov() impl */
7371
DPNP_FN_DOT, /**< Used in numpy.dot() impl */
7472
DPNP_FN_DOT_EXT, /**< Used in numpy.dot() impl, requires extra parameters */
7573
DPNP_FN_ERF, /**< Used in scipy.special.erf impl */
@@ -79,17 +77,13 @@ enum class DPNPFuncName : size_t
7977
*/
8078
DPNP_FN_INITVAL_EXT, /**< Used in numpy ones, ones_like, zeros, zeros_like
8179
impls */
82-
DPNP_FN_MAX, /**< Used in numpy.max() impl */
83-
DPNP_FN_MEAN, /**< Used in numpy.mean() impl */
8480
DPNP_FN_MEDIAN, /**< Used in numpy.median() impl */
8581
DPNP_FN_MEDIAN_EXT, /**< Used in numpy.median() impl, requires extra
8682
parameters */
87-
DPNP_FN_MIN, /**< Used in numpy.min() impl */
8883
DPNP_FN_MODF, /**< Used in numpy.modf() impl */
8984
DPNP_FN_MODF_EXT, /**< Used in numpy.modf() impl, requires extra parameters
9085
*/
9186
DPNP_FN_MULTIPLY, /**< Used in numpy.multiply() impl */
92-
DPNP_FN_NANVAR, /**< Used in numpy.nanvar() impl */
9387
DPNP_FN_ONES, /**< Used in numpy.ones() impl */
9488
DPNP_FN_ONES_LIKE, /**< Used in numpy.ones_like() impl */
9589
DPNP_FN_PARTITION, /**< Used in numpy.partition() impl */
@@ -218,9 +212,7 @@ enum class DPNPFuncName : size_t
218212
DPNP_FN_SQRT, /**< Used in numpy.sqrt() impl */
219213
DPNP_FN_SQRT_EXT, /**< Used in numpy.sqrt() impl, requires extra parameters
220214
*/
221-
DPNP_FN_STD, /**< Used in numpy.std() impl */
222215
DPNP_FN_SUM, /**< Used in numpy.sum() impl */
223-
DPNP_FN_VAR, /**< Used in numpy.var() impl */
224216
DPNP_FN_ZEROS, /**< Used in numpy.zeros() impl */
225217
DPNP_FN_ZEROS_LIKE, /**< Used in numpy.zeros_like() impl */
226218
DPNP_FN_LAST, /**< The latest element of the enumeration */

0 commit comments

Comments
 (0)