-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
finally adding those exotic but cool formats i've talked about forever
- Loading branch information
Showing
3 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
{-# LANGUAGE TypeOperators #-} | ||
|
||
module Numerical.Array.Layout.Het where | ||
|
||
import Numerical.Array.Layout.Base | ||
import Data.Dynamic | ||
|
||
|
||
--- this operation is needed | ||
--- so that we can define composite formats, eg | ||
--- zero copy concatenations of arrays with mixed but | ||
--- compatible formats | ||
fromSomeAddress :: (Typeable addr, addr ~ LayoutAddress form ) => p form -> Dynamic -> Maybe addr | ||
Check failure on line 14 in src/Numerical/Array/Layout/Het.hs GitHub Actions / GHC8.6.5,cabal3.2.0.0,ubuntu-latest
Check failure on line 14 in src/Numerical/Array/Layout/Het.hs GitHub Actions / GHC8.8.3,cabal3.2.0.0,ubuntu-latest
Check failure on line 14 in src/Numerical/Array/Layout/Het.hs GitHub Actions / GHC8.10.3,cabal3.2.0.0,ubuntu-latest
Check failure on line 14 in src/Numerical/Array/Layout/Het.hs GitHub Actions / GHClatest,cabal3.2.0.0,ubuntu-latest
Check failure on line 14 in src/Numerical/Array/Layout/Het.hs GitHub Actions / GHClatest,caballatest,macOS-latest
|
||
fromSomeAddress _ x = fromDynamic x | ||
{- | ||
The purpose of this module is to illustrate | ||
and substantiate zero copy vertical and horizontal | ||
concatenation of compatibly oriented Rectilinear formats | ||
-} | ||
|
||
newtype SomeAddr = MkAddr Dynamic |