Home
last modified time | relevance | path

Searched refs:convert (Results 1 – 25 of 34) sorted by relevance

12

/petsc/src/mat/tests/
H A Dex258.c8 PetscInt n = 2, convert; in main() local
25 for (convert = 0; convert < 2; convert++) { in main()
27 if (convert) PetscCall(MatConvert(A, MATAIJ, MAT_INPLACE_MATRIX, &A)); in main()
62 if (!convert) { in main()
H A Dex237.c37 … PETSC_FALSE, check = PETSC_FALSE, abt = PETSC_FALSE, atb = PETSC_FALSE, convert = PETSC_FALSE, mk… in main() local
72 PetscCall(PetscOptionsGetBool(NULL, NULL, "-convert_aij", &convert, NULL)); in main()
124 if (!convert) E = A; in main()
125 PetscCall(MatConvert(A, MATSEQAIJ, convert ? MAT_INITIAL_MATRIX : MAT_INPLACE_MATRIX, &E)); in main()
137 if (convert) PetscCall(MatDestroy(&A)); in main()
147 PetscCall(MatConvert(E, base, convert ? MAT_INITIAL_MATRIX : MAT_INPLACE_MATRIX, &A)); in main()
152 PetscCall(MatConvert(E, type[i], convert ? MAT_INITIAL_MATRIX : MAT_INPLACE_MATRIX, &A)); in main()
154 PetscCall(MatConvert(E, MATAIJ, convert ? MAT_INITIAL_MATRIX : MAT_INPLACE_MATRIX, &A)); in main()
H A Dex18.c16 …PetscBool upwind = PETSC_FALSE, nonlocalBC = PETSC_FALSE, zerorhs = PETSC_TRUE, convert = PETSC_… in main() local
27 PetscCall(PetscOptionsGetString(NULL, NULL, "-convname", convname, sizeof(convname), &convert)); in main()
104 if (convert) { /* Test different Mat implementations */ in main()
/petsc/lib/petsc/bin/
H A DPetscBinaryIO.py523 convert = subparsers.add_parser('convert', help='convert matrices to/from PETSc format') variable
524 convert.add_argument('infile', help='file to convert')
525 convert.add_argument('-o', '--outfile', help='name of output file (defaults to {infile}.petsc)')
526convert.add_argument('--symmetrize', help='Symmetrize (A+A^T)/2 during conversion', action='store_…
527convert.add_argument('--precision', help='Precision of scalar values', choices=['single', 'double'…
528 convert.add_argument('--complex', help='Use complex scalars', action='store_true')
529convert.add_argument('--indices', help='Integer size for indices', choices=['32bit', '64bit'], def…
/petsc/src/ksp/ksp/tests/
H A Dex49.c13 PetscBool test_hermitian = PETSC_FALSE, convert = PETSC_FALSE; in main() local
21 PetscCall(PetscOptionsGetBool(NULL, NULL, "-conv", &convert, NULL)); in main()
76 if (convert) PetscCall(MatConvert(A, MATAIJ, MAT_INITIAL_MATRIX, &A2)); in main()
/petsc/systems/Apple/OSX/bin/
H A Dmakedmg53 hdiutil convert "pack.temp.dmg" -format UDZO -imagekey zlib-level=9 -o ${PETSC_DIR}/PETSc-OSX.dmg
/petsc/src/binding/petsc4py/test/
H A Dtest_mat_aij.py191 A.convert('same')
205 A.convert('dense', B) # initial
208 A.convert('dense', B) # reuse
211 A.convert('dense') # inplace
227 A.convert('aij', B) # initial
230 A.convert('aij', B) # reuse
233 A.convert('aij') # inplace
H A Dtest_mat_py.py424 h.convert('dense', he)
645 self.assertTrue(self.A.convert(PETSc.Mat.Type.AIJ, PETSc.Mat()).equal(self.A))
646 self.assertTrue(self.A.convert(PETSc.Mat.Type.BAIJ, PETSc.Mat()).equal(self.A))
647 self.assertTrue(self.A.convert(PETSc.Mat.Type.SBAIJ, PETSc.Mat()).equal(self.A))
648 self.assertTrue(self.A.convert(PETSc.Mat.Type.DENSE, PETSc.Mat()).equal(self.A))
/petsc/systems/Apple/iOS/bin/
H A Dmakedmg58 hdiutil convert "pack.temp.dmg" -format UDZO -imagekey zlib-level=9 -o ${PETSC_DIR}/PETSc-iOS.dmg
/petsc/share/petsc/matlab/
H A DPetscBinaryWrite.m6 % array as a matrix that MatLoad() will read you must first convert it to
H A DPetscBinaryRead.m69 system(['./convert -f ' inarg]);
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DAO.pyx220 allows one to convert, for example, neighbor lists that use negative
254 allows one to convert, for example, neighbor lists that use negative
/petsc/src/tao/leastsquares/tutorials/
H A DtomographyGenerateData.m77 …PetscBinaryWrite('cs1SparseMatrixA', A, 'precision', 'float64'); % do NOT need to convert A to spa…
/petsc/src/ksp/ksp/tutorials/amrex/
H A DMyTest.cxx177 …for (int idim = 0; idim < AMREX_SPACEDIM; ++idim) bcoef[ilev][idim].define(amrex::convert(grids[il… in initData()
/petsc/doc/changes/
H A D318.md93 - Add `PetscMemTypeToString()` to convert `PetscMemType` to string
94 - Add `PetscOffloadMaskToString()` to (shockingly) convert `PetscOffloadMask` to string
/petsc/doc/developers/
H A Ddocumentation.md204 …endly vector format and will be automatically converted to PDF using `rsvg-convert` [^svg-footnote]
281 [^svg-footnote]: `rsvg-convert` is installable with your package manager, e.g., `librsvg2-bin` on D…
/petsc/src/mat/impls/submat/
H A Dsubmat.c227 N->ops->convert = MatConvert_Shell; in MatCreateSubMatrixVirtual()
/petsc/src/mat/impls/maij/
H A Dmaij.c1032 PetscBool convert = dof < 0 ? PETSC_FALSE : PETSC_TRUE; in MatCreateMAIJ() local
1194 if (convert) { in MatCreateMAIJ()
/petsc/src/mat/impls/aij/mpi/mumps/
H A Dmumps.c275 static PetscErrorCode MatMumpsMakeMumpsScalarArray(PetscBool convert, PetscCount n, const PetscScal… in MatMumpsMakeMumpsScalarArray() argument
289 if (convert) { in MatMumpsMakeMumpsScalarArray()
302 if (convert) { in MatMumpsMakeMumpsScalarArray()
319 if (convert) { in MatMumpsMakeMumpsScalarArray()
329 if (convert) { in MatMumpsMakeMumpsScalarArray()
/petsc/src/mat/impls/is/
H A Dmatis.c833 PetscBool convert, lreuse, *istrans; in MatConvert_Nest_IS() local
1112 convert = PETSC_FALSE; in MatConvert_Nest_IS()
1113 …PetscOptionsGetBool(NULL, ((PetscObject)A)->prefix, "-mat_is_convert_local_nest", &convert, NULL)); in MatConvert_Nest_IS()
1114 if (convert) { in MatConvert_Nest_IS()
/petsc/doc/manual/
H A Dstreams.md296 still must be converted to `MATMPIAIJ` storage. `VecPlaceArray()` is used to convert the sequential…
H A Dprofiling.md661 can be used to easily convert a regular PETSc program to one that uses
/petsc/doc/community/meetings/2023/
H A Dindex.md336 for visualization. We convert AMReX’s independent spatial indices into
855 In this mini-tutorial, we will introduce: How to convert between PETSc vectors/matrices and PyTorch…
/petsc/systems/Apple/iOS/PETSc/PETSc.xcodeproj/
H A Dproject.pbxproj229 …D89D1D5E207AA1AB00FACC19 /* convert.c in Sources */ = {isa = PBXBuildFile; fileRef = D89D1A76207AA…
981 …76207AA1A900FACC19 /* convert.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType …
1752 D89D1A76207AA1A900FACC19 /* convert.c */,
2834 D89D1D5E207AA1AB00FACC19 /* convert.c in Sources */,
/petsc/doc/faq/
H A Dindex.md739 with reading and writing. If you just want to convert `MatrixMarket`, you can use:
742 $ python -m $PETSC_DIR/lib/petsc/bin/PetscBinaryIO convert matrix.mtx
1670 call c_f_pointer(contextIn,context) ! convert the C pointer to a Fortran pointer to use context as…

12