Copyright | [2017] Trevor L. McDonell |
---|---|
License | BSD3 |
Maintainer | Trevor L. McDonell <tmcdonell@cse.unsw.edu.au> |
Stability | experimental |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- newtype MatrixDescriptor = MatrixDescriptor {
- useMatDescr :: Ptr ()
- data MatrixType
- data IndexBase
- data Diagonal
- data Fill
- createMatDescr :: IO MatrixDescriptor
- destroyMatDescr :: MatrixDescriptor -> IO ()
- getDiagonal :: MatrixDescriptor -> IO Diagonal
- getFillMode :: MatrixDescriptor -> IO Fill
- getIndexBase :: MatrixDescriptor -> IO IndexBase
- getMatrixType :: MatrixDescriptor -> IO MatrixType
- setDiagonal :: MatrixDescriptor -> Diagonal -> IO ()
- setFillMode :: MatrixDescriptor -> Fill -> IO ()
- setIndexBase :: MatrixDescriptor -> IndexBase -> IO ()
- setMatrixType :: MatrixDescriptor -> MatrixType -> IO ()
Documentation
newtype MatrixDescriptor Source #
An opaque type used to describe the shape and properties of a matrix.
http://docs.nvidia.com/cuda/cusparse/index.html#cusparsematdescrt
MatrixDescriptor | |
|
data MatrixType Source #
Indicates the type of matrix.
http://docs.nvidia.com/cuda/cusparse/index.html#cusparsematrixtypet
Instances
Enum MatrixType Source # | Create a new matrix descriptor, with matrix type http://docs.nvidia.com/cuda/cusparse/index.html#cusparsecreatematdescr |
Defined in Foreign.CUDA.BLAS.Sparse.Matrix.Descriptor succ :: MatrixType -> MatrixType # pred :: MatrixType -> MatrixType # toEnum :: Int -> MatrixType # fromEnum :: MatrixType -> Int # enumFrom :: MatrixType -> [MatrixType] # enumFromThen :: MatrixType -> MatrixType -> [MatrixType] # enumFromTo :: MatrixType -> MatrixType -> [MatrixType] # enumFromThenTo :: MatrixType -> MatrixType -> MatrixType -> [MatrixType] # | |
Eq MatrixType Source # | |
Defined in Foreign.CUDA.BLAS.Sparse.Matrix.Descriptor (==) :: MatrixType -> MatrixType -> Bool # (/=) :: MatrixType -> MatrixType -> Bool # | |
Show MatrixType Source # | |
Defined in Foreign.CUDA.BLAS.Sparse.Matrix.Descriptor showsPrec :: Int -> MatrixType -> ShowS # show :: MatrixType -> String # showList :: [MatrixType] -> ShowS # |
Indicates whether indexing of matrix elements starts at zero or one.
http://docs.nvidia.com/cuda/cusparse/index.html#cusparseindexbaset
Instances
Enum IndexBase Source # | |
Defined in Foreign.CUDA.BLAS.Sparse.Matrix.Descriptor succ :: IndexBase -> IndexBase # pred :: IndexBase -> IndexBase # fromEnum :: IndexBase -> Int # enumFrom :: IndexBase -> [IndexBase] # enumFromThen :: IndexBase -> IndexBase -> [IndexBase] # enumFromTo :: IndexBase -> IndexBase -> [IndexBase] # enumFromThenTo :: IndexBase -> IndexBase -> IndexBase -> [IndexBase] # | |
Eq IndexBase Source # | |
Show IndexBase Source # | |
Indicates whether the diagonal elements of the matrix are unity. The
diagonal elements are always assumed to be present, but if Unit
is passed
to an API routine, then the routine assumes that all diagonal entries are
unity and will not read or modify those entries.
http://docs.nvidia.com/cuda/cusparse/index.html#cusparsediagtypet
Instances
Enum Diagonal Source # | |
Defined in Foreign.CUDA.BLAS.Sparse.Matrix.Descriptor | |
Eq Diagonal Source # | |
Show Diagonal Source # | |
Indicates whether the upper or lower part of the sparse matrix is stored.
http://docs.nvidia.com/cuda/cusparse/index.html#cusparsefillmodet
destroyMatDescr :: MatrixDescriptor -> IO () Source #
Release memory associated with a matrix descriptor.
http://docs.nvidia.com/cuda/cusparse/index.html#cusparsedestroymatdescr
getDiagonal :: MatrixDescriptor -> IO Diagonal Source #
Get the Diagonal
type field of the matrix descriptor.
http://docs.nvidia.com/cuda/cusparse/index.html#cusparsegetmatdiagtype
getFillMode :: MatrixDescriptor -> IO Fill Source #
Get the Fill
mode of the matrix descriptor.
http://docs.nvidia.com/cuda/cusparse/index.html#cusparsegetmatfillmode
getIndexBase :: MatrixDescriptor -> IO IndexBase Source #
Get the IndexBase
mode of the matrix descriptor.
http://docs.nvidia.com/cuda/cusparse/index.html#cusparsegetmatindexbase
getMatrixType :: MatrixDescriptor -> IO MatrixType Source #
Get the MatrixType
mode of the matrix descriptor.
http://docs.nvidia.com/cuda/cusparse/index.html#cusparsegetmattype
setDiagonal :: MatrixDescriptor -> Diagonal -> IO () Source #
Set the Diagonal
type field of the matrix descriptor.
http://docs.nvidia.com/cuda/cusparse/index.html#cusparsesetmatdiagtype
setFillMode :: MatrixDescriptor -> Fill -> IO () Source #
Set the Fill
mode of the matrix descriptor.
http://docs.nvidia.com/cuda/cusparse/index.html#cusparsesetmatfillmode
setIndexBase :: MatrixDescriptor -> IndexBase -> IO () Source #
Set the IndexBase
mode of the matrix descriptor.
http://docs.nvidia.com/cuda/cusparse/index.html#cusparsesetmatindexbase
setMatrixType :: MatrixDescriptor -> MatrixType -> IO () Source #
Set the MatrixType
mode of the matrix descriptor.
http://docs.nvidia.com/cuda/cusparse/index.html#cusparsesetmattype