|
libflame
12600
|
Functions | |
| FLA_Error | FLA_Copyr_internal (FLA_Uplo uplo, FLA_Obj A, FLA_Obj B, fla_copyr_t *cntl) |
Variables | |
| fla_copyr_t * | flash_copyr_cntl_blas |
| fla_copyr_t * | flash_copyr_cntl |
| FLA_Error FLA_Copyr_internal | ( | FLA_Uplo | uplo, |
| FLA_Obj | A, | ||
| FLA_Obj | B, | ||
| fla_copyr_t * | cntl | ||
| ) |
References FLA_Check_error_level(), FLA_Copyr_internal(), FLA_Copyr_internal_check(), FLA_Copyr_l(), FLA_Copyr_u(), FLA_Obj_elemtype(), flash_copyr_cntl_blas, and FLASH_Queue_get_enabled().
Referenced by FLA_Copyr(), FLA_Copyr_internal(), FLA_Copyr_l_blk_var1(), FLA_Copyr_l_blk_var2(), FLA_Copyr_l_blk_var3(), FLA_Copyr_l_blk_var4(), FLA_Copyr_u_blk_var1(), FLA_Copyr_u_blk_var2(), FLA_Copyr_u_blk_var3(), FLA_Copyr_u_blk_var4(), and FLASH_Copyr().
{
FLA_Error r_val = FLA_SUCCESS;
if ( FLA_Check_error_level() == FLA_FULL_ERROR_CHECKING )
FLA_Copyr_internal_check( uplo, A, B, 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_Copyr_internal( uplo,
*FLASH_OBJ_PTR_AT( A ),
*FLASH_OBJ_PTR_AT( B ),
flash_copyr_cntl );
}
else if ( FLA_Cntl_matrix_type( cntl ) == FLA_HIER &&
FLA_Obj_elemtype( A ) == FLA_SCALAR &&
FLASH_Queue_get_enabled( ) )
{
// Enqueue
ENQUEUE_FLASH_Copyr( uplo, A, B, cntl );
}
else
{
if ( FLA_Cntl_matrix_type( cntl ) == FLA_HIER &&
FLA_Obj_elemtype( A ) == FLA_SCALAR &&
!FLASH_Queue_get_enabled( ) )
{
// Execute leaf
cntl = flash_copyr_cntl_blas;
}
// Parameter combinations
if ( uplo == FLA_LOWER_TRIANGULAR )
{
r_val = FLA_Copyr_l( A, B, cntl );
}
else if ( uplo == FLA_UPPER_TRIANGULAR )
{
r_val = FLA_Copyr_u( A, B, cntl );
}
}
return r_val;
}
Referenced by FLA_Copyr_internal().
1.7.6.1