|
libflame
revision_anchor
|
Functions | |
| void | bli_sscalmr (uplo_t uplo, int m, int n, float *alpha, float *a, int a_rs, int a_cs) |
| void | bli_dscalmr (uplo_t uplo, int m, int n, double *alpha, double *a, int a_rs, int a_cs) |
| void | bli_csscalmr (uplo_t uplo, int m, int n, float *alpha, scomplex *a, int a_rs, int a_cs) |
| void | bli_cscalmr (uplo_t uplo, int m, int n, scomplex *alpha, scomplex *a, int a_rs, int a_cs) |
| void | bli_zdscalmr (uplo_t uplo, int m, int n, double *alpha, dcomplex *a, int a_rs, int a_cs) |
| void | bli_zscalmr (uplo_t uplo, int m, int n, dcomplex *alpha, dcomplex *a, int a_rs, int a_cs) |
| void bli_cscalmr | ( | uplo_t | uplo, |
| int | m, | ||
| int | n, | ||
| scomplex * | alpha, | ||
| scomplex * | a, | ||
| int | a_rs, | ||
| int | a_cs | ||
| ) |
References bli_cscal(), bli_is_row_storage(), bli_is_upper(), and bli_zero_dim2().
Referenced by FLA_Scalr_external().
{
scomplex* a_begin;
int lda, inca;
int n_iter;
int n_elem_max;
int n_elem;
int j;
// Return early if possible.
if ( bli_zero_dim2( m, n ) ) return;
if ( bli_ceq1( alpha ) ) return;
// We initialize for column-major.
n_iter = n;
n_elem_max = m;
lda = a_cs;
inca = a_rs;
// An optimization: if A is row-major, then let's access the matrix
// by rows instead of by columns to increase spatial locality.
if ( bli_is_row_storage( a_rs, a_cs ) )
{
bli_swap_ints( n_iter, n_elem_max );
bli_swap_ints( lda, inca );
bli_toggle_uplo( uplo );
}
if ( bli_is_upper( uplo ) )
{
for ( j = 0; j < n_iter; j++ )
{
n_elem = bli_min( j + 1, n_elem_max );
a_begin = a + j*lda;
bli_cscal( n_elem,
alpha,
a_begin, inca );
}
}
else // if ( bli_is_lower( uplo ) )
{
for ( j = 0; j < n_iter; j++ )
{
n_elem = bli_max( 0, n_elem_max - j );
a_begin = a + j*lda + j*inca;
if ( n_elem <= 0 ) break;
bli_cscal( n_elem,
alpha,
a_begin, inca );
}
}
}
| void bli_csscalmr | ( | uplo_t | uplo, |
| int | m, | ||
| int | n, | ||
| float * | alpha, | ||
| scomplex * | a, | ||
| int | a_rs, | ||
| int | a_cs | ||
| ) |
References bli_csscal(), bli_is_row_storage(), bli_is_upper(), and bli_zero_dim2().
Referenced by bli_cher2k(), bli_cherk(), and FLA_Scalr_external().
{
scomplex* a_begin;
int lda, inca;
int n_iter;
int n_elem_max;
int n_elem;
int j;
// Return early if possible.
if ( bli_zero_dim2( m, n ) ) return;
if ( bli_seq1( alpha ) ) return;
// We initialize for column-major.
n_iter = n;
n_elem_max = m;
lda = a_cs;
inca = a_rs;
// An optimization: if A is row-major, then let's access the matrix
// by rows instead of by columns to increase spatial locality.
if ( bli_is_row_storage( a_rs, a_cs ) )
{
bli_swap_ints( n_iter, n_elem_max );
bli_swap_ints( lda, inca );
bli_toggle_uplo( uplo );
}
if ( bli_is_upper( uplo ) )
{
for ( j = 0; j < n_iter; j++ )
{
n_elem = bli_min( j + 1, n_elem_max );
a_begin = a + j*lda;
bli_csscal( n_elem,
alpha,
a_begin, inca );
}
}
else // if ( bli_is_lower( uplo ) )
{
for ( j = 0; j < n_iter; j++ )
{
n_elem = bli_max( 0, n_elem_max - j );
a_begin = a + j*lda + j*inca;
if ( n_elem <= 0 ) break;
bli_csscal( n_elem,
alpha,
a_begin, inca );
}
}
}
| void bli_dscalmr | ( | uplo_t | uplo, |
| int | m, | ||
| int | n, | ||
| double * | alpha, | ||
| double * | a, | ||
| int | a_rs, | ||
| int | a_cs | ||
| ) |
References bli_dscal(), bli_is_row_storage(), bli_is_upper(), and bli_zero_dim2().
Referenced by FLA_Scalr_external().
{
double* a_begin;
int lda, inca;
int n_iter;
int n_elem_max;
int n_elem;
int j;
// Return early if possible.
if ( bli_zero_dim2( m, n ) ) return;
if ( bli_deq1( alpha ) ) return;
// We initialize for column-major.
n_iter = n;
n_elem_max = m;
lda = a_cs;
inca = a_rs;
// An optimization: if A is row-major, then let's access the matrix
// by rows instead of by columns to increase spatial locality.
if ( bli_is_row_storage( a_rs, a_cs ) )
{
bli_swap_ints( n_iter, n_elem_max );
bli_swap_ints( lda, inca );
bli_toggle_uplo( uplo );
}
if ( bli_is_upper( uplo ) )
{
for ( j = 0; j < n_iter; j++ )
{
n_elem = bli_min( j + 1, n_elem_max );
a_begin = a + j*lda;
bli_dscal( n_elem,
alpha,
a_begin, inca );
}
}
else // if ( bli_is_lower( uplo ) )
{
for ( j = 0; j < n_iter; j++ )
{
n_elem = bli_max( 0, n_elem_max - j );
a_begin = a + j*lda + j*inca;
if ( n_elem <= 0 ) break;
bli_dscal( n_elem,
alpha,
a_begin, inca );
}
}
}
| void bli_sscalmr | ( | uplo_t | uplo, |
| int | m, | ||
| int | n, | ||
| float * | alpha, | ||
| float * | a, | ||
| int | a_rs, | ||
| int | a_cs | ||
| ) |
References bli_is_row_storage(), bli_is_upper(), bli_sscal(), and bli_zero_dim2().
Referenced by FLA_Scalr_external().
{
float* a_begin;
int lda, inca;
int n_iter;
int n_elem_max;
int n_elem;
int j;
// Return early if possible.
if ( bli_zero_dim2( m, n ) ) return;
if ( bli_seq1( alpha ) ) return;
// We initialize for column-major.
n_iter = n;
n_elem_max = m;
lda = a_cs;
inca = a_rs;
// An optimization: if A is row-major, then let's access the matrix
// by rows instead of by columns to increase spatial locality.
if ( bli_is_row_storage( a_rs, a_cs ) )
{
bli_swap_ints( n_iter, n_elem_max );
bli_swap_ints( lda, inca );
bli_toggle_uplo( uplo );
}
if ( bli_is_upper( uplo ) )
{
for ( j = 0; j < n_iter; j++ )
{
n_elem = bli_min( j + 1, n_elem_max );
a_begin = a + j*lda;
bli_sscal( n_elem,
alpha,
a_begin, inca );
}
}
else // if ( bli_is_lower( uplo ) )
{
for ( j = 0; j < n_iter; j++ )
{
n_elem = bli_max( 0, n_elem_max - j );
a_begin = a + j*lda + j*inca;
if ( n_elem <= 0 ) break;
bli_sscal( n_elem,
alpha,
a_begin, inca );
}
}
}
| void bli_zdscalmr | ( | uplo_t | uplo, |
| int | m, | ||
| int | n, | ||
| double * | alpha, | ||
| dcomplex * | a, | ||
| int | a_rs, | ||
| int | a_cs | ||
| ) |
References bli_is_row_storage(), bli_is_upper(), bli_zdscal(), and bli_zero_dim2().
Referenced by bli_zher2k(), bli_zherk(), and FLA_Scalr_external().
{
dcomplex* a_begin;
int lda, inca;
int n_iter;
int n_elem_max;
int n_elem;
int j;
// Return early if possible.
if ( bli_zero_dim2( m, n ) ) return;
if ( bli_deq1( alpha ) ) return;
// We initialize for column-major.
n_iter = n;
n_elem_max = m;
lda = a_cs;
inca = a_rs;
// An optimization: if A is row-major, then let's access the matrix
// by rows instead of by columns to increase spatial locality.
if ( bli_is_row_storage( a_rs, a_cs ) )
{
bli_swap_ints( n_iter, n_elem_max );
bli_swap_ints( lda, inca );
bli_toggle_uplo( uplo );
}
if ( bli_is_upper( uplo ) )
{
for ( j = 0; j < n_iter; j++ )
{
n_elem = bli_min( j + 1, n_elem_max );
a_begin = a + j*lda;
bli_zdscal( n_elem,
alpha,
a_begin, inca );
}
}
else // if ( bli_is_lower( uplo ) )
{
for ( j = 0; j < n_iter; j++ )
{
n_elem = bli_max( 0, n_elem_max - j );
a_begin = a + j*lda + j*inca;
if ( n_elem <= 0 ) break;
bli_zdscal( n_elem,
alpha,
a_begin, inca );
}
}
}
| void bli_zscalmr | ( | uplo_t | uplo, |
| int | m, | ||
| int | n, | ||
| dcomplex * | alpha, | ||
| dcomplex * | a, | ||
| int | a_rs, | ||
| int | a_cs | ||
| ) |
References bli_is_row_storage(), bli_is_upper(), bli_zero_dim2(), and bli_zscal().
Referenced by FLA_Scalr_external().
{
dcomplex* a_begin;
int lda, inca;
int n_iter;
int n_elem_max;
int n_elem;
int j;
// Return early if possible.
if ( bli_zero_dim2( m, n ) ) return;
if ( bli_zeq1( alpha ) ) return;
// We initialize for column-major.
n_iter = n;
n_elem_max = m;
lda = a_cs;
inca = a_rs;
// An optimization: if A is row-major, then let's access the matrix
// by rows instead of by columns to increase spatial locality.
if ( bli_is_row_storage( a_rs, a_cs ) )
{
bli_swap_ints( n_iter, n_elem_max );
bli_swap_ints( lda, inca );
bli_toggle_uplo( uplo );
}
if ( bli_is_upper( uplo ) )
{
for ( j = 0; j < n_iter; j++ )
{
n_elem = bli_min( j + 1, n_elem_max );
a_begin = a + j*lda;
bli_zscal( n_elem,
alpha,
a_begin, inca );
}
}
else // if ( bli_is_lower( uplo ) )
{
for ( j = 0; j < n_iter; j++ )
{
n_elem = bli_max( 0, n_elem_max - j );
a_begin = a + j*lda + j*inca;
if ( n_elem <= 0 ) break;
bli_zscal( n_elem,
alpha,
a_begin, inca );
}
}
}
1.7.6.1