ParallelOp

Trait ParallelOp 

Source
pub trait ParallelOp<T: Float + Send + Sync + Clone + 'static> {
    const MIN_PARALLEL_SIZE: usize = 1_000usize;

    // Provided method
    fn should_parallelize(&self, size: usize) -> bool { ... }
}
Expand description

並列操作の基本トレイト Base trait for parallel operations

Provided Associated Constants§

Source

const MIN_PARALLEL_SIZE: usize = 1_000usize

並列実行の最小サイズ閾値 Minimum size threshold for parallel execution

Provided Methods§

Source

fn should_parallelize(&self, size: usize) -> bool

並列実行が効率的かどうかを判定 Determine if parallel execution is efficient

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T: Float + Send + Sync + Clone + 'static> ParallelOp<T> for Tensor<T>

Tensorの並列操作実装 Parallel operations implementation for Tensor