From 1c3d400b14e5060c99ddb7672faa6d394e3bf7d7 Mon Sep 17 00:00:00 2001 From: Cliff Burdick <30670611+cliffburdick@users.noreply.github.com> Date: Sat, 27 Aug 2022 22:12:40 -0700 Subject: [PATCH] Added `value_type` trait to complex to make it an easier drop-in replacement for std::complex. (#607) --- include/cutlass/complex.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/cutlass/complex.h b/include/cutlass/complex.h index aeccd2db..af0b271a 100644 --- a/include/cutlass/complex.h +++ b/include/cutlass/complex.h @@ -127,7 +127,8 @@ template class complex { public: - /// Type alias for scalar type + /// Type alias for scalar type + using value_type = T; private: //