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.8.20 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.8.19 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.8.18 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.8.17 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.8.16 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.8.15 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.8.14 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.8.13 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.8.12 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.8.11 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.8.10 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.8.9 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.8.8 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.8.7 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.8.6 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.8.5 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.8.4 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.8.3 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.8.2 tracks/haskell/exercises/matrix/src/Matrix.hs
trackler-2.0.8.1 tracks/haskell/exercises/matrix/src/Matrix.hs