Expand description
Unified tensor factorization module.
This module provides a unified factorize() function that dispatches to
SVD, QR, LU, or CI (Cross Interpolation) algorithms based on options.
§Note
This module works with concrete types (DynIndex, TensorDynLen) only.
Generic tensor types are not supported.
§Example
ⓘ
use tensor4all_core::{factorize, FactorizeOptions, FactorizeAlg, Canonical};
let result = factorize(&tensor, &left_inds, &FactorizeOptions::default())?;
// result.left * result.right ≈ tensorRe-exports§
pub use crate::tensor_like::Canonical;pub use crate::tensor_like::FactorizeAlg;pub use crate::tensor_like::FactorizeError;pub use crate::tensor_like::FactorizeOptions;pub use crate::tensor_like::FactorizeResult;
Functions§
- factorize
- Factorize a tensor into left and right factors.