Lines Matching refs:M
6 static PetscErrorCode GenEntries(PetscInt sdim, PetscInt M, PetscInt N, const PetscInt *J, const Pe… in GenEntries() argument
12 for (j = 0; j < M; j++) { in GenEntries()
16 ptr[j + M * k] = 1.0 / (1.0e-2 + PetscSqrtReal(diff)); in GenEntries()
29 …virtual void copy_submatrix(PetscInt M, PetscInt N, const PetscInt *J, const PetscInt *K, PetscSca… in copy_submatrix() argument
34 …for (PetscInt j = 0; j < M; j++) /* could be optimized by the user how they see fit, e.g., vectori… in copy_submatrix()
38 ptr[j + M * k] = 1.0 / (1.0e-2 + PetscSqrtReal(diff)); in copy_submatrix()
47 PetscInt m = 100, dim = 3, M, begin = 0; in main() local
62 M = size * m; in main()
63 PetscCall(PetscOptionsGetInt(NULL, NULL, "-M", &M, NULL)); in main()
67 PetscCall(PetscCalloc1(M * dim, &gcoords)); in main()
70 …PetscCallMPI(MPIU_Allreduce(MPI_IN_PLACE, gcoords, M * dim, MPIU_REAL, MPI_SUM, PETSC_COMM_WORLD)); in main()
72 …PetscCall(MatCreateHtoolFromKernel(PETSC_COMM_WORLD, m, m, M, M, dim, coords, coords, NULL, imatri… in main()
78 …PetscCall(MatCreateHtoolFromKernel(PETSC_COMM_WORLD, m, m, M, M, dim, coords, coords, kernel, gcoo… in main()