libflame  revision_anchor
Functions | Variables
FLASH_Axpyt.c File Reference

(r)

Functions

FLA_Error FLASH_Axpyt (FLA_Trans trans, FLA_Obj alpha, FLA_Obj A, FLA_Obj B)
 

Variables

fla_axpyt_tflash_axpyt_cntl
 

Function Documentation

◆ FLASH_Axpyt()

FLA_Error FLASH_Axpyt ( FLA_Trans  trans,
FLA_Obj  alpha,
FLA_Obj  A,
FLA_Obj  B 
)
16 {
17  FLA_Error r_val;
18  FLA_Bool enable_supermatrix;
19 
20  // Check parameters.
21  if ( FLA_Check_error_level() >= FLA_MIN_ERROR_CHECKING )
22  FLA_Axpyt_check( trans, alpha, A, B );
23 
24  // Find the status of SuperMatrix.
25  enable_supermatrix = FLASH_Queue_get_enabled();
26 
27  // Temporarily disable SuperMatrix.
29 
30  // Execute tasks.
31  r_val = FLA_Axpyt_internal( trans, alpha, A, B, flash_axpyt_cntl );
32 
33  // Restore SuperMatrix to its previous status.
34  if ( enable_supermatrix )
36 
37  return r_val;
38 }
fla_axpyt_t * flash_axpyt_cntl
Definition: FLASH_Axpyt_cntl_init.c:16
FLA_Bool FLASH_Queue_get_enabled(void)
Definition: FLASH_Queue.c:171
FLA_Error FLASH_Queue_enable(void)
Definition: FLASH_Queue.c:117
FLA_Error FLASH_Queue_disable(void)
Definition: FLASH_Queue.c:144
FLA_Error FLA_Axpyt_internal(FLA_Trans trans, FLA_Obj alpha, FLA_Obj A, FLA_Obj B, fla_axpyt_t *cntl)
Definition: FLA_Axpyt_internal.c:16
FLA_Error FLA_Axpyt_check(FLA_Trans trans, FLA_Obj alpha, FLA_Obj A, FLA_Obj B)
Definition: FLA_Axpyt_check.c:13
unsigned int FLA_Check_error_level(void)
Definition: FLA_Check.c:18
int FLA_Error
Definition: FLA_type_defs.h:47
int FLA_Bool
Definition: FLA_type_defs.h:46

References FLA_Axpyt_check(), FLA_Axpyt_internal(), FLA_Check_error_level(), flash_axpyt_cntl, FLASH_Queue_disable(), FLASH_Queue_enable(), and FLASH_Queue_get_enabled().

Variable Documentation

◆ flash_axpyt_cntl

fla_axpyt_t* flash_axpyt_cntl
extern