-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
400 additions
and
3 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file modified
BIN
+44 Bytes
(100%)
docs/generated_docs/.doctrees/components/ops/norms.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
.. include:: ../../mydefs.rst | ||
|
||
``pow`` | ||
======= | ||
|
||
Header: ``<pressio/ops.hpp>`` | ||
|
||
API | ||
--- | ||
|
||
.. code-block:: cpp | ||
namespace pressio { namespace ops{ | ||
// x^exponent | ||
template <typename T> | ||
void pow(T & x, const scalar_type & exponent); | ||
// y = x^exponent | ||
template<typename T1, typename T2> | ||
void pow(T1 & y, const T2 & x, const scalar_type & exponent); | ||
// y = |x|^exponent (exponent > 0) | ||
template <class T1, class T2> | ||
abs_pow(T1 & y, | ||
const T2 & x, | ||
const typename ::pressio::Traits<T1>::scalar_type & exponent | ||
); | ||
// y = |x|^exponent (exponent < 0) | ||
template <class T1, class T2> | ||
abs_pow(T1 & y, | ||
const T2 & x, | ||
const typename ::pressio::Traits<T1>::scalar_type & exponent, | ||
const typename ::pressio::Traits<T1>::scalar_type & eps | ||
); | ||
}} // end namespace pressio::ops | ||
Description | ||
----------- | ||
|
||
* Raises each element of a rank-1 container ``x`` to the specified power ``exponent`` | ||
|
||
* Stores the result in ``y`` if provided; otherwise, acts in place on ``x`` | ||
|
||
* ``x`` may be any type of rank-1 container other than a Teuchos vector |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters