Lines Matching refs:hess
3681 …id TPSEvaluate_SchwarzP(const PetscReal y[3], PetscReal *f, PetscReal grad[], PetscReal (*hess)[3]) in TPSEvaluate_SchwarzP()
3688 for (PetscInt j = 0; j < 3; j++) hess[i][j] = (i == j) ? -PetscSqr(PETSC_PI) * c[i] : 0.; in TPSEvaluate_SchwarzP()
3705 …void TPSEvaluate_Gyroid(const PetscReal y[3], PetscReal *f, PetscReal grad[], PetscReal (*hess)[3]) in TPSEvaluate_Gyroid()
3713 hess[0][0] = -PetscSqr(PETSC_PI) * (s[0] * c[1] + s[2] * c[0]); in TPSEvaluate_Gyroid()
3714 hess[0][1] = -PetscSqr(PETSC_PI) * (c[0] * s[1]); in TPSEvaluate_Gyroid()
3715 hess[0][2] = -PetscSqr(PETSC_PI) * (c[2] * s[0]); in TPSEvaluate_Gyroid()
3716 hess[1][0] = -PetscSqr(PETSC_PI) * (s[1] * c[2] + s[0] * c[1]); in TPSEvaluate_Gyroid()
3717 hess[1][1] = -PetscSqr(PETSC_PI) * (c[1] * s[2]); in TPSEvaluate_Gyroid()
3718 hess[2][2] = -PetscSqr(PETSC_PI) * (c[0] * s[1]); in TPSEvaluate_Gyroid()
3719 hess[2][0] = -PetscSqr(PETSC_PI) * (s[2] * c[0] + s[1] * c[2]); in TPSEvaluate_Gyroid()
3720 hess[2][1] = -PetscSqr(PETSC_PI) * (c[2] * s[0]); in TPSEvaluate_Gyroid()
3721 hess[2][2] = -PetscSqr(PETSC_PI) * (c[1] * s[2]); in TPSEvaluate_Gyroid()