Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data FArrayType = FArrayType {}
- newtype Shape = Shape {}
- fatSize :: FArrayType -> Natural
Documentation
data FArrayType Source #
A Fortran array type.
An array type is defined by a scalar type together with a shape.
Instances
The shape of a Fortran array is a list of extents. (The rank of the array is length of the list.)
Note that the F90 standard limits maximum array rank to 7 (R512).
TODO * An empty list here feels nonsensical. Perhaps this should be NonEmpty. * List type is inefficient here, since we don't care about pushing/popping, and list length is important. Use a vector type instead.
Instances
Data Shape Source # | |
Defined in Language.Fortran.Repr.Type.Array gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Shape -> c Shape # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Shape # dataTypeOf :: Shape -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Shape) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Shape) # gmapT :: (forall b. Data b => b -> b) -> Shape -> Shape # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Shape -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Shape -> r # gmapQ :: (forall d. Data d => d -> u) -> Shape -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Shape -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Shape -> m Shape # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Shape -> m Shape # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Shape -> m Shape # | |
Generic Shape Source # | |
Show Shape Source # | |
Eq Shape Source # | |
Ord Shape Source # | |
type Rep Shape Source # | |
Defined in Language.Fortran.Repr.Type.Array |
fatSize :: FArrayType -> Natural Source #