Hoogle Search
Within LTS Haskell 24.41 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
liftSTMatrix :: Element t => (Matrix t -> a) -> STMatrix s t -> ST s ahmatrix Numeric.LinearAlgebra.Devel No documentation available.
mapMatrixWithIndex :: (Element a, Storable b) => ((Int, Int) -> a -> b) -> Matrix a -> Matrix bhmatrix Numeric.LinearAlgebra.Devel >>> mapMatrixWithIndex (\(i,j) v -> 100*v + 10*fromIntegral i + fromIntegral j) (ident 3:: Matrix Double) (3><3) [ 100.0, 1.0, 2.0 , 10.0, 111.0, 12.0 , 20.0, 21.0, 122.0 ]
-
hmatrix Numeric.LinearAlgebra.Devel >>> mapMatrixWithIndexM (\(i,j) v -> Just $ 100*v + 10*fromIntegral i + fromIntegral j) (ident 3:: Matrix Double) Just (3><3) [ 100.0, 1.0, 2.0 , 10.0, 111.0, 12.0 , 20.0, 21.0, 122.0 ]
mapMatrixWithIndexM_ :: (Element a, Num a, Monad m) => ((Int, Int) -> a -> m ()) -> Matrix a -> m ()hmatrix Numeric.LinearAlgebra.Devel >>> mapMatrixWithIndexM_ (\(i,j) v -> printf "m[%d,%d] = %.f\n" i j v :: IO()) ((2><3)[1 :: Double ..]) m[0,0] = 1 m[0,1] = 2 m[0,2] = 3 m[1,0] = 4 m[1,1] = 5 m[1,2] = 6
matrixFromVector :: Storable t => MatrixOrder -> Int -> Int -> Vector t -> Matrix thmatrix Numeric.LinearAlgebra.Devel No documentation available.
modifyMatrix :: Storable t => STMatrix s t -> Int -> Int -> (t -> t) -> ST s ()hmatrix Numeric.LinearAlgebra.Devel No documentation available.
newMatrix :: Storable t => t -> Int -> Int -> ST s (STMatrix s t)hmatrix Numeric.LinearAlgebra.Devel No documentation available.
newUndefinedMatrix :: Storable t => MatrixOrder -> Int -> Int -> ST s (STMatrix s t)hmatrix Numeric.LinearAlgebra.Devel No documentation available.
readMatrix :: Storable t => STMatrix s t -> Int -> Int -> ST s thmatrix Numeric.LinearAlgebra.Devel No documentation available.
runSTMatrix :: Storable t => (forall s . () => ST s (STMatrix s t)) -> Matrix thmatrix Numeric.LinearAlgebra.Devel No documentation available.