New answers tagged

1 vote
Accepted

C++ library providing generic shared-resource locking wrapper

A little late to this, but anyone finding this thread via Google should know that there is exactly this being adopted by the C++ core library, synchronized_value<T>: The basic idea is that ...
Gavin Ray's user avatar
  • 126
1 vote

Fast inplace matrix transpose library

In-place transpose for a rectangular m x n matrix in C++. #include <algorithm> template<typename T> inline void transpose(T* A, long m, long n) { if (m<n) std::swap(...

Top 50 recent answers are included