Home
last modified time | relevance | path

Searched refs:identity (Results 1 – 25 of 27) sorted by relevance

12

/petsc/src/mat/tests/
H A Dex68.c11 IS isrow, iscol, identity; in main() local
113 PetscCall(ISCreateStride(PETSC_COMM_SELF, 4, 0, 1, &identity)); in main()
114 PetscCall(MatPermute(B, identity, identity, &C)); in main()
117 PetscCall(ISDestroy(&identity)); in main()
/petsc/src/ts/tests/output/
H A Dex26_arkimex_explicit_stage.out3 … ERROR: This scheme requires an identity mass matrix, however the TSIFunctionFn you provided does …
/petsc/doc/changes/
H A D216.md51 the identity
53 identity
55 the identity
H A D322.md93 - Add `PCCompositeSpecialSetAlphaMat()` API to use a matrix other than the identity in
H A D313.md26 the IS is sorted, unique, a permutation, an interval, or identity)
/petsc/src/dm/impls/plex/tests/
H A Dex72.c11 static void identity(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscI… in identity() function
54 PetscCall(PetscDSSetObjective(ds, 0, identity)); in CreateDiscretization()
H A Dex73.c65 static void identity(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscI… in identity() function
161 PetscCall(PetscDSSetResidual(ds, 0, identity, NULL)); in CreateDiscretization()
/petsc/src/mat/tests/output/
H A Dex68_1.out8 Original matrix permuted by identity
15 Original matrix permuted by identity + NonzeroDiagonal()
/petsc/src/mat/impls/kaij/
H A Dkaij.c377 PetscErrorCode MatKAIJGetScaledIdentity(Mat A, PetscBool *identity) in MatKAIJGetScaledIdentity() argument
384 *identity = PETSC_FALSE; in MatKAIJGetScaledIdentity()
386 } else *identity = PETSC_TRUE; in MatKAIJGetScaledIdentity()
388 for (i = 0; i < a->p && *identity; i++) { in MatKAIJGetScaledIdentity()
389 for (j = 0; j < a->p && *identity; j++) { in MatKAIJGetScaledIdentity()
391 if (a->S && PetscAbsScalar(a->S[i + j * a->p]) > PETSC_SMALL) *identity = PETSC_FALSE; in MatKAIJGetScaledIdentity()
392 if (a->T && PetscAbsScalar(a->T[i + j * a->p]) > PETSC_SMALL) *identity = PETSC_FALSE; in MatKAIJGetScaledIdentity()
394 … if (a->S && PetscAbsScalar(a->S[i * (a->p + 1)] - a->S[0]) > PETSC_SMALL) *identity = PETSC_FALSE; in MatKAIJGetScaledIdentity()
395 … if (a->T && PetscAbsScalar(a->T[i * (a->p + 1)] - a->T[0]) > PETSC_SMALL) *identity = PETSC_FALSE; in MatKAIJGetScaledIdentity()
/petsc/doc/developers/contributing/
H A Dindex.md37 …t](https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup) to establish your identity.
/petsc/src/snes/tutorials/
H A Dex13.c386 …void (*identity[1])(PetscInt, PetscInt, PetscInt, const PetscInt[], const PetscInt[], const PetscS… in ComputeAdjoint() local
400 PetscCall(DMProjectField(dm, 0.0, u, identity, INSERT_VALUES, uAdjProj)); in ComputeAdjoint()
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DIS.pyx573 """Mark the index set as being an identity.
586 """Return whether the index set has been declared as an identity.
988 property identity:
989 """`True` if index set is an identity, `False` otherwise.
H A DAO.pyx172 Another ordering. May be `None` to indicate the identity ordering.
/petsc/src/dm/impls/plex/transform/impls/extrude/
H A Dplextrcohesive.c912 PetscBool identity = PETSC_FALSE; in DMPlexTransformCellTransform_Cohesive() local
918 identity = val < 100 && !(val % 2) ? PETSC_TRUE : PETSC_FALSE; in DMPlexTransformCellTransform_Cohesive()
920 if (identity) { in DMPlexTransformCellTransform_Cohesive()
H A Dplextrextrude.c756 PetscBool ignore = PETSC_FALSE, identity = PETSC_FALSE; in DMPlexTransformCellTransform_Extrude() local
762 identity = val >= 100 ? PETSC_TRUE : PETSC_FALSE; in DMPlexTransformCellTransform_Extrude()
774 } else if (identity) { in DMPlexTransformCellTransform_Extrude()
/petsc/src/dm/impls/swarm/tests/
H A Dex2.c143 static void identity(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscI… in identity() function
166 PetscCall(PetscDSSetJacobian(ds, 0, 0, identity, NULL, NULL, NULL)); in CreateFEM()
/petsc/src/dm/impls/plex/
H A Dplexmetric.c955 static void identity(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscI… in identity() function
995 funcs[0] = identity; in DMPlexMetricCreateIsotropic()
H A Dplextree.c223 DMLabel identity, identityRef; in DMPlexCreateReferenceTree_Union() local
232 PetscCall(DMGetLabel(K, labelName, &identity)); in DMPlexCreateReferenceTree_Union()
446 DMLabel identity; in DMPlexCreateDefaultReferenceTree() local
455 PetscCall(DMGetLabel(K, "identity", &identity)); in DMPlexCreateDefaultReferenceTree()
457 for (p = pStart; p < pEnd; p++) PetscCall(DMLabelSetValue(identity, p, p)); in DMPlexCreateDefaultReferenceTree()
/petsc/src/mat/impls/aij/seq/kokkos/
H A Daijkok.kokkos.cxx1790 PetscBool identity = rowperm.extent(0) ? PETSC_FALSE : PETSC_TRUE; in MatSolve_SeqAIJKokkos_Cholesky() local
1800 if (identity) { // Reorder b with the row permutation in MatSolve_SeqAIJKokkos_Cholesky()
1815 if (identity) { in MatSolve_SeqAIJKokkos_Cholesky()
1823 …if (!identity) PetscCallCXX(Kokkos::parallel_for(Kokkos::RangePolicy<>(exec, 0, m), KOKKOS_LAMBDA(… in MatSolve_SeqAIJKokkos_Cholesky()
/petsc/src/snes/utils/dm/
H A Ddmadapt.c1297 static void identity(PetscInt dim, PetscInt Nf, PetscInt NfAux, const PetscInt uOff[], const PetscI… in identity() function
1391 PetscCall(PetscDSSetObjective(ds, 0, identity)); in DMAdaptorAdapt_Sequence_Private()
/petsc/doc/manual/
H A Dmat.md608 are applied to an identity matrix.
621 - `none` – Sets the initial Jacobian to be equal to the identity
629 identity matrix. The scalar value $\sigma$ is chosen by solving
1084 identity matrix (or some scaling of it). This action can be done with
H A Dts.md47 $A$ is the stiffness matrix, and $B$ is the identity for
354 identity matrix:
1498 if the timestep is position independent and $B$ is the identity
H A Dtao.md1763 estimation falls back onto using an identity matrix in place of
2427 dictionary is provided, the dictionary is assumed to be an identity
3015 the quasi-Newton approximation to the identity matrix at the beginning
/petsc/src/mat/impls/aij/seq/seqcusparse/
H A Daijcusparse.cu4862 …hrust(thrust::partition_copy(thrust::device,cci,cce,wPerm->begin(),p1,p2,thrust::identity<int>())); in MatSeqAIJCUSPARSEMergeMats()
4865 auto pred = thrust::identity<int>(); in MatSeqAIJCUSPARSEMergeMats()
4867 auto pred = cuda::std::identity(); in MatSeqAIJCUSPARSEMergeMats()
/petsc/doc/faq/
H A Dindex.md981 creating a dense matrix B and fill it with the identity matrix (ones along the diagonal),

12