//! # Companion example: `Tensor` -> `ArrayD` (matten-ndarray)
//!
//! Run: cargo run -p matten-ndarray --example to_arrayd
//!
//! ## What this shows
//! Converting a numeric `matten::Tensor` into an `ndarray::ArrayD<f64>`.
//!
//! ## Teaching points
//! - the conversion **copies** data into the `ArrayD` (no zero-copy claim);
//! - shape is preserved (printed before and after);
//! - only numeric tensors convert — a dynamic/heterogeneous tensor must be made
//! numeric first (hence the `expect` on a `Result`);
//! - core `matten` does not depend on `ndarray`; the bridge lives in this crate.
use Tensor;
use to_arrayd;