blas-0.5: Bindings to the BLAS librarySource codeContentsIndex
Data.Matrix.Banded
Stabilityexperimental
MaintainerPatrick Perry <patperry@stanford.edu>
Contents
Banded matrix type
Creating banded matrices
Properties
Rows and columns
Diagonals
Casting matrices
Converting between vectors and matrices
Unsafe operations
Description
Synopsis
type Banded = BMatrix Imm
module BLAS.Matrix.Base
module BLAS.Tensor.Base
module BLAS.Tensor.Dense.Immutable
module BLAS.Tensor.Immutable
module BLAS.Tensor.Scalable
module Data.Matrix.Banded.Operations
banded :: BLAS1 e => (Int, Int) -> (Int, Int) -> [((Int, Int), e)] -> Banded (m, n) e
listsBanded :: BLAS1 e => (Int, Int) -> (Int, Int) -> [[e]] -> Banded (m, n) e
numLower :: BMatrix t (m, n) e -> Int
numUpper :: BMatrix t (m, n) e -> Int
bandwidth :: BMatrix t (m, n) e -> (Int, Int)
row :: BLAS1 e => Banded (m, n) e -> Int -> Vector n e
col :: BLAS1 e => Banded (m, n) e -> Int -> Vector m e
rows :: BLAS1 e => Banded (m, n) e -> [Vector n e]
cols :: BLAS1 e => Banded (m, n) e -> [Vector m e]
diag :: Elem e => BMatrix t (m, n) e -> Int -> DVector t k e
toLists :: BLAS1 e => Banded (m, n) e -> ((Int, Int), (Int, Int), [[e]])
coerceBanded :: BMatrix t mn e -> BMatrix t kl e
unsafeBanded :: BLAS1 e => (Int, Int) -> (Int, Int) -> [((Int, Int), e)] -> Banded (m, n) e
unsafeRow :: BLAS1 e => Banded (m, n) e -> Int -> Vector n e
unsafeCol :: BLAS1 e => Banded (m, n) e -> Int -> Vector m e
unsafeDiag :: Elem e => BMatrix t (m, n) e -> Int -> DVector t k e
Banded matrix type
type Banded = BMatrix ImmSource
module BLAS.Matrix.Base
module BLAS.Tensor.Base
module BLAS.Tensor.Dense.Immutable
module BLAS.Tensor.Immutable
module BLAS.Tensor.Scalable
module Data.Matrix.Banded.Operations
Creating banded matrices
banded :: BLAS1 e => (Int, Int) -> (Int, Int) -> [((Int, Int), e)] -> Banded (m, n) eSource
listsBanded :: BLAS1 e => (Int, Int) -> (Int, Int) -> [[e]] -> Banded (m, n) eSource
Properties
numLower :: BMatrix t (m, n) e -> IntSource
numUpper :: BMatrix t (m, n) e -> IntSource
bandwidth :: BMatrix t (m, n) e -> (Int, Int)Source
Rows and columns
row :: BLAS1 e => Banded (m, n) e -> Int -> Vector n eSource
col :: BLAS1 e => Banded (m, n) e -> Int -> Vector m eSource
rows :: BLAS1 e => Banded (m, n) e -> [Vector n e]Source
cols :: BLAS1 e => Banded (m, n) e -> [Vector m e]Source
Diagonals
diag :: Elem e => BMatrix t (m, n) e -> Int -> DVector t k eSource
toLists :: BLAS1 e => Banded (m, n) e -> ((Int, Int), (Int, Int), [[e]])Source
Casting matrices
coerceBanded :: BMatrix t mn e -> BMatrix t kl eSource
Coerce the phantom shape type from one type to another.
Converting between vectors and matrices
Unsafe operations
unsafeBanded :: BLAS1 e => (Int, Int) -> (Int, Int) -> [((Int, Int), e)] -> Banded (m, n) eSource
unsafeRow :: BLAS1 e => Banded (m, n) e -> Int -> Vector n eSource
unsafeCol :: BLAS1 e => Banded (m, n) e -> Int -> Vector m eSource
unsafeDiag :: Elem e => BMatrix t (m, n) e -> Int -> DVector t k eSource
Produced by Haddock version 2.3.0