Skip to main content
Ctrl+K
PETSc v3.24.5-686-g2b3a95b64d2c documentation - Home
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • TaoTermCreate

TaoTermCreate#

Create a TaoTerm to use in defining the function Tao is to optimize

Synopsis#

#include "petsctao.h" 
PetscErrorCode TaoTermCreate(MPI_Comm comm, TaoTerm *term)

Collective

Input Parameter#

  • comm - communicator for MPI processes that compute the term

Output Parameter#

  • term - a new TaoTerm

See Also#

TaoTerm: composable objective function terms, TaoTerm, TaoTermSetType(), TaoAddTerm(), TaoTermSetFromOptions(), TaoTermSetUp(), TaoTermView(), TaoTermDestroy()

Level#

beginner

Location#

src/tao/term/interface/taoterm.c

Examples#

src/tao/term/tutorials/ex1.c

Implementations#

TaoTermCreate_Callbacks() in src/tao/term/impls/callbacks/taotermcallbacks.c
TaoTermCreate_Halfl2squared() in src/tao/term/impls/halfl2squared/taotermhalfl2squared.c
TaoTermCreate_L1() in src/tao/term/impls/l1/taoterml1.c
TaoTermCreate_Quadratic() in src/tao/term/impls/quadratic/taotermquadratic.c
TaoTermCreate_Shell() in src/tao/term/impls/shell/taotermshell.c
TaoTermCreate_Sum() in src/tao/term/impls/sum/taotermsum.c


Index of all TaoTerm routines
Table of Contents for all manual pages
Index of all manual pages

On this page
  • Synopsis
  • Input Parameter
  • Output Parameter
  • See Also
  • Level
  • Location
  • Examples
  • Implementations
Edit on GitLab
Show Source

© Copyright 1991-2026, UChicago Argonne, LLC and the PETSc Development Team.

Created using Sphinx 7.3.7.

Built with the PyData Sphinx Theme 0.15.1.

Last updated on 2026-03-27T03:46:44-0500 (v3.24.5-686-g2b3a95b64d2c).