use scirs2_core::array;
fn main() -> Result<(), Box<dyn std::error::Error>> {
println!("🎯 Testing array! macro re-export from scirs2_core");
let vector = array![1.0, 2.0, 3.0, 4.0, 5.0];
println!("1D array: {:?}", vector);
println!("Shape: {:?}", vector.shape());
let matrix = array![[1, 2, 3], [4, 5, 6], [7, 8, 9]];
println!("2D matrix: {:?}", matrix);
println!("Shape: {:?}", matrix.shape());
let tensor = array![[[1, 2], [3, 4]], [[5, 6], [7, 8]]];
println!("3D tensor: {:?}", tensor);
println!("Shape: {:?}", tensor.shape());
println!("matrix[1, 2] = {}", matrix[[1, 2]]);
println!("tensor[1, 0, 1] = {}", tensor[[1, 0, 1]]);
println!("✅ Array macro re-export working correctly!");
Ok(())
}