File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 48
48
def dpnp_cov (m , y = None , rowvar = True , dtype = None ):
49
49
"""
50
50
Estimate a covariance matrix based on passed data.
51
- No support for given wights is provided now.
51
+ No support for given weights is provided now.
52
52
53
- The implementation is done though existing dpnp and dpctl methods
54
- instead of separate function call of dnpn backend.
53
+ The implementation is done through existing dpnp and dpctl methods
54
+ instead of separate function call of dpnp backend.
55
55
56
56
"""
57
57
58
58
def _get_2dmin_array (x , dtype ):
59
59
"""
60
- Transfor an input array to a form required for building a covariance matrix.
60
+ Transform an input array to a form required for building a covariance matrix.
61
61
62
- If applicable, it resahpes the imput array to have 2 dimensions or greater.
63
- If applicable, it transposes the imput array when 'rowvar' is False.
62
+ If applicable, it reshapes the input array to have 2 dimensions or greater.
63
+ If applicable, it transposes the input array when 'rowvar' is False.
64
64
It casts to another dtype, if the input array differs from requested one.
65
65
66
66
"""
67
67
68
68
if x .ndim == 0 :
69
69
x = x .reshape ((1 , 1 ))
70
- elif m .ndim == 1 :
70
+ elif x .ndim == 1 :
71
71
x = x [dpnp .newaxis , :]
72
72
73
73
if not rowvar and x .shape [0 ] != 1 :
You can’t perform that action at this time.
0 commit comments