@@ -1294,51 +1294,51 @@ macro_rules! dim_reduce_by_key_func_def {
1294
1294
1295
1295
dim_reduce_by_key_func_def ! (
1296
1296
"
1297
- Key based AND of elements along a given dimension
1297
+ Key based AND of elements along a given dimension
1298
1298
1299
- All positive non-zero values are considered true, while negative and zero
1300
- values are considered as false.
1301
- ",
1299
+ All positive non-zero values are considered true, while negative and zero
1300
+ values are considered as false.
1301
+ " ,
1302
1302
"
1303
- # Examples
1304
- ```rust
1305
- use arrayfire::{Dim4, print, randu, all_true_by_key};
1306
- let dims = Dim4::new(&[5, 3, 1, 1]);
1307
- let vals = randu::<f32>(dims);
1308
- let keys = randu::<u32>(Dim4::new(&[5, 1, 1, 1]));
1309
- print(&vals);
1310
- print(&keys);
1311
- let (out_keys, out_vals) = all_true_by_key(&keys, &vals, 0);
1312
- print(&out_keys);
1313
- print(&out_vals);
1314
- ```
1315
- ",
1303
+ # Examples
1304
+ ```rust
1305
+ use arrayfire::{Dim4, print, randu, all_true_by_key};
1306
+ let dims = Dim4::new(&[5, 3, 1, 1]);
1307
+ let vals = randu::<f32>(dims);
1308
+ let keys = randu::<u32>(Dim4::new(&[5, 1, 1, 1]));
1309
+ print(&vals);
1310
+ print(&keys);
1311
+ let (out_keys, out_vals) = all_true_by_key(&keys, &vals, 0);
1312
+ print(&out_keys);
1313
+ print(&out_vals);
1314
+ ```
1315
+ " ,
1316
1316
all_true_by_key,
1317
1317
af_all_true_by_key,
1318
1318
ValueType :: AggregateOutType
1319
1319
) ;
1320
1320
1321
1321
dim_reduce_by_key_func_def ! (
1322
1322
"
1323
- Key based OR of elements along a given dimension
1323
+ Key based OR of elements along a given dimension
1324
1324
1325
- All positive non-zero values are considered true, while negative and zero
1326
- values are considered as false.
1327
- ",
1325
+ All positive non-zero values are considered true, while negative and zero
1326
+ values are considered as false.
1327
+ " ,
1328
1328
"
1329
- # Examples
1330
- ```rust
1331
- use arrayfire::{Dim4, print, randu, any_true_by_key};
1332
- let dims = Dim4::new(&[5, 3, 1, 1]);
1333
- let vals = randu::<f32>(dims);
1334
- let keys = randu::<u32>(Dim4::new(&[5, 1, 1, 1]));
1335
- print(&vals);
1336
- print(&keys);
1337
- let (out_keys, out_vals) = any_true_by_key(&keys, &vals, 0);
1338
- print(&out_keys);
1339
- print(&out_vals);
1340
- ```
1341
- ",
1329
+ # Examples
1330
+ ```rust
1331
+ use arrayfire::{Dim4, print, randu, any_true_by_key};
1332
+ let dims = Dim4::new(&[5, 3, 1, 1]);
1333
+ let vals = randu::<f32>(dims);
1334
+ let keys = randu::<u32>(Dim4::new(&[5, 1, 1, 1]));
1335
+ print(&vals);
1336
+ print(&keys);
1337
+ let (out_keys, out_vals) = any_true_by_key(&keys, &vals, 0);
1338
+ print(&out_keys);
1339
+ print(&out_vals);
1340
+ ```
1341
+ " ,
1342
1342
any_true_by_key,
1343
1343
af_any_true_by_key,
1344
1344
ValueType :: AggregateOutType
0 commit comments