cMHN 1.2
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
scalar.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_CORE_TENSOR_FUNCTIONS_SCALAR_H
4#define pRC_CORE_TENSOR_FUNCTIONS_SCALAR_H
5
8
9namespace pRC
10{
11 template<class X, IsTensorish R = RemoveReference<X>>
12 requires IsInvocable<Reshape<>, X>
13 static inline constexpr auto scalar(X &&a)
14 {
15 return reshape<>(forward<X>(a));
16 }
17}
18#endif // pRC_CORE_TENSOR_FUNCTIONS_SCALAR_H
Definition cholesky.hpp:10
static constexpr auto reshape(X &&a)
Definition reshape.hpp:14
static constexpr auto scalar(X &&a)
Definition scalar.hpp:13