@@ -1294,51 +1294,51 @@ macro_rules! dim_reduce_by_key_func_def {
12941294
12951295dim_reduce_by_key_func_def ! (
12961296 "
1297- Key based AND of elements along a given dimension
1297+ Key based AND of elements along a given dimension
12981298
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+ " ,
13021302 "
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+ " ,
13161316 all_true_by_key,
13171317 af_all_true_by_key,
13181318 ValueType :: AggregateOutType
13191319) ;
13201320
13211321dim_reduce_by_key_func_def ! (
13221322 "
1323- Key based OR of elements along a given dimension
1323+ Key based OR of elements along a given dimension
13241324
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+ " ,
13281328 "
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+ " ,
13421342 any_true_by_key,
13431343 af_any_true_by_key,
13441344 ValueType :: AggregateOutType
0 commit comments