libflame  revision_anchor
Data Structures | Typedefs | Functions
FLA_Cntl_blas2.h File Reference

(r)

Go to the source code of this file.

Data Structures

struct  fla_gemv_s
 
struct  fla_trsv_s
 

Typedefs

typedef struct fla_gemv_s fla_gemv_t
 
typedef struct fla_trsv_s fla_trsv_t
 

Functions

fla_gemv_tFLA_Cntl_gemv_obj_create (FLA_Matrix_type matrix_type, int variant, fla_blocksize_t *blocksize, fla_scal_t *sub_scal, fla_gemv_t *sub_gemv)
 
fla_trsv_tFLA_Cntl_trsv_obj_create (FLA_Matrix_type matrix_type, int variant, fla_blocksize_t *blocksize, fla_trsv_t *sub_trsv, fla_gemv_t *sub_gemv)
 

Typedef Documentation

◆ fla_gemv_t

typedef struct fla_gemv_s fla_gemv_t

◆ fla_trsv_t

typedef struct fla_trsv_s fla_trsv_t

Function Documentation

◆ FLA_Cntl_gemv_obj_create()

fla_gemv_t* FLA_Cntl_gemv_obj_create ( FLA_Matrix_type  matrix_type,
int  variant,
fla_blocksize_t blocksize,
fla_scal_t sub_scal,
fla_gemv_t sub_gemv 
)

References fla_gemv_s::blocksize, fla_tpose_s::blocksize, FLA_malloc(), fla_gemv_s::matrix_type, fla_tpose_s::matrix_type, fla_gemv_s::sub_gemv, fla_gemv_s::sub_scal, fla_gemv_s::variant, and fla_tpose_s::variant.

Referenced by FLA_Gemv_cntl_init(), and FLASH_Gemv_cntl_init().

22 {
23  fla_gemv_t* cntl;
24 
25  cntl = ( fla_gemv_t* ) FLA_malloc( sizeof(fla_gemv_t) );
26 
27  cntl->matrix_type = matrix_type;
28  cntl->variant = variant;
29  cntl->blocksize = blocksize;
30  cntl->sub_scal = sub_scal;
31  cntl->sub_gemv = sub_gemv;
32 
33  return cntl;
34 }
struct fla_scal_s * sub_scal
Definition: FLA_Cntl_blas2.h:21
struct fla_gemv_s * sub_gemv
Definition: FLA_Cntl_blas2.h:22
fla_blocksize_t * blocksize
Definition: FLA_Cntl_blas2.h:20
void * FLA_malloc(size_t size)
Definition: FLA_Memory.c:111
Definition: FLA_Cntl_blas2.h:16
FLA_Matrix_type matrix_type
Definition: FLA_Cntl_blas2.h:18
int variant
Definition: FLA_Cntl_blas2.h:19

◆ FLA_Cntl_trsv_obj_create()

fla_trsv_t* FLA_Cntl_trsv_obj_create ( FLA_Matrix_type  matrix_type,
int  variant,
fla_blocksize_t blocksize,
fla_trsv_t sub_trsv,
fla_gemv_t sub_gemv 
)

References fla_trsv_s::blocksize, fla_tpose_s::blocksize, FLA_malloc(), fla_trsv_s::matrix_type, fla_tpose_s::matrix_type, fla_trsv_s::sub_gemv, fla_trsv_s::sub_trsv, fla_trsv_s::variant, and fla_tpose_s::variant.

Referenced by FLA_Trsv_cntl_init(), and FLASH_Trsv_cntl_init().

41 {
42  fla_trsv_t* cntl;
43 
44  cntl = ( fla_trsv_t* ) FLA_malloc( sizeof(fla_trsv_t) );
45 
46  cntl->matrix_type = matrix_type;
47  cntl->variant = variant;
48  cntl->blocksize = blocksize;
49  cntl->sub_trsv = sub_trsv;
50  cntl->sub_gemv = sub_gemv;
51 
52  return cntl;
53 }
fla_blocksize_t * blocksize
Definition: FLA_Cntl_blas2.h:30
Definition: FLA_Cntl_blas2.h:26
struct fla_trsv_s * sub_trsv
Definition: FLA_Cntl_blas2.h:31
FLA_Matrix_type matrix_type
Definition: FLA_Cntl_blas2.h:28
int variant
Definition: FLA_Cntl_blas2.h:29
void * FLA_malloc(size_t size)
Definition: FLA_Memory.c:111
struct fla_gemv_s * sub_gemv
Definition: FLA_Cntl_blas2.h:32