comet_rs/
index.rs

1
2
3//! Range-based index label constructs (e.g., [i, j]) represent the range of indices expressed through a scalar, a range, or a range with increment.
4//! Index labels can be used both for constructing a tensor or for representing a tensor operation.
5//! In a tensor construction, index labels are used to represent each dimension size.
6//! In the context of a tensor operation, they represent slicing information of the tensor object where the operation will be applied.
7
8pub struct Index {}
9impl Index {
10    /// Creates a new dynamic index label, where the size of the index is not known at compile time, and is instead determined at runtime, typically from reading a file containing a representation of a tensor
11    pub fn new() -> Index {
12        Index {}
13    }
14    /// Creates a new static index label, where the size of the index is known at compile time
15    pub fn with_value(_value: usize) -> Index {
16        Index {}
17    }
18}