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.6.25 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.6.24 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.6.23 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.6.22 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.6.21 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.6.20 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.6.19 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.6.18 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.6.17 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.6.16 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.6.15 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.6.14 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.6.13 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.6.12 tracks/haskell/exercises/matrix/src/Matrix.hs