sim_lib_numbers_tensor/
lib.rs1#![forbid(unsafe_code)]
2#![allow(deprecated)]
3#![deny(missing_docs)]
4
5mod implementation;
10mod spec;
11
12pub use implementation::{
13 Tensor, TensorNumbersLib, build_scalar_tensor_value, build_tensor_value,
14 flatten_tensor_scalar_cells, number_domain, tensor_dtype, tensor_value_class_symbol,
15 tensor_value_ref,
16};
17pub use sim_lib_numbers_core::domains;
18pub use spec::{
19 MAX_TENSOR_CELLS, SpecTensor, SpecTensorDescriptor, bounded_element_count,
20 checked_element_count, element_count, number_literal_for_tensor_cell,
21 parse_complex_literal_cell, parse_f64_literal_cell, parse_i64_literal_cell,
22 parse_rational_literal_cell, spec_tensor_descriptor_value, spec_tensor_symbol,
23};
24
25pub static RECIPES: sim_cookbook::EmbeddedDir =
27 include!(concat!(env!("OUT_DIR"), "/cookbook_recipes.rs"));
28
29#[cfg(test)]
30mod tests;