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 | Haskell98 |
- 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
Enum MatrixType Source # | Create a new matrix descriptor, with matrix type http://docs.nvidia.com/cuda/cusparse/index.html#cusparsecreatematdescr |
Eq MatrixType Source # | |
Show MatrixType Source # | |
Indicates whether indexing of matrix elements starts at zero or one.
http://docs.nvidia.com/cuda/cusparse/index.html#cusparseindexbaset
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
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