Expand description
Core shared types and utilities for the nabled workspace.
nabled-core is the common substrate used by nabled-linalg and
nabled-ml. It intentionally stays lightweight and focused on:
- Shared error taxonomy (
ShapeError,NabledError,IntoNabledError). - Reusable shape/validation helpers over ndarray inputs.
- Prelude exports for ndarray and complex number types.
§Main Modules
errors: shared error contracts used across workspace crates.validation: reusable ndarray validation helpers.prelude: common array/scalar and complex-number type exports.scalar: shared real-scalar trait bounds (f32/f64).
§Example
use ndarray::{arr1, arr2};
use nabled_core::validation::validate_square_system;
let a = arr2(&[[2.0_f64, 1.0], [1.0, 2.0]]);
let b = arr1(&[1.0_f64, 1.0]);
validate_square_system(&a, &b)?;Modules§
- errors
- Shared error types for ndarray-native kernels.
- prelude
- scalar
- Shared scalar trait bounds.
- validation
- Shared ndarray validation helpers.