Defines the tensor expression representing the square root of a tensor expression that evaluates to a rank 0 tensor.
More...
#include <SquareRoot.hpp>
|
|
using | type = typename T::type |
| |
|
using | symmetry = tmpl::list<> |
| |
|
using | index_list = tmpl::list<> |
| |
|
using | args_list = tmpl::list<> |
| |
|
|
| SquareRoot (T t) |
| |
| template<typename... TensorIndices, Requires< sizeof...(TensorIndices)==0 > = nullptr> |
| decltype(auto) | get (const std::array< size_t, 0 > &multi_index) const noexcept |
| | Returns the square root of the component of the tensor evaluated from the RHS tensor expression. More...
|
| |
|
|
static constexpr auto | num_tensor_indices = 0 |
| |
template<typename T>
struct TensorExpressions::SquareRoot< T >
Defines the tensor expression representing the square root of a tensor expression that evaluates to a rank 0 tensor.
- Template Parameters
-
| T | the type of the tensor expression of which to take the square root |
◆ get()
template<typename T >
template<typename... TensorIndices,
Requires< sizeof...(TensorIndices)==0 > = nullptr>
Returns the square root of the component of the tensor evaluated from the RHS tensor expression.
Details
SquareRoot only supports tensor expressions that evaluate to a rank 0 Tensor. This is why this template is only defined for the case where TensorIndices is empty.
- Template Parameters
-
| TensorIndices | the TensorIndexs of the LHS tensor and RHS tensor expression |
- Parameters
-
| multi_index | the multi-index of the component of which to take the square root |
Returns: the square root of the component of the tensor evaluated from the RHS tensor expression