libflame  revision_anchor
Functions | Variables
FLA_Ttmm_internal.c File Reference

(r)

Functions

FLA_Error FLA_Ttmm_internal (FLA_Uplo uplo, FLA_Obj A, fla_ttmm_t *cntl)

Variables

fla_ttmm_tflash_ttmm_cntl
fla_ttmm_tfla_ttmm_cntl_leaf

Function Documentation

FLA_Error FLA_Ttmm_internal ( FLA_Uplo  uplo,
FLA_Obj  A,
fla_ttmm_t cntl 
)

References FLA_Check_error_level(), FLA_Obj_elemtype(), fla_ttmm_cntl_leaf, FLA_Ttmm_internal(), FLA_Ttmm_internal_check(), FLA_Ttmm_l(), FLA_Ttmm_u(), and FLASH_Queue_get_enabled().

Referenced by FLA_SPDinv_internal(), FLA_Ttmm(), FLA_Ttmm_internal(), FLA_Ttmm_l_blk_var1(), FLA_Ttmm_l_blk_var2(), FLA_Ttmm_l_blk_var3(), FLA_Ttmm_l_task(), FLA_Ttmm_task(), FLA_Ttmm_u_blk_var1(), FLA_Ttmm_u_blk_var2(), FLA_Ttmm_u_blk_var3(), FLA_Ttmm_u_task(), and FLASH_Ttmm().

{
        FLA_Error r_val = FLA_SUCCESS;

    if ( FLA_Check_error_level() == FLA_FULL_ERROR_CHECKING )
        FLA_Ttmm_internal_check( uplo, A, cntl );

    if      ( FLA_Cntl_matrix_type( cntl ) == FLA_HIER &&
              FLA_Obj_elemtype( A ) == FLA_MATRIX &&
              FLA_Cntl_variant( cntl ) == FLA_SUBPROBLEM )
    {
        // Recurse
        r_val = FLA_Ttmm_internal( uplo,
                                   *FLASH_OBJ_PTR_AT( A ),
                                   flash_ttmm_cntl );
    }
    else if ( FLA_Cntl_matrix_type( cntl ) == FLA_HIER &&
              FLA_Obj_elemtype( A ) == FLA_SCALAR &&
              FLASH_Queue_get_enabled( ) )
    {
        // Enqueue
        ENQUEUE_FLASH_Ttmm( uplo, A, cntl );
    }
    else
    {
        if ( FLA_Cntl_matrix_type( cntl ) == FLA_HIER &&
             FLA_Obj_elemtype( A ) == FLA_SCALAR &&
             !FLASH_Queue_get_enabled( ) )
        {
            // Execute leaf
            cntl = fla_ttmm_cntl_leaf;
        }

        // Parameter combinations
        if      ( uplo == FLA_LOWER_TRIANGULAR )
        {
            r_val = FLA_Ttmm_l( A, cntl );
        }
        else if ( uplo == FLA_UPPER_TRIANGULAR )
        {
            r_val = FLA_Ttmm_u( A, cntl );
        }
    }

    return r_val;
}

Variable Documentation

Referenced by FLA_Ttmm_internal().