Esempio n. 1
0
template<> void
xBiCGStab<double>::xBiCGStab_Function( bool flush )
{
    clsparseStatus status = clsparseDcsrbicgStab(&x, &csrMtx, &y, solverControl, control);

    if( flush )
        clFinish( queue );
}
Esempio n. 2
0
    void test_bicg()
    {

        if ( typeid(T) == typeid(cl_float) )
        {
            clsparseStatus status =
                    clsparseScsrbicgStab(&gX, &CSRE::csrSMatrix, &gB, solverControl, CLSE::control);
            ASSERT_EQ(clsparseSuccess, status);
        }

        if ( typeid(T) == typeid(cl_double))
        {
            clsparseStatus status =
                    clsparseDcsrbicgStab(&gX, &CSRE::csrDMatrix, &gB, solverControl, CLSE::control);
            ASSERT_EQ(clsparseSuccess, status);
        }
    }