Sha256: b90d6f110e552562ab223c9b564f1f984ee616d86b4a2d9ab10dc306bb97f023
Contents?: true
Size: 1.18 KB
Versions: 275
Compression:
Stored size: 1.18 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 matrix = error "You need to implement this function." column :: Int -> Matrix a -> Vector a column x matrix = error "You need to implement this function." flatten :: Matrix a -> Vector a flatten matrix = error "You need to implement this function." fromList :: [[a]] -> Matrix a fromList xss = error "You need to implement this function." fromString :: Read a => String -> Matrix a fromString xs = error "You need to implement this function." reshape :: (Int, Int) -> Matrix a -> Matrix a reshape dimensions matrix = error "You need to implement this function." row :: Int -> Matrix a -> Vector a row x matrix = error "You need to implement this function." rows :: Matrix a -> Int rows matrix = error "You need to implement this function." shape :: Matrix a -> (Int, Int) shape matrix = error "You need to implement this function." transpose :: Matrix a -> Matrix a transpose matrix = error "You need to implement this function."
Version data entries
275 entries across 275 versions & 1 rubygems