|
libflame
12600
|
Functions | |
| void | bl1_sfree_saved_contigmsr (side1_t side, uplo1_t uplo, int m, int n, float *a_save, int a_rs_save, int a_cs_save, float **a, int *a_rs, int *a_cs) |
| void | bl1_dfree_saved_contigmsr (side1_t side, uplo1_t uplo, int m, int n, double *a_save, int a_rs_save, int a_cs_save, double **a, int *a_rs, int *a_cs) |
| void | bl1_cfree_saved_contigmsr (side1_t side, uplo1_t uplo, int m, int n, scomplex *a_save, int a_rs_save, int a_cs_save, scomplex **a, int *a_rs, int *a_cs) |
| void | bl1_zfree_saved_contigmsr (side1_t side, uplo1_t uplo, int m, int n, dcomplex *a_save, int a_rs_save, int a_cs_save, dcomplex **a, int *a_rs, int *a_cs) |
| void bl1_cfree_saved_contigmsr | ( | side1_t | side, |
| uplo1_t | uplo, | ||
| int | m, | ||
| int | n, | ||
| scomplex * | a_save, | ||
| int | a_rs_save, | ||
| int | a_cs_save, | ||
| scomplex ** | a, | ||
| int * | a_rs, | ||
| int * | a_cs | ||
| ) |
References bl1_ccopymt(), bl1_cfree(), bl1_is_gen_storage(), and bl1_is_left().
{
int dim_a;
// Choose the dimension of the matrix based on the side parameter.
if ( bl1_is_left( side ) ) dim_a = m;
else dim_a = n;
if ( bl1_is_gen_storage( a_rs_save, a_cs_save ) )
{
// Copy the contents of the temporary matrix back to the original.
bl1_ccopymt( uplo,
dim_a,
dim_a,
*a, *a_rs, *a_cs,
a_save, a_rs_save, a_cs_save );
// Free the temporary contiguous storage for the matrix.
bl1_cfree( *a );
// Restore the original matrix address.
*a = a_save;
// Restore the original row and column strides.
*a_rs = a_rs_save;
*a_cs = a_cs_save;
}
}
| void bl1_dfree_saved_contigmsr | ( | side1_t | side, |
| uplo1_t | uplo, | ||
| int | m, | ||
| int | n, | ||
| double * | a_save, | ||
| int | a_rs_save, | ||
| int | a_cs_save, | ||
| double ** | a, | ||
| int * | a_rs, | ||
| int * | a_cs | ||
| ) |
References bl1_dcopymt(), bl1_dfree(), bl1_is_gen_storage(), and bl1_is_left().
{
int dim_a;
// Choose the dimension of the matrix based on the side parameter.
if ( bl1_is_left( side ) ) dim_a = m;
else dim_a = n;
if ( bl1_is_gen_storage( a_rs_save, a_cs_save ) )
{
// Copy the contents of the temporary matrix back to the original.
bl1_dcopymt( uplo,
dim_a,
dim_a,
*a, *a_rs, *a_cs,
a_save, a_rs_save, a_cs_save );
// Free the temporary contiguous storage for the matrix.
bl1_dfree( *a );
// Restore the original matrix address.
*a = a_save;
// Restore the original row and column strides.
*a_rs = a_rs_save;
*a_cs = a_cs_save;
}
}
| void bl1_sfree_saved_contigmsr | ( | side1_t | side, |
| uplo1_t | uplo, | ||
| int | m, | ||
| int | n, | ||
| float * | a_save, | ||
| int | a_rs_save, | ||
| int | a_cs_save, | ||
| float ** | a, | ||
| int * | a_rs, | ||
| int * | a_cs | ||
| ) |
References bl1_is_gen_storage(), bl1_is_left(), bl1_scopymt(), and bl1_sfree().
{
int dim_a;
// Choose the dimension of the matrix based on the side parameter.
if ( bl1_is_left( side ) ) dim_a = m;
else dim_a = n;
if ( bl1_is_gen_storage( a_rs_save, a_cs_save ) )
{
// Copy the contents of the temporary matrix back to the original.
bl1_scopymt( uplo,
dim_a,
dim_a,
*a, *a_rs, *a_cs,
a_save, a_rs_save, a_cs_save );
// Free the temporary contiguous storage for the matrix.
bl1_sfree( *a );
// Restore the original matrix address.
*a = a_save;
// Restore the original row and column strides.
*a_rs = a_rs_save;
*a_cs = a_cs_save;
}
}
| void bl1_zfree_saved_contigmsr | ( | side1_t | side, |
| uplo1_t | uplo, | ||
| int | m, | ||
| int | n, | ||
| dcomplex * | a_save, | ||
| int | a_rs_save, | ||
| int | a_cs_save, | ||
| dcomplex ** | a, | ||
| int * | a_rs, | ||
| int * | a_cs | ||
| ) |
References bl1_is_gen_storage(), bl1_is_left(), bl1_zcopymr(), and bl1_zfree().
{
int dim_a;
// Choose the dimension of the matrix based on the side parameter.
if ( bl1_is_left( side ) ) dim_a = m;
else dim_a = n;
if ( bl1_is_gen_storage( a_rs_save, a_cs_save ) )
{
// Copy the contents of the temporary matrix back to the original.
bl1_zcopymr( uplo,
dim_a,
dim_a,
*a, *a_rs, *a_cs,
a_save, a_rs_save, a_cs_save );
// Free the temporary contiguous storage for the matrix.
bl1_zfree( *a );
// Restore the original matrix address.
*a = a_save;
// Restore the original row and column strides.
*a_rs = a_rs_save;
*a_cs = a_cs_save;
}
}
1.7.6.1