pRC
multi-purpose Tensor Train library for C++
Loading...
Searching...
No Matches
floor.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_CORE_TENSOR_FUNCTIONS_FLOOR_H
4#define pRC_CORE_TENSOR_FUNCTIONS_FLOOR_H
5
9
10namespace pRC
11{
19 template<class X, If<IsTensorish<RemoveReference<X>>> = 0,
20 If<IsInvocable<Loop<Floor>, X>> = 0>
21 static inline constexpr auto floor(X &&a)
22 {
23 return loop<Floor>(forward<X>(a));
24 }
25}
26#endif // pRC_CORE_TENSOR_FUNCTIONS_FLOOR_H
Definition cholesky.hpp:18
static constexpr auto floor(X &&a)
Calculates element-wise floor of a Tensor.
Definition floor.hpp:21
static constexpr Conditional< IsSatisfied< C >, RemoveConstReference< X >, X > copy(X &&a)
Definition copy.hpp:13