macro_rules! error {
($error_type:ident, $msg:expr) => { ... };
}Expand description
Create a RustQuantError with the text to include in the output.
You would use it as follows:
ⓘ
return Err(
error!(
ComputationError,
"Linear Regression: Singular Value Decomposition failed."
)
);