/// <summary>
        /// Returns matrix fill mode
        /// </summary>
        /// <returns></returns>
        public cusparseFillMode GetMatFillMode()
        {
            cusparseFillMode fillMode = CudaSparseNativeMethods.cusparseGetMatFillMode(_descr);

            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cusparseGetMatFillMode", res));
            return(fillMode);
        }
Example #2
0
 public void SetAttribute(cusparseFillMode fillMode)
 {
     res = CudaSparseNativeMethods.cusparseSpMatSetAttribute(descr, cusparseSpMatAttribute.FillMode, ref fillMode, sizeof(cusparseFillMode));
     Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cusparseSpMatSetAttribute", res));
     if (res != cusparseStatus.Success)
     {
         throw new CudaSparseException(res);
     }
 }
 /// <summary>
 /// Sets matrix fill mode
 /// </summary>
 /// <param name="fillMode"></param>
 public void SetMatFillMode(cusparseFillMode fillMode)
 {
     res = CudaSparseNativeMethods.cusparseSetMatFillMode(_descr, fillMode);
     Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cusparseSetMatFillMode", res));
     if (res != cusparseStatus.Success)
     {
         throw new CudaSparseException(res);
     }
 }
        /// <summary>
        /// When the matrix descriptor is created, its fields are initialized to: 
		/// CUSPARSE_MATRIXYPE_GENERAL
		/// CUSPARSE_INDEX_BASE_ZERO
        /// </summary>
        public CudaSparseMatrixDescriptor(cusparseFillMode fillMode, cusparseDiagType diagType)
        {
            _descr = new cusparseMatDescr();
            res = CudaSparseNativeMethods.cusparseCreateMatDescr(ref _descr);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cusparseCreateMatDescr", res));
            if (res != cusparseStatus.Success)
                throw new CudaSparseException(res);
			SetMatFillMode(fillMode);
			SetMatDiagType(diagType);
        }
 /// <summary>
 /// When the matrix descriptor is created, its fields are initialized to:
 /// CUSPARSE_MATRIXYPE_GENERAL
 /// CUSPARSE_INDEX_BASE_ZERO
 /// </summary>
 public CudaSparseMatrixDescriptor(cusparseFillMode fillMode, cusparseDiagType diagType)
 {
     _descr = new cusparseMatDescr();
     res    = CudaSparseNativeMethods.cusparseCreateMatDescr(ref _descr);
     Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cusparseCreateMatDescr", res));
     if (res != cusparseStatus.Success)
     {
         throw new CudaSparseException(res);
     }
     SetMatFillMode(fillMode);
     SetMatDiagType(diagType);
 }
		public static extern cusparseStatus cusparseSetMatFillMode(cusparseMatDescr descrA, cusparseFillMode fillMode);
		/// <summary>
		/// Sets matrix fill mode
		/// </summary>
		/// <param name="fillMode"></param>
		public void SetMatFillMode(cusparseFillMode fillMode)
		{
			res = CudaSparseNativeMethods.cusparseSetMatFillMode(_descr, fillMode);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cusparseSetMatFillMode", res));
			if (res != cusparseStatus.Success)
				throw new CudaSparseException(res);
		}
Example #8
0
 private static extern CUSPARSEStatus cusparseSetMatFillMode(cusparseMatDescr descrA, cusparseFillMode fillMode);
Example #9
0
 public CUSPARSEStatus CusparseSetMatFillMode(cusparseMatDescr descrA, cusparseFillMode fillMode)
 {
     return(cusparseSetMatFillMode(descrA, fillMode));
 }
Example #10
0
 private static extern CUSPARSEStatus cusparseSetMatFillMode(cusparseMatDescr descrA, cusparseFillMode fillMode);
Example #11
0
 public CUSPARSEStatus CusparseSetMatFillMode(cusparseMatDescr descrA, cusparseFillMode fillMode)
 {
     return cusparseSetMatFillMode(descrA, fillMode);
 }