Esempio n. 1
0
 public static extern IntPtr SuiteSparseQR_C_solve
 (
     int system,
     IntPtr QR,
     IntPtr B,
     ref CholmodCommon cc
 );
Esempio n. 2
0
 public static extern IntPtr SuiteSparseQR_C_qmult /* returns Y, or NULL on failure */
 (
     /* inputs: */
     int method,
     IntPtr QR,
     ref CholmodDense X,
     ref CholmodCommon cc
 );
Esempio n. 3
0
 public static extern IntPtr SuiteSparseQR_C_symbolic
 (
     /* inputs: */
     int ordering,
     int allow_tol,
     ref CholmodSparse A,
     ref CholmodCommon cc
 );
Esempio n. 4
0
 public static extern IntPtr SuiteSparseQR_C_factorize
 (
     /* inputs: */
     int ordering,
     double tol,
     ref CholmodSparse A,
     ref CholmodCommon cc
 );
Esempio n. 5
0
 public static extern CholmodDense SuiteSparseQR_C_backslash
 (
     int ordering,
     double tol,
     ref CholmodSparse A,
     ref CholmodDense B,
     ref CholmodCommon cc
 );
Esempio n. 6
0
 public static extern int SuiteSparseQR_C_numeric
 (
     /* inputs: */
     double tol,
     ref CholmodSparse A,
     /* input/output: */
     IntPtr QR,
     ref CholmodCommon cc
 );
Esempio n. 7
0
 public static extern CholmodSparse SuiteSparseQR_C_backslash_sparse
 (
     /* inputs: */
     int ordering,
     double tol,
     ref CholmodSparse A,
     ref CholmodSparse B,
     ref CholmodCommon cc
 );
Esempio n. 8
0
        /// <summary>
        /// Initializes a new instance of the SpqrContext class.
        /// </summary>
        /// <param name="matrix">The sparse matrix to factorize.</param>
        public SpqrContext(CompressedColumnStorage <T> matrix)
        {
            this.matrix = matrix;

            common = new CholmodCommon();
            common.Initialize();

            Cholmod.NativeMethods.cholmod_start(ref common);
        }
Esempio n. 9
0
 public static extern sp_long SuiteSparseQR_C_QR
 (
     /* inputs: */
     int ordering,
     double tol,
     sp_long econ,
     ref CholmodSparse A,
     /* outputs: */
     out IntPtr Q, // CholmodSparse
     out IntPtr R, // CholmodSparse
     out IntPtr E, // SuiteSparse_long[]
     ref CholmodCommon cc
 );
Esempio n. 10
0
 public static extern sp_long SuiteSparseQR_C
 (
     /* inputs: */
     int ordering,
     double tol,
     sp_long econ,
     int getCTX,
     ref CholmodSparse A,
     IntPtr Bsparse, // ref CholmodSparse
     ref CholmodDense Bdense,
     /* outputs: */
     out IntPtr Zsparse,  // CholmodSparse
     out IntPtr Zdense,   // CholmodDense
     out IntPtr R,        // CholmodSparse
     out IntPtr E,        // SuiteSparse_long[]
     out IntPtr H,        // CholmodSparse
     out IntPtr HPinv,    // SuiteSparse_long[]
     out IntPtr HTau,     // CholmodDense
     ref CholmodCommon cc //
 );
Esempio n. 11
0
 public static extern int SuiteSparseQR_C_free
 (
     ref IntPtr QR,
     ref CholmodCommon cc
 );
Esempio n. 12
0
 public static extern CholmodDense SuiteSparseQR_C_backslash_default
 (
     ref CholmodSparse A,
     ref CholmodDense B,
     ref CholmodCommon cc
 );