pub struct ComplexityResult {
pub complexity_class: String,
pub estimated_flops: f64,
pub recommended_algorithm: String,
pub estimated_time_us: f64,
pub sparsity: f64,
}Expand description
Result of complexity estimation.
Fields§
§complexity_class: StringEstimated time complexity class (e.g. “O(n log n)”).
estimated_flops: f64Estimated number of floating-point operations.
recommended_algorithm: StringRecommended algorithm for this problem size.
estimated_time_us: f64Estimated wall-clock time in microseconds.
sparsity: f64Sparsity ratio (nnz / n^2).
Trait Implementations§
Source§impl FromNapiValue for ComplexityResult
impl FromNapiValue for ComplexityResult
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl ToNapiValue for ComplexityResult
impl ToNapiValue for ComplexityResult
Source§unsafe fn to_napi_value(
env: napi_env,
val: ComplexityResult,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: ComplexityResult, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for ComplexityResult
impl TypeName for ComplexityResult
Source§impl ValidateNapiValue for ComplexityResult
impl ValidateNapiValue for ComplexityResult
Source§unsafe fn validate(
env: *mut napi_env__,
napi_val: *mut napi_value__,
) -> Result<*mut napi_value__, Error>
unsafe fn validate( env: *mut napi_env__, napi_val: *mut napi_value__, ) -> Result<*mut napi_value__, Error>
Safety Read more
Auto Trait Implementations§
impl Freeze for ComplexityResult
impl RefUnwindSafe for ComplexityResult
impl Send for ComplexityResult
impl Sync for ComplexityResult
impl Unpin for ComplexityResult
impl UnsafeUnpin for ComplexityResult
impl UnwindSafe for ComplexityResult
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