Home
last modified time | relevance | path

Searched refs:Py (Results 1 – 2 of 2) sorted by relevance

/petsc/src/binding/petsc4py/src/petsc4py/include/petsc4py/
H A Dpetsc4py.i44 #ifndef Py##Pkg##_ChkErrQ
45 #define Py##Pkg##_ChkErrQ(ierr) \ macro
48 Py##Pkg##PyType##_Set((ierr)); SWIG_fail; \
55 Py##Pkg##_ChkErrQ($1); %set_output(VOID_Object);
360 } else if (PyObject_TypeCheck(input,&Py##Pkg##PyType##_Type)) { in Type()
361 if (v) *v = Py##Pkg##PyType##_Get(input); in Type()
383 } else if (PyObject_TypeCheck(input,&Py##Pkg##PyType##_Type)) { in Type()
384 if (p) *p = Py##Pkg##PyType##_GetPtr(input); in Type()
402 return Py##Pkg##PyType##_New(v); in Type()
479 %define_as(Py##Pkg##PyType##_GetPtr(ob), (Type *)PyPetscObject_GetPtr(ob))
[all …]
/petsc/src/mat/tests/
H A Dex70.c68 Vec Px, Py; in proj_mult() local
82 PetscCall(MatCreateVecs(R, &Py, &Px)); in proj_mult()
84 PetscCall(MatCreateVecs(P, &Px, &Py)); in proj_mult()
88 PetscCall(MatMult(P, Px, Py)); in proj_mult()
90 PetscCall(MatMultTranspose(R, Px, Py)); in proj_mult()
92 PetscCall(VecCopy(Py, Ax)); in proj_mult()
94 PetscCall(VecCopy(Ay, Py)); in proj_mult()
96 PetscCall(MatMultTranspose(P, Py, Px)); in proj_mult()
98 PetscCall(MatMult(R, Py, Px)); in proj_mult()
102 PetscCall(VecDestroy(&Py)); in proj_mult()