Move the StridedIndex in its own module.

This commit is contained in:
laurent
2023-06-21 07:44:36 +01:00
parent 23db8a7da8
commit 3a5405ca6d
4 changed files with 66 additions and 63 deletions

View File

@ -232,8 +232,8 @@ impl Tensor {
Ok(Self(Arc::new(tensor_)))
}
pub(crate) fn strided_index(&self) -> crate::storage::StridedIndex {
crate::storage::StridedIndex::new(self.dims(), self.stride())
pub(crate) fn strided_index(&self) -> crate::StridedIndex {
crate::StridedIndex::new(self.dims(), self.stride())
}
pub fn to_vec1<S: crate::WithDType>(&self) -> Result<Vec<S>> {