//! Shared input guard for `matten-mlprep` (RFC-028 §3, §6).
use crateMattenMlprepError;
use Tensor;
/// Validates that `x` is a numeric rank-2 tensor and returns `(rows, cols)`.
///
/// Enforces the `rows = samples`, `columns = features` convention for every
/// public entry point. Rejects dynamic tensors unconditionally — this guard
/// does not depend on the companion `dynamic` feature being enabled (RFC-031).
pub