pub enum RustitudeError {
IOError(Error),
ParquetError(ParquetError),
OxyrootError(String),
ThreadPoolBuildError(ThreadPoolBuildError),
DatasetReadError(String, String),
ParameterNotFoundError(String),
AmplitudeNotFoundError(String),
InvalidParameterValue(String),
EvaluationError(String),
PythonError(String),
ParseError(String),
}
Expand description
The main Error
structure for rustitude_core
. All errors internal to the crate should
eventually pass through here, since it provides a single-location interface for PyO3
errors.
Variants§
IOError(Error)
ParquetError(ParquetError)
OxyrootError(String)
ThreadPoolBuildError(ThreadPoolBuildError)
DatasetReadError(String, String)
ParameterNotFoundError(String)
AmplitudeNotFoundError(String)
InvalidParameterValue(String)
EvaluationError(String)
PythonError(String)
ParseError(String)
Trait Implementations§
Source§impl Debug for RustitudeError
impl Debug for RustitudeError
Source§impl Display for RustitudeError
impl Display for RustitudeError
Source§impl Error for RustitudeError
impl Error for RustitudeError
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<Error> for RustitudeError
impl From<Error> for RustitudeError
Source§impl From<ParquetError> for RustitudeError
impl From<ParquetError> for RustitudeError
Source§fn from(source: ParquetError) -> Self
fn from(source: ParquetError) -> Self
Converts to this type from the input type.
Source§impl From<PyErr> for RustitudeError
impl From<PyErr> for RustitudeError
Source§impl From<RustitudeError> for PyErr
impl From<RustitudeError> for PyErr
Source§fn from(err: RustitudeError) -> Self
fn from(err: RustitudeError) -> Self
Converts to this type from the input type.
Source§impl From<ThreadPoolBuildError> for RustitudeError
impl From<ThreadPoolBuildError> for RustitudeError
Source§fn from(source: ThreadPoolBuildError) -> Self
fn from(source: ThreadPoolBuildError) -> Self
Converts to this type from the input type.
Source§impl<F: Field + Field> Function<F, (), RustitudeError> for ExtendedLogLikelihood<F>
impl<F: Field + Field> Function<F, (), RustitudeError> for ExtendedLogLikelihood<F>
Source§fn evaluate(
&self,
x: &DVector<F>,
_args: Option<&()>,
) -> Result<F, RustitudeError>
fn evaluate( &self, x: &DVector<F>, _args: Option<&()>, ) -> Result<F, RustitudeError>
Evaluates the function at the given point. Read more
Source§fn gradient(
&self,
x: &Matrix<F, Dyn, Const<1>, VecStorage<F, Dyn, Const<1>>>,
args: Option<&A>,
) -> Result<Matrix<F, Dyn, Const<1>, VecStorage<F, Dyn, Const<1>>>, E>
fn gradient( &self, x: &Matrix<F, Dyn, Const<1>, VecStorage<F, Dyn, Const<1>>>, args: Option<&A>, ) -> Result<Matrix<F, Dyn, Const<1>, VecStorage<F, Dyn, Const<1>>>, E>
Computes the gradient of the function at the given point using central finite
differences. Read more
Source§fn gradient_and_hessian(
&self,
x: &Matrix<F, Dyn, Const<1>, VecStorage<F, Dyn, Const<1>>>,
args: Option<&A>,
) -> Result<(Matrix<F, Dyn, Const<1>, VecStorage<F, Dyn, Const<1>>>, Matrix<F, Dyn, Dyn, VecStorage<F, Dyn, Dyn>>), E>
fn gradient_and_hessian( &self, x: &Matrix<F, Dyn, Const<1>, VecStorage<F, Dyn, Const<1>>>, args: Option<&A>, ) -> Result<(Matrix<F, Dyn, Const<1>, VecStorage<F, Dyn, Const<1>>>, Matrix<F, Dyn, Dyn, VecStorage<F, Dyn, Dyn>>), E>
Computes both the gradient and the Hessian matrix of the function at the given point. Read more
Auto Trait Implementations§
impl Freeze for RustitudeError
impl !RefUnwindSafe for RustitudeError
impl Send for RustitudeError
impl Sync for RustitudeError
impl Unpin for RustitudeError
impl !UnwindSafe for RustitudeError
Blanket Implementations§
Source§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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.