File size: 286 Bytes
712dbf0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
## Build and Run 

Install MLX with Python:

```bash
pip install mlx>=0.22
```

Build the C++ example:

```bash
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build
```

Run the C++ example:

```
./build/example
```

which should output:

```
array([2, 4, 6], dtype=int32)
```