libflame  revision_anchor
Functions
FLA_Axpy_to.c File Reference

(r)

Functions

FLA_Error FLA_Axpy_buffer_to_object (FLA_Trans trans, FLA_Obj alpha, dim_t m, dim_t n, void *X_buffer, dim_t rs, dim_t cs, dim_t i, dim_t j, FLA_Obj Y)
 
FLA_Error FLA_Axpy_object_to_buffer (FLA_Trans trans, FLA_Obj alpha, dim_t i, dim_t j, FLA_Obj X, dim_t m, dim_t n, void *Y_buffer, dim_t rs, dim_t cs)
 

Function Documentation

◆ FLA_Axpy_buffer_to_object()

FLA_Error FLA_Axpy_buffer_to_object ( FLA_Trans  trans,
FLA_Obj  alpha,
dim_t  m,
dim_t  n,
void *  X_buffer,
dim_t  rs,
dim_t  cs,
dim_t  i,
dim_t  j,
FLA_Obj  Y 
)
14 {
15  FLA_Obj X;
16  FLA_Obj YTL, YTR,
17  YBL, Yij;
18 
19  if ( FLA_Check_error_level() >= FLA_MIN_ERROR_CHECKING )
20  FLA_Axpy_buffer_to_object_check( trans, alpha, m, n, X_buffer, rs, cs, i, j, Y );
21 
22  FLA_Part_2x2( Y, &YTL, &YTR,
23  &YBL, &Yij, i, j, FLA_TL );
24 
26  FLA_Obj_attach_buffer( X_buffer, rs, cs, &X );
27 
28  FLA_Axpyt_external( trans, alpha, X, Yij );
29 
31 
32  return FLA_SUCCESS;
33 }
FLA_Error FLA_Axpy_buffer_to_object_check(FLA_Trans trans, FLA_Obj alpha, dim_t m, dim_t n, void *A_buffer, dim_t rs, dim_t cs, dim_t i, dim_t j, FLA_Obj B)
Definition: FLA_Axpy_buffer_to_object_check.c:13
FLA_Error FLA_Axpyt_external(FLA_Trans trans, FLA_Obj alpha, FLA_Obj A, FLA_Obj B)
Definition: FLA_Axpyt_external.c:13
FLA_Error FLA_Part_2x2(FLA_Obj A, FLA_Obj *A11, FLA_Obj *A12, FLA_Obj *A21, FLA_Obj *A22, dim_t mb, dim_t nb, FLA_Quadrant quadrant)
Definition: FLA_View.c:17
FLA_Error FLA_Obj_create_without_buffer(FLA_Datatype datatype, dim_t m, dim_t n, FLA_Obj *obj)
Definition: FLA_Obj.c:362
FLA_Error FLA_Obj_free_without_buffer(FLA_Obj *obj)
Definition: FLA_Obj.c:615
FLA_Error FLA_Obj_attach_buffer(void *buffer, dim_t rs, dim_t cs, FLA_Obj *obj)
Definition: FLA_Obj.c:522
unsigned int FLA_Check_error_level(void)
Definition: FLA_Check.c:18
FLA_Datatype FLA_Obj_datatype(FLA_Obj obj)
Definition: FLA_Query.c:13
int i
Definition: bl1_axmyv2.c:145
Definition: FLA_type_defs.h:159

References FLA_Axpy_buffer_to_object_check(), FLA_Axpyt_external(), FLA_Check_error_level(), FLA_Obj_attach_buffer(), FLA_Obj_create_without_buffer(), FLA_Obj_datatype(), FLA_Obj_free_without_buffer(), FLA_Part_2x2(), and i.

◆ FLA_Axpy_object_to_buffer()

FLA_Error FLA_Axpy_object_to_buffer ( FLA_Trans  trans,
FLA_Obj  alpha,
dim_t  i,
dim_t  j,
FLA_Obj  X,
dim_t  m,
dim_t  n,
void *  Y_buffer,
dim_t  rs,
dim_t  cs 
)
38 {
39  FLA_Obj Y;
40  FLA_Obj XTL, XTR,
41  XBL, Xij;
42 
43  if ( FLA_Check_error_level() >= FLA_MIN_ERROR_CHECKING )
44  FLA_Axpy_object_to_buffer_check( trans, alpha, i, j, X, m, n, Y_buffer, rs, cs );
45 
46  FLA_Part_2x2( X, &XTL, &XTR,
47  &XBL, &Xij, i, j, FLA_TL );
48 
50  FLA_Obj_attach_buffer( Y_buffer, rs, cs, &Y );
51 
52  FLA_Axpyt_external( trans, alpha, Xij, Y );
53 
55 
56  return FLA_SUCCESS;
57 }
FLA_Error FLA_Axpy_object_to_buffer_check(FLA_Trans trans, FLA_Obj alpha, dim_t i, dim_t j, FLA_Obj A, dim_t m, dim_t n, void *B_buffer, dim_t rs, dim_t cs)
Definition: FLA_Axpy_object_to_buffer_check.c:13

References FLA_Axpy_object_to_buffer_check(), FLA_Axpyt_external(), FLA_Check_error_level(), FLA_Obj_attach_buffer(), FLA_Obj_create_without_buffer(), FLA_Obj_datatype(), FLA_Obj_free_without_buffer(), FLA_Part_2x2(), and i.