mirror of
https://github.com/ml-explore/mlx.git
synced 2025-06-24 01:17:26 +08:00
15 lines
231 B
C++
15 lines
231 B
C++
// Copyright © 2024 Apple Inc.
|
|
|
|
#include <iostream>
|
|
|
|
#include "mlx/mlx.h"
|
|
|
|
namespace mx = mlx::core;
|
|
|
|
int main() {
|
|
auto x = mx::array({1, 2, 3});
|
|
auto y = mx::array({1, 2, 3});
|
|
std::cout << x + y << std::endl;
|
|
return 0;
|
|
}
|