Skip to main content

weir/fixed_point_batch/ifds/
accessors.rs

1use crate::fixed_point_batch::FixedPointBatch;
2
3impl<'a, F> FixedPointBatch<'a, F>
4where
5    F: Fn(&vyre::ir::Program, &[&[u8]], Option<[u32; 3]>, &mut Vec<Vec<u8>>) -> Result<(), String>,
6{
7    /// Inspect retained IFDS scratch after one or more batch solves.
8    #[must_use]
9    pub fn ifds_scratch(&self) -> &crate::ifds_gpu::IfdsSolveScratch {
10        &self.ifds_scratch
11    }
12
13    /// Inspect retained IFDS preparation scratch after one or more prepares.
14    #[must_use]
15    pub fn ifds_prepare_scratch(&self) -> &crate::ifds_gpu::IfdsPrepareScratch {
16        &self.ifds_prepare_scratch
17    }
18}