Quick Start
Write and run your first Tensor program in 5 minutes.
1. Create a Project
Initialize a new project using the CLI:
mind new hello_tensor cd hello_tensor
2. Write Code
Open main.mnd and add the following:
fn main() {
let a = tensor([1.0, 2.0, 3.0]);
let b = tensor([4.0, 5.0, 6.0]);
// Native vector addition
let c = a + b;
print("Result: {}", c);
}
3. Run It
mind run # Output: Result: [5.0, 7.0, 9.0]