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 4848def dpnp_cov (m , y = None , rowvar = True , dtype = None ):
4949 """
5050 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.
5252
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.
5555
5656 """
5757
5858 def _get_2dmin_array (x , dtype ):
5959 """
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.
6161
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.
6464 It casts to another dtype, if the input array differs from requested one.
6565
6666 """
6767
6868 if x .ndim == 0 :
6969 x = x .reshape ((1 , 1 ))
70- elif m .ndim == 1 :
70+ elif x .ndim == 1 :
7171 x = x [dpnp .newaxis , :]
7272
7373 if not rowvar and x .shape [0 ] != 1 :
You can’t perform that action at this time.
0 commit comments