typename Vector<Number, MemorySpace>::real_type
Vector<Number, MemorySpace>::lp_norm_local(const real_type p) const
{
- real_type sum;
+ real_type sum = 0.;
dealii::internal::VectorOperations::
functions<Number, Number, MemorySpace>::norm_p(
, n_rows(0)
, n_nonzero_elements(0)
{
- cusparseStatus_t status;
// step 1: create a descriptor which contains
// - matrix M is base-0
// - matrix L is base-0
// - matrix L is lower triangular
// - matrix L has non-unit diagonal
- status = cusparseCreateMatDescr(&descr_M);
+ cusparseStatus_t status = cusparseCreateMatDescr(&descr_M);
AssertCusparse(status);
status = cusparseSetMatIndexBase(descr_M, CUSPARSE_INDEX_BASE_ZERO);
AssertCusparse(status);
, n_rows(0)
, n_nonzero_elements(0)
{
- cusparseStatus_t status;
// step 1: create a descriptor which contains
// - matrix M is base-0
// - matrix L is base-0
// - matrix U is base-0
// - matrix U is upper triangular
// - matrix U has non-unit diagonal
- status = cusparseCreateMatDescr(&descr_M);
+ cusparseStatus_t status = cusparseCreateMatDescr(&descr_M);
AssertCusparse(status);
status = cusparseSetMatIndexBase(descr_M, CUSPARSE_INDEX_BASE_ZERO);
AssertCusparse(status);