Class CudaSparseMatrixDescriptor
Wrapper class for cusparseMatDescr handle.
Inheritance
System.Object
CudaSparseMatrixDescriptor
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ManagedCuda.CudaSparse
Assembly: CudaSparse.dll
Syntax
public class CudaSparseMatrixDescriptor : IDisposable
Constructors
| Improve this Doc View SourceCudaSparseMatrixDescriptor()
When the matrix descriptor is created, its fields are initialized to: CUSPARSE_MATRIXYPE_GENERAL CUSPARSE_INDEX_BASE_ZERO All other fields are uninitialized
Declaration
public CudaSparseMatrixDescriptor()
CudaSparseMatrixDescriptor(cusparseFillMode, cusparseDiagType)
When the matrix descriptor is created, its fields are initialized to: CUSPARSE_MATRIXYPE_GENERAL CUSPARSE_INDEX_BASE_ZERO
Declaration
public CudaSparseMatrixDescriptor(cusparseFillMode fillMode, cusparseDiagType diagType)
Parameters
| Type | Name | Description |
|---|---|---|
| cusparseFillMode | fillMode | |
| cusparseDiagType | diagType |
CudaSparseMatrixDescriptor(cusparseMatrixType, cusparseFillMode, cusparseDiagType, cusparseIndexBase)
Creates a new CudaSparseMatrixDescriptor
Declaration
public CudaSparseMatrixDescriptor(cusparseMatrixType matrixType, cusparseFillMode fillMode, cusparseDiagType diagType, cusparseIndexBase indexBase)
Parameters
| Type | Name | Description |
|---|---|---|
| cusparseMatrixType | matrixType | |
| cusparseFillMode | fillMode | |
| cusparseDiagType | diagType | |
| cusparseIndexBase | indexBase |
Properties
| Improve this Doc View SourceDescriptor
Returns the inner handle.
Declaration
public cusparseMatDescr Descriptor { get; }
Property Value
| Type | Description |
|---|---|
| cusparseMatDescr |
Methods
| Improve this Doc View SourceCopy()
Declaration
public CudaSparseMatrixDescriptor Copy()
Returns
| Type | Description |
|---|---|
| CudaSparseMatrixDescriptor |
Dispose()
Dispose
Declaration
public void Dispose()
Dispose(Boolean)
For IDisposable
Declaration
protected virtual void Dispose(bool fDisposing)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | fDisposing |
Finalize()
For dispose
Declaration
protected void Finalize()
GetMatDiagType()
Returns matrix diagonal type
Declaration
public cusparseDiagType GetMatDiagType()
Returns
| Type | Description |
|---|---|
| cusparseDiagType |
GetMatFillMode()
Returns matrix fill mode
Declaration
public cusparseFillMode GetMatFillMode()
Returns
| Type | Description |
|---|---|
| cusparseFillMode |
GetMatIndexBase()
Returns matrix index base.
Declaration
public cusparseIndexBase GetMatIndexBase()
Returns
| Type | Description |
|---|---|
| cusparseIndexBase |
GetMatType()
Returns matrix type
Declaration
public cusparseMatrixType GetMatType()
Returns
| Type | Description |
|---|---|
| cusparseMatrixType |
SetMatDiagType(cusparseDiagType)
Sets matrix diagonal type
Declaration
public void SetMatDiagType(cusparseDiagType diagType)
Parameters
| Type | Name | Description |
|---|---|---|
| cusparseDiagType | diagType |
SetMatFillMode(cusparseFillMode)
Sets matrix fill mode
Declaration
public void SetMatFillMode(cusparseFillMode fillMode)
Parameters
| Type | Name | Description |
|---|---|---|
| cusparseFillMode | fillMode |
SetMatIndexBase(cusparseIndexBase)
Sets matrix index base
Declaration
public void SetMatIndexBase(cusparseIndexBase indexBase)
Parameters
| Type | Name | Description |
|---|---|---|
| cusparseIndexBase | indexBase |
SetMatType(cusparseMatrixType)
Sets the matrix type
Declaration
public void SetMatType(cusparseMatrixType type)
Parameters
| Type | Name | Description |
|---|---|---|
| cusparseMatrixType | type |
Implements
System.IDisposable