Lines Matching refs:Np
35 PetscInt Np, Nk, i, j, l, d, npoints; in testDerivativesLegendre() local
53 PetscCall(PetscDTBinomialInt(dim + deg, dim, &Np)); in testDerivativesLegendre()
59 PetscCall(PetscMalloc1(npoints * Np, &proj)); in testDerivativesLegendre()
61 for (i = 0; i < Np; i++) in testDerivativesLegendre()
68 PetscCall(PetscMalloc2(Np, &lgndre_coeffs, Np, &pkd_coeffs)); in testDerivativesLegendre()
69 for (i = 0; i < Np; i++) PetscCall(PetscRandomGetValueReal(rand, &lgndre_coeffs[i])); in testDerivativesLegendre()
76 PetscCall(PetscArrayzero(pkd_coeffs, Np)); in testDerivativesLegendre()
89 for (j = 0; j < Np; j++) { in testDerivativesLegendre()
97 for (j = 0; j < Np; j++) pkd_coeffs[j] += proj[j * npoints + i] * val; in testDerivativesLegendre()
112 PetscCall(PetscMalloc3(Nk * Np, &pkd_jet_basis, Nk, &lgndre_jet, Nk, &pkd_jet)); in testDerivativesLegendre()
117 for (j = 0; j < Np; j++) val += pkd_coeffs[j] * pkd_jet_basis[j * Nk + i]; in testDerivativesLegendre()
129 for (i = 0; i < Np; i++) { in testDerivativesLegendre()