libflame  revision_anchor
Functions
FLA_Conjugate.c File Reference

(r)

Functions

FLA_Error FLA_Conjugate (FLA_Obj A)
 

Function Documentation

◆ FLA_Conjugate()

FLA_Error FLA_Conjugate ( FLA_Obj  A)

References bl1_cconjm(), bl1_zconjm(), FLA_Check_error_level(), FLA_Conjugate_check(), FLA_Obj_col_stride(), FLA_Obj_datatype(), FLA_Obj_has_zero_dim(), FLA_Obj_is_real(), FLA_Obj_length(), FLA_Obj_row_stride(), and FLA_Obj_width().

Referenced by FLA_Bidiag_UT_internal(), FLA_Bidiag_UT_u_step_unb_var3(), FLA_Bidiag_UT_u_step_unb_var4(), FLA_LQ_UT_form_Q(), FLA_Svd(), FLA_Svd_ext(), and FLA_Svd_ext_u_unb_var1().

14 {
15  FLA_Datatype datatype;
16  int m_A, n_A;
17  int rs_A, cs_A;
18 
19  if ( FLA_Check_error_level() >= FLA_MIN_ERROR_CHECKING )
21 
22  if ( FLA_Obj_has_zero_dim( A ) ) return FLA_SUCCESS;
23 
24  if ( FLA_Obj_is_real( A ) ) return FLA_SUCCESS;
25 
26  datatype = FLA_Obj_datatype( A );
27 
28  m_A = FLA_Obj_length( A );
29  n_A = FLA_Obj_width( A );
30  rs_A = FLA_Obj_row_stride( A );
31  cs_A = FLA_Obj_col_stride( A );
32 
33 
34  switch ( datatype ){
35 
36  case FLA_COMPLEX:
37  {
38  scomplex *buff_A = ( scomplex * ) FLA_COMPLEX_PTR( A );
39 
40  bl1_cconjm( m_A,
41  n_A,
42  buff_A, rs_A, cs_A );
43 
44  break;
45  }
46 
47  case FLA_DOUBLE_COMPLEX:
48  {
49  dcomplex *buff_A = ( dcomplex * ) FLA_DOUBLE_COMPLEX_PTR( A );
50 
51  bl1_zconjm( m_A,
52  n_A,
53  buff_A, rs_A, cs_A );
54 
55  break;
56  }
57 
58  }
59 
60  return FLA_SUCCESS;
61 }
dim_t FLA_Obj_row_stride(FLA_Obj obj)
Definition: FLA_Query.c:167
FLA_Datatype FLA_Obj_datatype(FLA_Obj obj)
Definition: FLA_Query.c:13
void bl1_cconjm(int m, int n, scomplex *a, int a_rs, int a_cs)
Definition: bl1_conjm.c:23
FLA_Bool FLA_Obj_has_zero_dim(FLA_Obj A)
Definition: FLA_Query.c:400
dim_t FLA_Obj_width(FLA_Obj obj)
Definition: FLA_Query.c:123
Definition: blis_type_defs.h:132
unsigned int FLA_Check_error_level(void)
Definition: FLA_Check.c:18
int FLA_Datatype
Definition: FLA_type_defs.h:49
FLA_Error FLA_Conjugate_check(FLA_Obj A)
Definition: FLA_Conjugate_check.c:13
dim_t FLA_Obj_col_stride(FLA_Obj obj)
Definition: FLA_Query.c:174
void bl1_zconjm(int m, int n, dcomplex *a, int a_rs, int a_cs)
Definition: bl1_conjm.c:72
FLA_Bool FLA_Obj_is_real(FLA_Obj A)
Definition: FLA_Query.c:307
dim_t FLA_Obj_length(FLA_Obj obj)
Definition: FLA_Query.c:116
Definition: blis_type_defs.h:137