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
The following functions currently return f64 values irrespective of the input Array data's native type.
sum_all
sum_nan_all
product_all
product_nan_all
min_all
max_all
all_true_all
any_true_all
count_all
imin_all
imax_all
The above functions need to return the appropriate type value instead of f64. This change is probably going to be
easier to implemented once Typed Arrays are implemented.
The text was updated successfully, but these errors were encountered:
Facing an issue related to conversions from f64 (primitive types but just defined as associated types for necessary operations) to output primitive types (defined as associated types for necessary operations). Given below is permalink to rust playground with minimal reproducible code for future reference.
pubtraitTestEnum{typeInType;typeOutType;}implTestEnumfori32{typeInType = Self;typeOutType = f32;}fntest<T:TestEnum>(value:f64) -> T::OutType{
value asT::OutType}fnmain(){let a = 1.0;println!("a is {}", test::<i32>(a));}
The following functions currently return
f64
values irrespective of the inputArray
data's native type.sum_all
sum_nan_all
product_all
product_nan_all
min_all
max_all
all_true_all
any_true_all
count_all
imin_all
imax_all
The above functions need to return the appropriate type value instead of
f64
. This change is probably going to beeasier to implemented once Typed Arrays are implemented.
The text was updated successfully, but these errors were encountered: