You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<spanclass="cstat-no" title="statement not covered" > if ( xdt !== dt1 ) {</span>
1658
1673
<spanclass="cstat-no" title="statement not covered" > // TODO: replace the following logic with a call to `ndarray/base/(?maybe-)(cast|convert|copy)` or similar utility</span>
<spanclass="cstat-no" title="statement not covered" > args[ 0 ] = tmp;</span>
1662
-
<spanclass="cstat-no" title="statement not covered" > xdt = dt;</span>
1677
+
<spanclass="cstat-no" title="statement not covered" > xdt = dt1;</span>
1663
1678
<spanclass="cstat-no" title="statement not covered" > }</span>
1664
-
<spanclass="cstat-no" title="statement not covered" > if ( ydt !== dt ) {</span>
1679
+
<spanclass="cstat-no" title="statement not covered" > if ( ydt !== dt2 ) {</span>
1665
1680
<spanclass="cstat-no" title="statement not covered" > // TODO: replace the following logic with a call to `ndarray/base/(?maybe-)(cast|convert|copy)` or similar utility</span>
<spanclass="cstat-no" title="statement not covered" > opts.dims = zeroTo( N );</span>
1843
1860
<spanclass="cstat-no" title="statement not covered" > }</span>
1844
1861
<spanclass="cstat-no" title="statement not covered" > // Determine whether we need to cast the input ndarray...</span>
1845
-
<spanclass="cstat-no" title="statement not covered" > dt = binaryInputCastingDataType( xdt, ydt, getDType( z ), this._policies.casting ); // eslint-disable-line max-len</span>
1846
-
<spanclass="cstat-no" title="statement not covered" > if ( xdt !== dt ) {</span>
1862
+
<spanclass="cstat-no" title="statement not covered" > dt1 = binaryInputCastingDataType( xdt, ydt, getDType( z ), this._policies.casting ); // eslint-disable-line max-len</span>
1863
+
<spanclass="cstat-no" title="statement not covered" > dt2 = binaryInputCastingDataType( ydt, xdt, getDType( z ), this._policies.casting ); // eslint-disable-line max-len</span>
1864
+
<spanclass="cstat-no" title="statement not covered" > if ( xdt !== dt1 ) {</span>
1847
1865
<spanclass="cstat-no" title="statement not covered" > // TODO: replace the following logic with a call to `ndarray/base/(?maybe-)(cast|convert|copy)` or similar utility</span>
1848
-
<spanclass="cstat-no" title="statement not covered" > tmp = baseEmpty( dt, shx, getOrder( x ) );</span>
1866
+
<spanclass="cstat-no" title="statement not covered" > tmp = baseEmpty( dt1, shx, getOrder( x ) );</span>
<spanclass="cstat-no" title="statement not covered" > args[ 0 ] = tmp;</span>
1851
-
<spanclass="cstat-no" title="statement not covered" > xdt = dt;</span>
1869
+
<spanclass="cstat-no" title="statement not covered" > xdt = dt1;</span>
1852
1870
<spanclass="cstat-no" title="statement not covered" > }</span>
1853
-
<spanclass="cstat-no" title="statement not covered" > if ( ydt !== dt ) {</span>
1871
+
<spanclass="cstat-no" title="statement not covered" > if ( ydt !== dt2 ) {</span>
1854
1872
<spanclass="cstat-no" title="statement not covered" > // TODO: replace the following logic with a call to `ndarray/base/(?maybe-)(cast|convert|copy)` or similar utility</span>
1855
-
<spanclass="cstat-no" title="statement not covered" > tmp = baseEmpty( dt, shy, getOrder( y ) );</span>
1873
+
<spanclass="cstat-no" title="statement not covered" > tmp = baseEmpty( dt2, shy, getOrder( y ) );</span>
1856
1874
<spanclass="cstat-no" title="statement not covered" > assign( [ y, tmp ] );</span>
1857
1875
<spanclass="cstat-no" title="statement not covered" > args[ 1 ] = tmp;</span>
1858
-
<spanclass="cstat-no" title="statement not covered" > ydt = dt;</span>
1876
+
<spanclass="cstat-no" title="statement not covered" > ydt = dt2;</span>
1859
1877
<spanclass="cstat-no" title="statement not covered" > }</span>
1860
1878
<spanclass="cstat-no" title="statement not covered" > // Resolve the lower-level strided function satisfying the input ndarray data type:</span>
0 commit comments