Sha256: 940949d260c685b733e28af140b7a922b3b416689214819a173305fe7c65245b

Contents?: true

Size: 1.11 KB

Versions: 54

Compression:

Stored size: 1.11 KB

Contents

module Matrix
    ( Matrix
    , cols
    , column
    , flatten
    , fromList
    , fromString
    , reshape
    , row
    , rows
    , shape
    , transpose
    ) where

import Data.Vector (Vector)

data Matrix a = Dummy deriving (Eq, Show)

cols :: Matrix a -> Int
cols = error "You need to implement this function."

column :: Int -> Matrix a -> Vector a
column = error "You need to implement this function."

flatten :: Matrix a -> Vector a
flatten = error "You need to implement this function."

fromList :: [[a]] -> Matrix a
fromList = error "You need to implement this function."

fromString :: Read a => String -> Matrix a
fromString = error "You need to implement this function."

reshape :: (Int, Int) -> Matrix a -> Matrix a
reshape = error "You need to implement this function."

row :: Int -> Matrix a -> Vector a
row = error "You need to implement this function."

rows :: Matrix a -> Int
rows = error "You need to implement this function."

shape :: Matrix a -> (Int, Int)
shape = error "You need to implement this function."

transpose :: Matrix a -> Matrix a
transpose = error "You need to implement this function."

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
trackler-2.0.7.0 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.6.44 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.6.43 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.6.42 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.6.41 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.6.40 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.6.39 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.6.38 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.6.37 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.6.36 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.6.35 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.6.34 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.6.33 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.6.32 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.6.31 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.6.30 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.6.29 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.6.28 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.6.27 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.6.26 tracks/haskell/exercises/matrix/src/Matrix.hs