Applied discussed changes, everything working, but still to discuss

This commit is contained in:
Jean-Philippe Bossuat
2025-05-01 10:33:19 +02:00
parent 4e6fce3458
commit ca5e6d46c9
14 changed files with 710 additions and 508 deletions

View File

@@ -28,6 +28,7 @@ impl<B: Backend> ZnxAlloc<B> for ScalarZnxDft<B> {
type Scalar = u8;
fn from_bytes_borrow(module: &Module<B>, _rows: usize, cols: usize, _size: usize, bytes: &mut [u8]) -> Self {
debug_assert_eq!(bytes.len(), Self::bytes_of(module, _rows, cols, _size));
Self {
inner: ZnxBase::from_bytes_borrow(
module.n(),
@@ -61,6 +62,6 @@ impl ZnxLayout for ScalarZnxDft<FFT64> {
impl ZnxSliceSize for ScalarZnxDft<FFT64> {
fn sl(&self) -> usize {
self.n()
self.n() * self.cols()
}
}