File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change 48
48
sum
49
49
}
50
50
51
+ /// Return the sum of all elements in the array.
52
+ ///
53
+ /// *This method has been renamed to `.sum()`*
54
+ #[ deprecated( note="renamed to `sum`" , since="0.15.0" ) ]
55
+ pub fn scalar_sum ( & self ) -> A
56
+ where
57
+ A : Clone + Add < Output = A > + num_traits:: Zero ,
58
+ {
59
+ self . sum ( )
60
+ }
61
+
51
62
/// Returns the [arithmetic mean] x̅ of all elements in the array:
52
63
///
53
64
/// ```text
75
86
}
76
87
}
77
88
78
- /// Return the sum of all elements in the array.
79
- ///
80
- /// *This method has been renamed to `.sum()` and will be deprecated in the
81
- /// next version.*
82
- // #[deprecated(note="renamed to `sum`", since="0.13")]
83
- pub fn scalar_sum ( & self ) -> A
84
- where
85
- A : Clone + Add < Output = A > + num_traits:: Zero ,
86
- {
87
- self . sum ( )
88
- }
89
-
90
89
/// Return the product of all elements in the array.
91
90
///
92
91
/// ```
You can’t perform that action at this time.
0 commit comments