Home
last modified time | relevance | path

Searched refs:vec_type (Results 1 – 16 of 16) sorted by relevance

/petsc/src/tao/unconstrained/impls/lmvm/tests/
H A Dex1.c41 VecType vec_type; in main() local
43 PetscCall(VecGetType(ctx.b, &vec_type)); in main()
44 …PetscCall(MatCreateDenseFromVecType(comm, vec_type, M, N, PETSC_DECIDE, PETSC_DECIDE, -1, NULL, &c… in main()
/petsc/src/tao/unconstrained/tutorials/
H A Drosenbrock4.h146 VecType vec_type; in CreateHessian() local
198 PetscCall(MatGetVecType(H, &vec_type)); in CreateHessian()
201 PetscCall(VecSetType(user->Hvalues, vec_type)); in CreateHessian()
206 PetscCall(VecSetType(user->fvector, vec_type)); in CreateHessian()
229 …PetscCall(MatCreateDenseFromVecType(PETSC_COMM_SELF, vec_type, warmup_size, warmup_size, warmup_si… in CreateHessian()
253 VecType vec_type; in CreateVectors() local
265 PetscCall(VecGetType(x, &vec_type)); in CreateVectors()
282 PetscCall(VecSetType(user->off_process_values, vec_type)); in CreateVectors()
300 PetscCall(VecSetType(user->gvalues, vec_type)); in CreateVectors()
/petsc/src/ksp/ksp/utils/lmvm/
H A Dlmproducts.c24 VecType vec_type; in LMProductsCreate() local
28 PetscCall(VecGetType((*dots)->diagonal_local, &vec_type)); in LMProductsCreate()
31 PetscCall(VecSetType((*dots)->diagonal_dup, vec_type)); in LMProductsCreate()
34 VecType vec_type; in LMProductsCreate() local
36 PetscCall(MatGetVecType(basis->vecs, &vec_type)); in LMProductsCreate()
37 …PetscCall(MatCreateDenseFromVecType(PetscObjectComm((PetscObject)basis->vecs), vec_type, m_local, … in LMProductsCreate()
H A Dlmvmutils.c62 VecType vec_type; in MatLMVMCreateJ0() local
69 PetscCall(MatGetVecType(B, &vec_type)); in MatLMVMCreateJ0()
70 PetscCall(MatSetVecType(*J0, vec_type)); in MatLMVMCreateJ0()
285 VecType vec_type; in MatLMVMSetJ0Diag() local
296 PetscCall(VecGetType(V, &vec_type)); in MatLMVMSetJ0Diag()
297 PetscCall(MatSetVecType(J0diag, vec_type)); in MatLMVMSetJ0Diag()
/petsc/src/ksp/ksp/utils/lmvm/dense/
H A Ddenseqn.c148 VecType vec_type; in MatAllocate_LMVMDQN_Internal() local
165 PetscCall(VecGetType(lmvm->Xprev, &vec_type)); in MatAllocate_LMVMDQN_Internal()
167 PetscCall(MatCreateDenseFromVecType(comm, vec_type, m, m, M, M, -1, NULL, &lqn->StY_triu)); in MatAllocate_LMVMDQN_Internal()
168 PetscCall(MatCreateDenseFromVecType(comm, vec_type, m, m, M, M, -1, NULL, &lqn->YtS_triu)); in MatAllocate_LMVMDQN_Internal()
172 PetscCall(MatCreateDenseFromVecType(comm, vec_type, m, m, M, M, -1, NULL, &lqn->YtS_triu)); in MatAllocate_LMVMDQN_Internal()
177 PetscCall(MatCreateDenseFromVecType(comm, vec_type, m, m, M, M, -1, NULL, &lqn->StY_triu)); in MatAllocate_LMVMDQN_Internal()
/petsc/doc/changes/
H A D314.md56 CUDA backend, and then use -vec_type kokkos -mat_type aijkokkos.
94 - Fix memory leaks when requesting -vec_type
H A D2024.md167 `VecCreate(`) are now `-vec_type mpi` or `-vec_type shared`
/petsc/src/tao/constrained/impls/almm/
H A Dalmm.c142 VecType vec_type; in TaoSetUp_ALMM() local
151 PetscCall(VecGetType(tao->solution, &vec_type)); in TaoSetUp_ALMM()
/petsc/src/dm/impls/plex/
H A Dplexsfc.c1108 VecType vec_type; in DMPeriodicCoordinateSetUp_Internal() local
1139 PetscCall(VecGetType(L, &vec_type)); in DMPeriodicCoordinateSetUp_Internal()
1140 PetscCall(VecSetType(P, vec_type)); in DMPeriodicCoordinateSetUp_Internal()
/petsc/src/vec/vec/interface/
H A Drvector.c1436 VecType vec_type; in VecConcatenate() local
1453 PetscCall(VecGetType(*X, &vec_type)); in VecConcatenate()
1464 PetscCall(VecSetType(Ytmp, vec_type)); in VecConcatenate()
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DDM.pyx821 def setVecType(self, vec_type: Vec.Type | str) -> None:
832 vec_type = str2bytes(vec_type, &vtype)
H A DMat.pyx642 def setVecType(self, vec_type: Vec.Type | str) -> None:
649 vec_type
658 vec_type = str2bytes(vec_type, &cval)
675 def setNestVecType(self, vec_type: Vec.Type | str) -> None:
682 vec_type
691 vec_type = str2bytes(vec_type, &cval)
H A DVec.pyx199 def setType(self, vec_type: Type | str) -> None:
206 vec_type
215 vec_type = str2bytes(vec_type, &cval)
/petsc/src/ksp/ksp/tutorials/output/
H A Dex2_help.out78 -vec_type <now seq : formerly seq>: Vector type (one of) shared standard mpi seq (VecSetType)
/petsc/doc/faq/
H A Dindex.md240 `VecSetType()` or `-vec_type seqcuda`, `mpicuda`, or `cuda` when
251 with `VecSetType()` or `-vec_type seqviennacl`, `mpiviennacl`, or `viennacl`
/petsc/doc/manual/
H A Dvec.md56 parallel) over all processes in `comm`. The option `-vec_type <type>`