/*------------------------------------------------------------------------------ * Copyright (c) 2023 by Bai Bing (seread@163.com) * See COPYING file for copying and redistribution conditions. * * Alians IT Studio. *----------------------------------------------------------------------------*/ #pragma once #include #include #include "core/StaticAsserts.h" namespace ais { template constexpr dtype sqr(dtype x) noexcept { STATIC_ASSERT_ARITHMETIC_OR_COMPLEX(dtype); return x * x; } }