| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Torch.GraduallyTyped.Index.Type
Documentation
data Index (index :: Type) where Source #
Constructors
| UncheckedIndex :: forall index. Index index | |
| Index :: forall index. index -> Index index | |
| NegativeIndex :: forall index. index -> Index index |
Instances
| Show index => Show (Index index) Source # | |
| SingKind (Index Nat) Source # | |
| SingKind (Indices [IndexType (Index Nat)]) Source # | |
Defined in Torch.GraduallyTyped.Tensor.Indexing | |
| KnownNat index => SingI ('Index index :: Index Nat) Source # | |
| KnownNat index => SingI ('NegativeIndex index :: Index Nat) Source # | |
Defined in Torch.GraduallyTyped.Index.Type Methods sing :: Sing ('NegativeIndex index) Source # | |
| SingI indexTypes => SingI ('Indices indexTypes :: Indices [IndexType (Index Nat)]) Source # | |
| type Demote (Index Nat) Source # | |
Defined in Torch.GraduallyTyped.Index.Type | |
| type Demote (Indices [IndexType (Index Nat)]) Source # | |
| type Sing Source # | |
Defined in Torch.GraduallyTyped.Index.Type | |
| type Sing Source # | |
Defined in Torch.GraduallyTyped.Tensor.Indexing | |
data SIndex (index :: Index Nat) where Source #
Constructors
| SUncheckedIndex :: Integer -> SIndex 'UncheckedIndex | |
| SIndex :: forall index. KnownNat index => SIndex ('Index index) | |
| SNegativeIndex :: forall index. KnownNat index => SIndex ('NegativeIndex index) |
type family IndexF (index :: Index Nat) :: Nat where ... Source #
Equations
| IndexF ('Index index) = index | |
| IndexF ('NegativeIndex index) = index |
newtype DemotedIndex Source #
Constructors
| DemotedIndex Integer |