cotila  1.2.1
A compile time linear algebra system

◆ identity

template<typename T , std::size_t N>
constexpr matrix<T, N, N> cotila::identity = generate<N, N>([](std::size_t i, std::size_t j) { return T(i == j ? 1 : 0); })

The matrix identity $ I_N $.