File tree Expand file tree Collapse file tree 3 files changed +0
-27
lines changed Expand file tree Collapse file tree 3 files changed +0
-27
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ Data type testing
44
44
dpnp.issubdtype
45
45
dpnp.issubsctype
46
46
dpnp.issubclass _
47
- dpnp.find_common_type
48
47
49
48
Miscellaneous
50
49
-------------
Original file line number Diff line number Diff line change @@ -90,12 +90,6 @@ Returns a tuple of:
90
90
2. dtype
91
91
"""
92
92
93
- cpdef find_common_type(object x1_obj, object x2_obj)
94
- """
95
- Find common type of 2 input objects
96
- """
97
-
98
-
99
93
cpdef long _get_linear_index(key, tuple shape, int ndim)
100
94
"""
101
95
Compute linear index of an element in memory from array indices
Original file line number Diff line number Diff line change @@ -432,26 +432,6 @@ cdef tuple get_shape_dtype(object input_obj):
432
432
return (return_shape, dpnp.dtype(type (input_obj)))
433
433
434
434
435
- cpdef find_common_type(object x1_obj, object x2_obj):
436
- _, x1_dtype = get_shape_dtype(x1_obj)
437
- _, x2_dtype = get_shape_dtype(x2_obj)
438
-
439
- cdef list array_types = []
440
- cdef list scalar_types = []
441
-
442
- if dpnp.isscalar(x1_obj):
443
- scalar_types.append(x1_dtype)
444
- else :
445
- array_types.append(x1_dtype)
446
-
447
- if dpnp.isscalar(x2_obj):
448
- scalar_types.append(x2_dtype)
449
- else :
450
- array_types.append(x2_dtype)
451
-
452
- return numpy.find_common_type(array_types, scalar_types)
453
-
454
-
455
435
cdef shape_type_c get_common_shape(shape_type_c input1_shape, shape_type_c input2_shape) except * :
456
436
cdef shape_type_c input1_shape_orig = input1_shape
457
437
cdef shape_type_c input2_shape_orig = input2_shape
You can’t perform that action at this time.
0 commit comments