Commit bc9c02e6 authored by Mathieu Faverge's avatar Mathieu Faverge

Move to const when it should be const

parent 85a99351
......@@ -193,20 +193,20 @@ struct libhqr_tree_s {
* @{
*/
int libhqr_init_sys( libhqr_tree_t *qrtree,
libhqr_facto_e trans, libhqr_matrix_t *A,
libhqr_facto_e trans, const libhqr_matrix_t *A,
int p, int q );
int libhqr_init_svd( libhqr_tree_t *qrtree,
libhqr_facto_e trans, libhqr_matrix_t *A,
libhqr_facto_e trans, const libhqr_matrix_t *A,
int type_hlvl, int p, int nbcores_per_node, int ratio );
int libhqr_init_hqr( libhqr_tree_t *qrtree,
libhqr_facto_e trans, libhqr_matrix_t *A,
libhqr_facto_e trans, const libhqr_matrix_t *A,
int type_llvl, int type_hlvl,
int a, int p, int domino, int tsrr );
int libhqr_init_tphqr( libhqr_tree_t *qrtree,
libhqr_facto_e trans, int kt, int lt, libhqr_matrix_t *A,
libhqr_facto_e trans, int kt, int lt, const libhqr_matrix_t *A,
libhqr_tree_e hlvl, int a, int p );
void libhqr_finalize( libhqr_tree_t *qrtree );
......
......@@ -723,7 +723,7 @@ hqr_prevpiv(const libhqr_tree_t *qrtree, int k, int pivot, int start)
******************************************************************************/
int
libhqr_initfct_hqr( libhqr_tree_t *qrtree,
libhqr_facto_e trans, libhqr_matrix_t *A,
libhqr_facto_e trans, const libhqr_matrix_t *A,
int type_llvl, int type_hlvl,
int a, int p, int domino, int tsrr )
{
......@@ -876,7 +876,7 @@ libhqr_initfct_hqr( libhqr_tree_t *qrtree,
int
libhqr_initmtx_hqr( libhqr_tree_t *qrtree,
libhqr_facto_e trans, libhqr_matrix_t *A,
libhqr_facto_e trans, const libhqr_matrix_t *A,
int type_llvl, int type_hlvl,
int a, int p,
int domino, int tsrr )
......@@ -901,7 +901,7 @@ libhqr_initmtx_hqr( libhqr_tree_t *qrtree,
int
libhqr_init_hqr( libhqr_tree_t *qrtree,
libhqr_facto_e trans, libhqr_matrix_t *A,
libhqr_facto_e trans, const libhqr_matrix_t *A,
int type_llvl, int type_hlvl,
int a, int p,
int domino, int tsrr )
......
......@@ -581,7 +581,7 @@ svd_prevpiv(const libhqr_tree_t *qrtree, int k, int pivot, int start)
******************************************************************************/
int
libhqr_initfct_svd( libhqr_tree_t *qrtree,
libhqr_facto_e trans, libhqr_matrix_t *A,
libhqr_facto_e trans, const libhqr_matrix_t *A,
int type_hlvl, int p, int nbthread_per_node, int ratio )
{
int low_mt, minMN, a = -1;
......@@ -675,7 +675,7 @@ libhqr_initfct_svd( libhqr_tree_t *qrtree,
int
libhqr_initmtx_svd( libhqr_tree_t *qrtree,
libhqr_facto_e trans, libhqr_matrix_t *A,
libhqr_facto_e trans, const libhqr_matrix_t *A,
int type_hlvl, int p, int nbthread_per_node, int ratio )
{
libhqr_tree_t qrtreefct;
......@@ -699,7 +699,7 @@ libhqr_initmtx_svd( libhqr_tree_t *qrtree,
int
libhqr_init_svd( libhqr_tree_t *qrtree,
libhqr_facto_e trans, libhqr_matrix_t *A,
libhqr_facto_e trans, const libhqr_matrix_t *A,
int type_hlvl, int p, int nbthread_per_node, int ratio )
{
return libhqr_initfct_svd( qrtree, trans, A, type_hlvl, p, nbthread_per_node, ratio );
......
......@@ -374,7 +374,7 @@ systolic_prevpiv(const libhqr_tree_t *qrtree, int k, int pivot, int start)
******************************************************************************/
int
libhqr_initfct_sys( libhqr_tree_t *qrtree,
libhqr_facto_e trans, libhqr_matrix_t *A,
libhqr_facto_e trans, const libhqr_matrix_t *A,
int p, int q )
{
if (qrtree == NULL) {
......@@ -423,7 +423,7 @@ libhqr_initfct_sys( libhqr_tree_t *qrtree,
int
libhqr_initmtx_sys( libhqr_tree_t *qrtree,
libhqr_facto_e trans, libhqr_matrix_t *A,
libhqr_facto_e trans, const libhqr_matrix_t *A,
int p, int q )
{
libhqr_tree_t qrtreefct;
......@@ -444,7 +444,7 @@ libhqr_initmtx_sys( libhqr_tree_t *qrtree,
int
libhqr_init_sys( libhqr_tree_t *qrtree,
libhqr_facto_e trans, libhqr_matrix_t *A,
libhqr_facto_e trans, const libhqr_matrix_t *A,
int p, int q )
{
return libhqr_initmtx_sys( qrtree, trans, A, p, q );
......
......@@ -58,7 +58,7 @@ tphqr_getm( const libhqr_tree_t *qrtree, int k, int i )
int
libhqr_initmtx_tphqr( libhqr_tree_t *qrtree,
libhqr_facto_e trans, int kt, int lt, libhqr_matrix_t *A,
libhqr_facto_e trans, int kt, int lt, const libhqr_matrix_t *A,
libhqr_tree_e hlvl, int a, int p )
{
libhqr_tile_args_t *args;
......@@ -167,7 +167,7 @@ libhqr_initmtx_tphqr( libhqr_tree_t *qrtree,
lists2[i] = lists3[i];
lists3[i] = NULL;
}
/* Handle TS tiles */
l = 0;
for (i=0; i<p; i++) {
......@@ -385,7 +385,7 @@ libhqr_initmtx_tphqr( libhqr_tree_t *qrtree,
int
libhqr_init_tphqr( libhqr_tree_t *qrtree,
libhqr_facto_e trans, int kt, int lt, libhqr_matrix_t *A,
libhqr_facto_e trans, int kt, int lt, const libhqr_matrix_t *A,
libhqr_tree_e hlvl, int a, int p )
{
return libhqr_initmtx_tphqr( qrtree, trans, kt, lt, A, hlvl, a, p );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment