File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,10 @@ extern "C" {
143
143
144
144
/// A multidimensional data container
145
145
///
146
- /// Currently, Array objects can store only data until four dimensions
146
+ /// Currently, `Array<T>` objects support data up to four dimensions.
147
+ ///
148
+ /// All operations on arrays (including creation) require that `T: HasAfEnum`,
149
+ /// meaning that `T` must be one of the numerical datatypes supported by Arrayfire.
147
150
///
148
151
/// ## Sharing Across Threads
149
152
///
@@ -161,7 +164,7 @@ extern "C" {
161
164
/// All operators(traits) from std::ops module implemented for Array object
162
165
/// carry out element wise operations. For example, `*` does multiplication of
163
166
/// elements at corresponding locations in two different Arrays.
164
- pub struct Array < T : HasAfEnum > {
167
+ pub struct Array < T > {
165
168
handle : af_array ,
166
169
/// The phantom marker denotes the
167
170
/// allocation of data on compute device
@@ -707,10 +710,7 @@ where
707
710
}
708
711
709
712
/// To free resources when Array goes out of scope
710
- impl < T > Drop for Array < T >
711
- where
712
- T : HasAfEnum ,
713
- {
713
+ impl < T > Drop for Array < T > {
714
714
fn drop ( & mut self ) {
715
715
unsafe {
716
716
let ret_val = af_release_array ( self . handle ) ;
You can’t perform that action at this time.
0 commit comments