lsqr++/Lsqr.cpp
void Lsqr::freeLsqrMem()
{
  free_dvec(input->rhs_vec);
  free_dvec(input->sol_vec);
  free_dvec(output->std_err_vec);
  free_dvec(work->bidiag_wrk_vec);
  free_dvec(work->srch_dir_vec);
  return;
}
/*---------------------------------------------------------------*/
/*                                                               */
/*  Define the deallocation function for the structure           */
/*  created with the function 'allocLsqrMem()'.                */
/*                                                               */
/*---------------------------------------------------------------*/
Define the deallocation function for the structure
created with the function 'allocLsqrMem()'.
Define the deallocation function for the structure created with the function ' allocLsqrMem () ' .
void Lsqr::freeLsqrMem()
{
  free_dvec(input->rhs_vec);
  free_dvec(input->sol_vec);
  free_dvec(output->std_err_vec);
  free_dvec(work->bidiag_wrk_vec);
  free_dvec(work->srch_dir_vec);
  return;
}
void Lsqr :: freeLsqrMem ( ) { free_dvec ( input -> rhs_vec ) ; free_dvec ( input -> sol_vec ) ; free_dvec ( output -> std_err_vec ) ; free_dvec ( work -> bidiag_wrk_vec ) ; free_dvec ( work -> srch_dir_vec ) ; return ; }
Define the deallocation function for the structure
created with the function 'allocLsqrMem()'.
Define the deallocation function for the structure created with the function ' allocLsqrMem () ' .