66// option. This file may not be copied, modified, or distributed
77// except according to those terms.
88
9- use crate :: dimension:: BroadcastShape ;
9+ use crate :: dimension:: DimMax ;
1010use crate :: Zip ;
1111use num_complex:: Complex ;
1212
@@ -68,10 +68,10 @@ where
6868 B : Clone ,
6969 S : DataOwned <Elem =A > + DataMut ,
7070 S2 : Data <Elem =B >,
71- D : Dimension + BroadcastShape <E >,
71+ D : Dimension + DimMax <E >,
7272 E : Dimension ,
7373{
74- type Output = ArrayBase <S , <D as BroadcastShape <E >>:: Output >;
74+ type Output = ArrayBase <S , <D as DimMax <E >>:: Output >;
7575 fn $mth( self , rhs: ArrayBase <S2 , E >) -> Self :: Output
7676 {
7777 self . $mth( & rhs)
@@ -95,14 +95,14 @@ where
9595 B : Clone ,
9696 S : DataOwned <Elem =A > + DataMut ,
9797 S2 : Data <Elem =B >,
98- D : Dimension + BroadcastShape <E >,
98+ D : Dimension + DimMax <E >,
9999 E : Dimension ,
100100{
101- type Output = ArrayBase <S , <D as BroadcastShape <E >>:: Output >;
101+ type Output = ArrayBase <S , <D as DimMax <E >>:: Output >;
102102 fn $mth( self , rhs: & ArrayBase <S2 , E >) -> Self :: Output
103103 {
104104 if self . ndim( ) == rhs. ndim( ) && self . shape( ) == rhs. shape( ) {
105- let mut out = self . into_dimensionality:: <<D as BroadcastShape <E >>:: Output >( ) . unwrap( ) ;
105+ let mut out = self . into_dimensionality:: <<D as DimMax <E >>:: Output >( ) . unwrap( ) ;
106106 out. zip_mut_with_same_shape( rhs, clone_iopf( A :: $mth) ) ;
107107 out
108108 } else {
@@ -130,14 +130,14 @@ where
130130 S : Data <Elem =A >,
131131 S2 : DataOwned <Elem =B > + DataMut ,
132132 D : Dimension ,
133- E : Dimension + BroadcastShape <D >,
133+ E : Dimension + DimMax <D >,
134134{
135- type Output = ArrayBase <S2 , <E as BroadcastShape <D >>:: Output >;
135+ type Output = ArrayBase <S2 , <E as DimMax <D >>:: Output >;
136136 fn $mth( self , rhs: ArrayBase <S2 , E >) -> Self :: Output
137137 where
138138 {
139139 if self . ndim( ) == rhs. ndim( ) && self . shape( ) == rhs. shape( ) {
140- let mut out = rhs. into_dimensionality:: <<E as BroadcastShape <D >>:: Output >( ) . unwrap( ) ;
140+ let mut out = rhs. into_dimensionality:: <<E as DimMax <D >>:: Output >( ) . unwrap( ) ;
141141 out. zip_mut_with_same_shape( self , clone_iopf_rev( A :: $mth) ) ;
142142 out
143143 } else {
@@ -162,10 +162,10 @@ where
162162 B : Clone ,
163163 S : Data <Elem =A >,
164164 S2 : Data <Elem =B >,
165- D : Dimension + BroadcastShape <E >,
165+ D : Dimension + DimMax <E >,
166166 E : Dimension ,
167167{
168- type Output = Array <A , <D as BroadcastShape <E >>:: Output >;
168+ type Output = Array <A , <D as DimMax <E >>:: Output >;
169169 fn $mth( self , rhs: & ' a ArrayBase <S2 , E >) -> Self :: Output {
170170 let ( lhs, rhs) = self . broadcast_with( rhs) . unwrap( ) ;
171171 Zip :: from( & lhs) . and( & rhs) . map_collect( clone_opf( A :: $mth) )
0 commit comments