Home
last modified time | relevance | path

Searched refs:ones (Results 1 – 25 of 30) sorted by relevance

12

/petsc/src/tao/leastsquares/tutorials/matlab/more_wild_probs/
H A Ddfoxs.m37 x = ones(n,1);
39 x = ones(n,1);
41 x = ones(n,1);
67 x = .5*ones(n,1);
85 x = .5*ones(n,1);
105 x = ones(n,1);
107 x = .5*ones(n,1);
/petsc/src/dm/dt/fe/tests/
H A Dex4.c54 Vec llM, lM, ones, work; in main() local
78 PetscCall(DMGetGlobalVector(dm, &ones)); in main()
80 PetscCall(VecSet(ones, 1.0)); in main()
86 PetscCall(MatMult(M, ones, work)); in main()
93 PetscCall(DMPlexComputeIntegralFEM(dm, ones, vals, NULL)); in main()
102 PetscCall(DMRestoreGlobalVector(dm, &ones)); in main()
/petsc/src/mat/tests/output/
H A Dex247.out1 Vector norm after MatMult() with centering matrix applied to vector of ones is 0.000000.
2 Vector norm after MatMultTranspose() with centering matrix applied to vector of ones is 0.000000.
/petsc/share/petsc/matlab/
H A Dlaplacian.m219 e1 = ones(u(1),1); %e1 = ones(u(1),1,'int8');
221 e2 = ones(u(2),1);
224 e3 = ones(u(3),1);
370 V2 = ones(1,m);
402 V3 = ones(1,m);
428 % e1 = ones(u(1),1); %e1 = ones(u(1),1,'int8');
431 % e2 = ones(u(2),1);
435 % e3 = ones(u(3),1);
H A DPetscBinaryRead.m120 i = ones(nz,1);
124 i(cnt:next,1) = (double(k))*ones(nnz(k),1);
H A DgeneratePetscTestFiles.m13 x=ones(n,1); b=A*x; % use VecSet(x,1.0) in PETSc for x
84 x=1i.*ones(n,1); b=A*x; % use VecSet(x,PETSC_i) in PETSc for x
/petsc/src/tao/leastsquares/tutorials/matlab/
H A DProblemFinalize.m6 fvals = [fvals(1:nfev);ones(nfmax-nfev,1)*fvals(nfev)];
39 fvals = [fvals(1:nfev);ones(nfmax-nfev,1)*fvals(nfev)];
/petsc/src/mat/tests/
H A Dex231.cxx142 std::vector<PetscScalar> ones(dof_indices.size() * dof_indices.size(), 1.); in main() local
143 …, dof_indices.size(), &dof_indices[0], dof_indices.size(), &dof_indices[0], &ones[0], ADD_VALUES)); in main()
/petsc/src/ksp/ksp/tutorials/output/
H A Dex27_2.out1 Failed to load RHS, so use a vector of all ones.
/petsc/src/ksp/ksp/utils/dm/
H A Ddmproject.c97 PetscScalar *ones; in DMGlobalToLocalSolve() local
101 PetscCall(PetscMalloc1(numValues, &ones)); in DMGlobalToLocalSolve()
102 for (i = 0; i < numValues; i++) ones[i] = 1.; in DMGlobalToLocalSolve()
103 …for (c = cStart; c < cEnd; c++) PetscCall(DMPlexVecSetClosure(dm, NULL, mask, c, ones, INSERT_VALU… in DMGlobalToLocalSolve()
104 PetscCall(PetscFree(ones)); in DMGlobalToLocalSolve()
/petsc/src/tao/pde_constrained/tutorials/
H A Delliptic.c24 PetscReal *ones; member
995 PetscCall(PetscMalloc1(user->ndesign, &user->ones)); in EllipticInitialize()
997 for (i = 0; i < user->ndesign; i++) user->ones[i] = v; in EllipticInitialize()
998 …reateDense(PETSC_COMM_WORLD, ysubnlocal, PETSC_DECIDE, user->ndesign, 1, user->ones, &user->Ones)); in EllipticInitialize()
1226 PetscCall(PetscFree(user->ones)); in EllipticDestroy()
/petsc/lib/petsc/bin/
H A Dpetsc_tas_analysis.py902 X = np.hstack((np.ones((x.shape[0], 1)), x.reshape((x.shape[0], 1))))
906 A = np.hstack((np.ones((x.shape[0], 1)), x.reshape((x.shape[0], 1))))
/petsc/doc/manual/
H A Dblas-lapack.md21 simulations, even very large ones, 64-bit BLAS/LAPACK integers are not needed, even when 64-bit PET…
H A Dstreams.md160 …the `spread` binding produces better results for small core counts but poorer ones for larger ones.
H A Ddmstag.md126 …ficient values to use, unless convenience dictates otherwise, as they are the ones used internally.
H A Dadvanced.md137 Most of these packages compute their own orderings and cannot use ones provided so calls to the fol…
H A Dsnes.md223 insert new matrix contexts or reuse old ones, depending on the
461 in the model of the preexisting ones and register it using
H A Dmat.md589 common interface functions. We will review the most important ones
1157 for other available matrix types; standard ones are `MATSEQDENSE`,
H A Dgetting_started.md140 particularly useful ones below; a complete list can be obtained by
/petsc/share/petsc/bin/
H A Ddmnetwork_view.py306 sizes=np.ones(len(self.nodes)) * (20 ** 2),
/petsc/src/ksp/pc/impls/hpddm/
H A Dpchpddm.cxx1554 Mat sum[2], ones; in PCHPDDMAlgebraicAuxiliaryMat_Private() local
1558 PetscCall(MatCreateDense(PETSC_COMM_SELF, M[0]->cmap->n, bs, M[0]->cmap->n, bs, ptr, &ones)); in PCHPDDMAlgebraicAuxiliaryMat_Private()
1562 PetscCall(MatMatMult(M[0], ones, MAT_INITIAL_MATRIX, PETSC_CURRENT, sum)); in PCHPDDMAlgebraicAuxiliaryMat_Private()
1563 PetscCall(MatDestroy(&ones)); in PCHPDDMAlgebraicAuxiliaryMat_Private()
1564 PetscCall(MatCreateDense(PETSC_COMM_SELF, aux->cmap->n, bs, aux->cmap->n, bs, ptr, &ones)); in PCHPDDMAlgebraicAuxiliaryMat_Private()
1565 PetscCall(MatDenseSetLDA(ones, M[0]->cmap->n)); in PCHPDDMAlgebraicAuxiliaryMat_Private()
1566 PetscCall(MatMatMult(aux, ones, MAT_INITIAL_MATRIX, PETSC_CURRENT, sum + 1)); in PCHPDDMAlgebraicAuxiliaryMat_Private()
1567 PetscCall(MatDestroy(&ones)); in PCHPDDMAlgebraicAuxiliaryMat_Private()
/petsc/doc/developers/
H A Dtesting.md240 to refer to previously defined ones:
957 arguments are the ones that cause a code crash. The default naming scheme is
/petsc/doc/faq/
H A Dindex.md158 - We retain the useful ones and discard the rest. All of these decisions are based not
208 ones). All answers are equal, but some are more equal than others.
981 creating a dense matrix B and fill it with the identity matrix (ones along the diagonal),
2131 ones. Nothing special should be done for this.
/petsc/src/mat/interface/
H A Dmatrix.c5259 Vec ones; in MatGetRowSum() local
5267 PetscCall(MatCreateVecs(mat, &ones, NULL)); in MatGetRowSum()
5268 PetscCall(VecSet(ones, 1.)); in MatGetRowSum()
5269 PetscCall(MatMult(mat, ones, v)); in MatGetRowSum()
5270 PetscCall(VecDestroy(&ones)); in MatGetRowSum()
/petsc/src/dm/impls/plex/
H A Dplex.c10378 Vec ones, locmass; in DMCreateMassMatrixLumped_Plex() local
10391 PetscCall(DMGetLocalVector(dm, &ones)); in DMCreateMassMatrixLumped_Plex()
10395 PetscCall(VecSet(ones, 1.0)); in DMCreateMassMatrixLumped_Plex()
10400 …PetscCall(DMPlexComputeJacobianActionByKey(dmc, key, cellIS, 0.0, 0.0, ones, NULL, ones, locmass, … in DMCreateMassMatrixLumped_Plex()
10406 PetscCall(DMRestoreLocalVector(dm, &ones)); in DMCreateMassMatrixLumped_Plex()

12