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_Ttmm_internal()

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_check(), FLA_Ttmm_l(), FLA_Ttmm_u(), and FLASH_Queue_get_enabled().

Referenced by FLA_SPDinv_internal(), FLA_Ttmm(), 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().

17 {
18  FLA_Error r_val = FLA_SUCCESS;
19 
20  if ( FLA_Check_error_level() == FLA_FULL_ERROR_CHECKING )
21  FLA_Ttmm_internal_check( uplo, A, cntl );
22 
23  if ( FLA_Cntl_matrix_type( cntl ) == FLA_HIER &&
24  FLA_Obj_elemtype( A ) == FLA_MATRIX &&
25  FLA_Cntl_variant( cntl ) == FLA_SUBPROBLEM )
26  {
27  // Recurse
28  r_val = FLA_Ttmm_internal( uplo,
29  *FLASH_OBJ_PTR_AT( A ),
31  }
32  else if ( FLA_Cntl_matrix_type( cntl ) == FLA_HIER &&
33  FLA_Obj_elemtype( A ) == FLA_SCALAR &&
35  {
36  // Enqueue
37  ENQUEUE_FLASH_Ttmm( uplo, A, cntl );
38  }
39  else
40  {
41  if ( FLA_Cntl_matrix_type( cntl ) == FLA_HIER &&
42  FLA_Obj_elemtype( A ) == FLA_SCALAR &&
44  {
45  // Execute leaf
46  cntl = fla_ttmm_cntl_leaf;
47  }
48 
49  // Parameter combinations
50  if ( uplo == FLA_LOWER_TRIANGULAR )
51  {
52  r_val = FLA_Ttmm_l( A, cntl );
53  }
54  else if ( uplo == FLA_UPPER_TRIANGULAR )
55  {
56  r_val = FLA_Ttmm_u( A, cntl );
57  }
58  }
59 
60  return r_val;
61 }
FLA_Error FLA_Ttmm_u(FLA_Obj A, fla_ttmm_t *cntl)
Definition: FLA_Ttmm_u.c:13
FLA_Error FLA_Ttmm_internal(FLA_Uplo uplo, FLA_Obj A, fla_ttmm_t *cntl)
Definition: FLA_Ttmm_internal.c:16
FLA_Error FLA_Ttmm_internal_check(FLA_Uplo uplo, FLA_Obj A, fla_ttmm_t *cntl)
Definition: FLA_Ttmm_internal_check.c:13
int FLA_Error
Definition: FLA_type_defs.h:47
FLA_Bool FLASH_Queue_get_enabled(void)
Definition: FLASH_Queue.c:171
FLA_Error FLA_Ttmm_l(FLA_Obj A, fla_ttmm_t *cntl)
Definition: FLA_Ttmm_l.c:13
fla_ttmm_t * fla_ttmm_cntl_leaf
Definition: FLA_Ttmm_cntl_init.c:17
fla_ttmm_t * flash_ttmm_cntl
Definition: FLASH_Ttmm_cntl_init.c:17
unsigned int FLA_Check_error_level(void)
Definition: FLA_Check.c:18
FLA_Elemtype FLA_Obj_elemtype(FLA_Obj obj)
Definition: FLA_Query.c:51

Variable Documentation

◆ fla_ttmm_cntl_leaf

fla_ttmm_t* fla_ttmm_cntl_leaf

Referenced by FLA_Ttmm_internal().

◆ flash_ttmm_cntl

fla_ttmm_t* flash_ttmm_cntl