pRC
multi-purpose Tensor Train library for C++
Loading...
Searching...
No Matches
square.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_CORE_VALUE_FUNCTIONS_SQUARE_H
4#define pRC_CORE_VALUE_FUNCTIONS_SQUARE_H
5
8
9namespace pRC
10{
18 template<class T, If<IsValue<T>> = 0>
19 static inline constexpr auto square(T const &a)
20 {
21 return a * a;
22 }
23}
24#endif // pRC_CORE_VALUE_FUNCTIONS_SQUARE_H
Definition cholesky.hpp:18
static constexpr auto square(Complex< T > const &a)
Definition square.hpp:14
static constexpr Conditional< IsSatisfied< C >, RemoveConstReference< X >, X > copy(X &&a)
Definition copy.hpp:13