use crate::{Engine, Matrix, Result};
pub fn from_f32(shape: impl Into<Vec<usize>>, values: &[f32]) -> Result<Matrix> {
let shape = shape.into();
Engine::with_default(|engine| from_f32_on(engine, shape, values))
}
pub fn from_f32_on(
engine: &Engine,
shape: impl Into<Vec<usize>>,
values: &[f32],
) -> Result<Matrix> {
Matrix::from_f32(engine, shape, values)
}
pub fn ones(engine: &Engine, shape: impl Into<Vec<usize>>) -> Result<Matrix> {
Matrix::filled_f32(engine, shape, 1.0)
}
pub fn full(engine: &Engine, shape: impl Into<Vec<usize>>, value: f32) -> Result<Matrix> {
Matrix::filled_f32(engine, shape, value)
}