| /petsc/src/tao/unconstrained/impls/neldermead/ |
| H A D | neldermead.c | 4 static PetscErrorCode NelderMeadSort(TAO_NelderMead *nm) in NelderMeadSort() argument 6 PetscReal *values = nm->f_values; in NelderMeadSort() 7 PetscInt *indices = nm->indices; in NelderMeadSort() 8 PetscInt dim = nm->N + 1; in NelderMeadSort() 22 static PetscErrorCode NelderMeadReplace(TAO_NelderMead *nm, PetscInt index, Vec Xmu, PetscReal f) in NelderMeadReplace() argument 26 PetscCall(VecAXPY(nm->Xbar, nm->oneOverN, Xmu)); in NelderMeadReplace() 27 PetscCall(VecCopy(Xmu, nm->simplex[index])); in NelderMeadReplace() 28 nm->f_values[index] = f; in NelderMeadReplace() 30 PetscCall(NelderMeadSort(nm)); in NelderMeadReplace() 33 PetscCall(VecAXPY(nm->Xbar, -nm->oneOverN, nm->simplex[nm->indices[nm->N]])); in NelderMeadReplace() [all …]
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | petscopt.pxi | 179 cdef getpair(prefix, name, const char **pr, const char **nm): argument 193 nm[0] = n 198 cdef const char *nm = NULL 199 cdef object unused = getpair(prefix, name, &pr, &nm) 200 if otype == OPT_BOOL : return getopt_Bool (opt, pr, nm, deft) 201 if otype == OPT_BOOLARRAY : return getopt_BoolArray (opt, pr, nm, deft) 202 if otype == OPT_INT : return getopt_Int (opt, pr, nm, deft) 203 if otype == OPT_INTARRAY : return getopt_IntArray (opt, pr, nm, deft) 204 if otype == OPT_REAL : return getopt_Real (opt, pr, nm, deft) 205 if otype == OPT_REALARRAY : return getopt_RealArray (opt, pr, nm, deft) [all …]
|
| H A D | Options.pyx | 147 cdef const char *nm = NULL 148 cdef object unused = getpair(self.prefix, name, &pr, &nm) 150 CHKERR(PetscOptionsHasName(self.opt, pr, nm, &flag)) 180 cdef const char *nm = NULL 181 cdef object unused = getpair(self.prefix, name, &pr, &nm) 183 option = bytes2str(nm) 185 option = '-%s%s' % (bytes2str(pr), bytes2str(&nm[1])) 214 cdef const char *nm = NULL 215 cdef object unused = getpair(self.prefix, name, &pr, &nm) 217 option = bytes2str(nm) [all …]
|
| H A D | petscmat.pxi | 980 cdef Py_ssize_t nm = PyArray_DIM(ai, 0) 984 if ((nm != PyArray_DIM(aj, 0)) or 985 (nm != PyArray_DIM(av, 0)) or 996 for k from 0 <= k < nm: 1022 cdef PetscInt nm=0, *m=NULL 1025 om = iarray_i(om, &nm, &m) 1030 nm = re - rs 1032 if (ni-1 != nm): raise ValueError( 1034 (toInt(ni), toInt(nm+1))) 1052 for k from 0 <= k < nm:
|
| /petsc/src/vec/vec/impls/mpi/ |
| H A D | pvecimpl.h | 137 static inline PetscErrorCode VecDotNorm2_MPI_Default(Vec s, Vec t, PetscScalar *dp, PetscScalar *nm… in VecDotNorm2_MPI_Default() argument 140 PetscCall(VecDotNorm2_SeqFn(s, t, dp, nm)); in VecDotNorm2_MPI_Default() 142 PetscScalar sum[] = {*dp, *nm}; in VecDotNorm2_MPI_Default() 146 *nm = sum[1]; in VecDotNorm2_MPI_Default()
|
| /petsc/src/mat/impls/aij/seq/matlab/ |
| H A D | aijmatlab.c | 42 mwIndex nnz, nn, nm, *ii, *jj; in MatSeqAIJFromMatlab() local 47 nm = mxGetM(mmat); in MatSeqAIJFromMatlab() 52 m = (PetscInt)nm; in MatSeqAIJFromMatlab()
|
| /petsc/src/mat/impls/h2opus/cuda/ |
| H A D | math2opus.cu | 234 PetscErrorCode MatH2OpusSetNativeMult(Mat A, PetscBool nm) in MatH2OpusSetNativeMult() argument 241 PetscValidLogicalCollectiveBool(A, nm, 2); in MatH2OpusSetNativeMult() 245 if ((!a->nativemult && nm) || (a->nativemult && !nm)) { in MatH2OpusSetNativeMult() 255 a->nativemult = nm; in MatH2OpusSetNativeMult() 260 PetscErrorCode MatH2OpusGetNativeMult(Mat A, PetscBool *nm) in MatH2OpusGetNativeMult() argument 267 PetscAssertPointer(nm, 2); in MatH2OpusGetNativeMult() 270 *nm = a->nativemult; in MatH2OpusGetNativeMult() 1756 PetscBool nm; in MatH2OpusMapVec() local 1767 nm = a->nativemult; in MatH2OpusMapVec() 1770 PetscCall(MatH2OpusSetNativeMult(A, nm)); in MatH2OpusMapVec()
|
| /petsc/src/vec/vec/impls/mpi/mpiviennacl/ |
| H A D | mpiviennacl.cxx | 147 static PetscErrorCode VecDotNorm2_MPIViennaCL(Vec s, Vec t, PetscScalar *dp, PetscScalar *nm) in VecDotNorm2_MPIViennaCL() argument 155 *nm = sum[1]; in VecDotNorm2_MPIViennaCL()
|
| /petsc/src/vec/vec/impls/mpi/cupm/ |
| H A D | vecmpicupm_impl.hpp | 208 inline PetscErrorCode VecMPI_CUPM<T>::DotNorm2(Vec x, Vec y, PetscScalar *dp, PetscScalar *nm) noex… in DotNorm2() argument 211 PetscCall(VecDotNorm2_MPI_Default(x, y, dp, nm, VecSeq_T::DotNorm2)); in DotNorm2()
|
| /petsc/lib/petsc/bin/maint/abi-compliance-checker/ |
| H A D | INSTALL | 43 1. Xcode (g++, c++filt, otool, nm)
|
| /petsc/src/vec/vec/impls/mpi/kokkos/ |
| H A D | mpikok.kokkos.cxx | 123 static PetscErrorCode VecDotNorm2_MPIKokkos(Vec s, Vec t, PetscScalar *dp, PetscScalar *nm) in VecDotNorm2_MPIKokkos() argument 126 PetscCall(VecDotNorm2_MPI_Default(s, t, dp, nm, VecDotNorm2_SeqKokkos)); in VecDotNorm2_MPIKokkos()
|
| /petsc/src/vec/vec/impls/seq/seqviennacl/ |
| H A D | vecviennacl.cxx | 1112 PetscErrorCode VecDotNorm2_SeqViennaCL(Vec s, Vec t, PetscScalar *dp, PetscScalar *nm) in VecDotNorm2_SeqViennaCL() argument 1116 PetscCall(VecNorm_SeqViennaCL(t, NORM_2, nm)); in VecDotNorm2_SeqViennaCL() 1117 *nm *= *nm; //squared norm required in VecDotNorm2_SeqViennaCL()
|
| /petsc/src/sys/objects/ |
| H A D | aoptions.c | 286 PetscMPIInt rank, nm; in PetscScanString() local 300 PetscCall(PetscMPIIntCast(n, &nm)); in PetscScanString() 301 PetscCallMPI(MPI_Bcast(str, nm, MPI_CHAR, 0, comm)); in PetscScanString()
|
| /petsc/src/ts/utils/dmplexlandau/ |
| H A D | plexland.c | 1076 PetscInt ii, nt, nm, nc, num_species_grid[LANDAU_MAX_GRIDS], non_dim_grid; in ProcessOptions() local 1191 nm = LANDAU_MAX_SPECIES - 1; in ProcessOptions() 1192 …ach species in units of proton mass [i_0=2,i_1=40...]", "plexland.c", &ctx->masses[1], &nm, &flg)); in ProcessOptions() 1193 …eck(!flg || nm == ctx->num_species - 1, ctx->comm, PETSC_ERR_ARG_WRONG, "num ion masses %" PetscIn… in ProcessOptions() 1194 nm = LANDAU_MAX_SPECIES; in ProcessOptions() 1195 …ay("-dm_landau_n", "Number density of each species = n_s * n_0", "plexland.c", ctx->n, &nm, &flg)); in ProcessOptions() 1196 …cCheck(!flg || nm == ctx->num_species, ctx->comm, PETSC_ERR_ARG_WRONG, "wrong num n: %" PetscInt_F… in ProcessOptions()
|
| /petsc/src/vec/vec/utils/ |
| H A D | vinv.c | 1492 PetscErrorCode VecDotNorm2(Vec s, Vec t, PetscScalar *dp, PetscReal *nm) in VecDotNorm2() argument 1500 PetscAssertPointer(nm, 4); in VecDotNorm2() 1530 *nm = PetscRealPart(work[1]); in VecDotNorm2()
|
| /petsc/src/ksp/ksp/impls/cg/pipecg2/ |
| H A D | pipecg2.c | 54 static PetscErrorCode VecMergedDot2_Private(Vec N, Vec M, Vec W, PetscScalar *wm, PetscScalar *nm) in VecMergedDot2_Private() argument 73 *nm = sumnm; in VecMergedDot2_Private()
|
| /petsc/src/vec/vec/impls/nest/ |
| H A D | vecnest.c | 116 static PetscErrorCode VecDotNorm2_Nest(Vec x, Vec y, PetscScalar *dp, PetscScalar *nm) in VecDotNorm2_Nest() argument 135 *nm = _nm; in VecDotNorm2_Nest()
|
| /petsc/src/mat/impls/sbaij/mpi/ |
| H A D | mpisbaij.c | 75 static PetscErrorCode MatPreallocateWithMats_Private(Mat B, PetscInt nm, Mat X[], PetscBool symm[],… in MatPreallocateWithMats_Private() argument 84 PetscValidLogicalCollectiveInt(B, nm, 2); in MatPreallocateWithMats_Private() 85 for (i = 0; i < nm; i++) { in MatPreallocateWithMats_Private() 105 for (i = 0; i < nm; i++) { in MatPreallocateWithMats_Private()
|
| /petsc/src/vec/vec/impls/seq/kokkos/ |
| H A D | veckok.kokkos.cxx | 1210 PetscErrorCode VecDotNorm2_SeqKokkos(Vec xin, Vec yin, PetscScalar *dp, PetscScalar *nm) in VecDotNorm2_SeqKokkos() argument 1222 *nm = result[1]; in VecDotNorm2_SeqKokkos()
|
| /petsc/src/vec/vec/impls/seq/cupm/ |
| H A D | vecseqcupm_impl.hpp | 1992 inline PetscErrorCode VecSeq_CUPM<T>::DotNorm2(Vec s, Vec t, PetscScalar *dp, PetscScalar *nm) noex… in DotNorm2() argument 2005 thrust::tie(*dp, *nm) = THRUST_CALL( in DotNorm2()
|
| /petsc/doc/ |
| H A D | petsc.bib | 1321 title = {Magnetic Configurations and Phase Diagrams of sub-100 nm {NiFe} Nanorings},
|