ghc -optc-O3 -optc-march=native $(GHC_OPTS) src/*.hs
llvm: src/*.hs
- ghc -fllvm $(GHC_OPTS) src/*.hs
-
-all: $(BIN) test_src
-
-test_src: src/Tests/*.hs
- ghc $(GHC_OPTS) src/*.hs src/Tests/*.hs
+ ghc -fllvm -optlo-O3 -optlc-O3 $(GHC_OPTS) src/*.hs
profile: src/*.hs
ghc -optc-O3 -optc-march=native $(GHC_OPTS) -prof -auto-all -caf-all src/*.hs
DOCS := -i /usr/share/doc/ghc-*/html/libraries/base-*/base.haddock
DOCS += -i /usr/share/doc/ghc-*/html/libraries/ghc-prim-*/ghc-prim.haddock
DOCS += -i /usr/share/doc/ghc-*/html/libraries/haskell98-*/haskell98.haddock
-DOCS += -i /usr/share/doc/storable-complex-*/html/storable-complex.haddock
DOCS += -i /usr/share/doc/quickcheck-*/html/QuickCheck.haddock
-DOCS += -i /usr/share/doc/hmatrix-*/html/hmatrix.haddock
DOCS += -i /usr/share/doc/hunit-*/html/HUnit.haddock
+DOCS += -i /usr/share/doc/test-framework-*/html/test-framework.haddock
+DOCS += -i /usr/share/doc/repa-*/html/repa.haddock
+DOCS += -i /usr/share/doc/vector-*/html/vector.haddock
HTMLS := /usr/share/doc/ghc-*/html/libraries/base-*/*.html
HTMLS += /usr/share/doc/ghc-*/html/libraries/haskell98-*/*.html
HTMLS += /usr/share/doc/quickcheck-*/html/*.html
HTMLS += /usr/share/doc/hunit-*/html/*.html
-HTMLS += /usr/share/doc/storable-complex-*/html/*.html
-HTMLS += /usr/share/doc/hmatrix-*/html/*.html
+HTMLS += /usr/share/doc/test-framework-*/html/*.html
+HTMLS += /usr/share/doc/vector-*/html/*.html
+HTMLS += /usr/share/doc/repa-*/html/*.html
HSCOLOUR_SRCS := /usr/share/doc/ghc-*/html/libraries/base-*/src/*
HSCOLOUR_SRCS += /usr/share/doc/ghc-*/html/libraries/ghc-prim-*/src/*
HSCOLOUR_SRCS += /usr/share/doc/ghc-*/html/libraries/haskell98-*/src/*
-HSCOLOUR_SRCS += /usr/share/doc/hmatrix-*/html/src/*
+HSCOLOUR_SRCS += /usr/share/doc/test-framework-*/html/src/*
+HSCOLOUR_SRCS += /usr/share/doc/vector-*/html/src/*
+HSCOLOUR_SRCS += /usr/share/doc/repa-*/html/src/*.html
doc: src_html
cp -n $(HTMLS) ./doc/html/
--odir=doc/html/ --title="spline3" \
--source-module="src/%{MODULE/.//}.html" \
--source-entity="src/%{MODULE/.//}.html#%{NAME}" \
- src/*.hs src/Tests/*.hs
+ src/*.hs
SSH_USER=root@michael.orlitzky.com
PUBLIC_DOCDIR=/var/www/orlitzky.com/michael/public/spline3/
+-- | The MRI module contains functionsd and definitions relevant (and
+-- specific) to the MRI data files found at,
+--
+-- <http://graphics.stanford.edu/data/voldata/>
+--
module MRI (
flip_x,
flip_y,
mri_slice3d :: DIM3
mri_slice3d = (Z :. 1 :. mri_height :. mri_width)
+-- | RawData is an array of words (16 bits), as contained in the MRI
+-- data files.
type RawData sh = Array sh Word16
+
+-- | A specialization of the 'RawData' type, to three dimensions.
type RawData3D = RawData DIM3
type RGB = (Word8, Word8, Word8)