libflame
revision_anchor
|
Functions | |
void | bli_screate_contigmt (trans_t trans_dims, int m, int n, float *a_save, int a_rs_save, int a_cs_save, float **a, int *a_rs, int *a_cs) |
void | bli_dcreate_contigmt (trans_t trans_dims, int m, int n, double *a_save, int a_rs_save, int a_cs_save, double **a, int *a_rs, int *a_cs) |
void | bli_ccreate_contigmt (trans_t trans_dims, int m, int n, scomplex *a_save, int a_rs_save, int a_cs_save, scomplex **a, int *a_rs, int *a_cs) |
void | bli_zcreate_contigmt (trans_t trans_dims, int m, int n, dcomplex *a_save, int a_rs_save, int a_cs_save, dcomplex **a, int *a_rs, int *a_cs) |
void bli_ccreate_contigmt | ( | trans_t | trans_dims, |
int | m, | ||
int | n, | ||
scomplex * | a_save, | ||
int | a_rs_save, | ||
int | a_cs_save, | ||
scomplex ** | a, | ||
int * | a_rs, | ||
int * | a_cs | ||
) |
References bli_callocm(), bli_ccopymt(), bli_does_trans(), bli_is_gen_storage(), bli_set_contig_strides(), and BLIS_NO_TRANSPOSE.
Referenced by bli_cgemm(), bli_cher2k(), bli_cherk(), bli_csyr2k(), and bli_csyrk().
{ int m_contig, n_contig; if ( bli_is_gen_storage( a_rs_save, a_cs_save ) ) { // Transpose the dimensions if requested. if ( bli_does_trans( trans_dims ) ) bli_swap_ints( m, n ); // Initialize dimensions assuming no transposition needed during copy. m_contig = m; n_contig = n; /* // Transpose the dimensions of the contiguous matrix, if requested. if ( bli_does_trans( trans_copy ) ) { m_contig = n; n_contig = m; } */ // Allocate temporary contiguous storage for the matrix. *a = bli_callocm( m_contig, n_contig ); // Set the row and column strides for the temporary matrix. bli_set_contig_strides( m_contig, n_contig, a_rs, a_cs ); // Initialize the contiguous matrix with the contents of the original. bli_ccopymt( BLIS_NO_TRANSPOSE, m_contig, n_contig, a_save, a_rs_save, a_cs_save, *a, *a_rs, *a_cs ); } }
void bli_dcreate_contigmt | ( | trans_t | trans_dims, |
int | m, | ||
int | n, | ||
double * | a_save, | ||
int | a_rs_save, | ||
int | a_cs_save, | ||
double ** | a, | ||
int * | a_rs, | ||
int * | a_cs | ||
) |
References bli_dallocm(), bli_dcopymt(), bli_does_trans(), bli_is_gen_storage(), bli_set_contig_strides(), and BLIS_NO_TRANSPOSE.
Referenced by bli_dgemm(), bli_dsyr2k(), and bli_dsyrk().
{ int m_contig, n_contig; if ( bli_is_gen_storage( a_rs_save, a_cs_save ) ) { // Transpose the dimensions if requested. if ( bli_does_trans( trans_dims ) ) bli_swap_ints( m, n ); // Initialize dimensions assuming no transposition needed during copy. m_contig = m; n_contig = n; /* // Transpose the dimensions of the contiguous matrix, if requested. if ( bli_does_trans( trans_copy ) ) { m_contig = n; n_contig = m; } */ // Allocate temporary contiguous storage for the matrix. *a = bli_dallocm( m_contig, n_contig ); // Set the row and column strides for the temporary matrix. bli_set_contig_strides( m_contig, n_contig, a_rs, a_cs ); // Initialize the contiguous matrix with the contents of the original. bli_dcopymt( BLIS_NO_TRANSPOSE, m_contig, n_contig, a_save, a_rs_save, a_cs_save, *a, *a_rs, *a_cs ); } }
void bli_screate_contigmt | ( | trans_t | trans_dims, |
int | m, | ||
int | n, | ||
float * | a_save, | ||
int | a_rs_save, | ||
int | a_cs_save, | ||
float ** | a, | ||
int * | a_rs, | ||
int * | a_cs | ||
) |
References bli_does_trans(), bli_is_gen_storage(), bli_sallocm(), bli_scopymt(), bli_set_contig_strides(), and BLIS_NO_TRANSPOSE.
Referenced by bli_sgemm(), bli_ssyr2k(), and bli_ssyrk().
{ int m_contig, n_contig; if ( bli_is_gen_storage( a_rs_save, a_cs_save ) ) { // Transpose the dimensions if requested. if ( bli_does_trans( trans_dims ) ) bli_swap_ints( m, n ); // Initialize dimensions assuming no transposition needed during copy. m_contig = m; n_contig = n; /* // Transpose the dimensions of the contiguous matrix, if requested. if ( bli_does_trans( trans_copy ) ) { m_contig = n; n_contig = m; } */ // Allocate temporary contiguous storage for the matrix. *a = bli_sallocm( m_contig, n_contig ); // Set the row and column strides for the temporary matrix. bli_set_contig_strides( m_contig, n_contig, a_rs, a_cs ); // Initialize the contiguous matrix with the contents of the original. bli_scopymt( BLIS_NO_TRANSPOSE, m_contig, n_contig, a_save, a_rs_save, a_cs_save, *a, *a_rs, *a_cs ); } }
void bli_zcreate_contigmt | ( | trans_t | trans_dims, |
int | m, | ||
int | n, | ||
dcomplex * | a_save, | ||
int | a_rs_save, | ||
int | a_cs_save, | ||
dcomplex ** | a, | ||
int * | a_rs, | ||
int * | a_cs | ||
) |
References bli_does_trans(), bli_is_gen_storage(), bli_set_contig_strides(), bli_zallocm(), bli_zcopymt(), and BLIS_NO_TRANSPOSE.
Referenced by bli_zgemm(), bli_zher2k(), bli_zherk(), bli_zsyr2k(), and bli_zsyrk().
{ int m_contig, n_contig; if ( bli_is_gen_storage( a_rs_save, a_cs_save ) ) { // Transpose the dimensions if requested. if ( bli_does_trans( trans_dims ) ) bli_swap_ints( m, n ); // Initialize dimensions assuming no transposition needed during copy. m_contig = m; n_contig = n; /* // Transpose the dimensions of the contiguous matrix, if requested. if ( bli_does_trans( trans_copy ) ) { m_contig = n; n_contig = m; } */ // Allocate temporary contiguous storage for the matrix. *a = bli_zallocm( m_contig, n_contig ); // Set the row and column strides for the temporary matrix. bli_set_contig_strides( m_contig, n_contig, a_rs, a_cs ); // Initialize the contiguous matrix with the contents of the original. bli_zcopymt( BLIS_NO_TRANSPOSE, m_contig, n_contig, a_save, a_rs_save, a_cs_save, *a, *a_rs, *a_cs ); } }