pub enum TCIError {
DimensionMismatch {
message: String,
},
IndexOutOfBounds {
message: String,
},
InvalidPivot {
message: String,
},
ConvergenceFailure {
iterations: usize,
},
Empty,
InvalidOperation {
message: String,
},
IndexInconsistency {
message: String,
},
MatrixCIError(MatrixCIError),
MatrixLuciError(MatrixLuciError),
TensorTrainError(TensorTrainError),
}Expand description
Errors that can occur during tensor cross interpolation operations
Variants§
DimensionMismatch
Dimension mismatch
IndexOutOfBounds
Invalid index
InvalidPivot
Invalid pivot
ConvergenceFailure
Convergence failure
Empty
Empty tensor train
InvalidOperation
Invalid operation
IndexInconsistency
Internal index inconsistency
MatrixCIError(MatrixCIError)
Matrix CI error
MatrixLuciError(MatrixLuciError)
Matrix LUCI substrate error
TensorTrainError(TensorTrainError)
Tensor train error
Trait Implementations§
Source§impl Error for TCIError
impl Error for TCIError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<TensorTrainError> for TCIError
impl From<TensorTrainError> for TCIError
Source§fn from(source: TensorTrainError) -> Self
fn from(source: TensorTrainError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TCIError
impl RefUnwindSafe for TCIError
impl Send for TCIError
impl Sync for TCIError
impl Unpin for TCIError
impl UnsafeUnpin for TCIError
impl UnwindSafe for TCIError
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> Twhere
Self: Distribution<T>,
§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> Twhere
Self: Distribution<T>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more