i(..) indexing sugar (partial).

- Only range, and select (no tensor_select)
- No negative indexing
This commit is contained in:
Nicolas Patry
2023-07-10 17:34:04 +02:00
parent 221b1aff65
commit ef0375d8bc
3 changed files with 249 additions and 1 deletions

View File

@ -43,6 +43,7 @@ pub mod display;
mod dtype;
mod dummy_cuda_backend;
mod error;
mod indexer;
mod layout;
mod npy;
mod op;
@ -57,6 +58,7 @@ pub use cpu_backend::CpuStorage;
pub use device::{Device, DeviceLocation};
pub use dtype::{DType, WithDType};
pub use error::{Error, Result};
pub use indexer::IndexOp;
pub use layout::Layout;
pub use shape::{Shape, D};
pub use storage::Storage;