Skip to content

Instantly share code, notes, and snippets.

View RaffaelSchemmer's full-sized avatar
🎯
Focusing

Raffael Bottoli Schemmer RaffaelSchemmer

🎯
Focusing
View GitHub Profile
@RaffaelSchemmer
RaffaelSchemmer / MatrixMultiplication.cpp
Created May 13, 2018 20:19 — forked from isabek/MatrixMultiplication.cpp
Matrix multiplication strategies: ijk, ikj, jik, jki, kij, kji
#include <vector>
#include <cstdio>
#include <algorithm>
#include <ctime>
class Log {
public:
static void print(const char* strategy, long long int start, long long int end){
printf("%s: %f seconds\n", strategy, (double)(end - start) / 1000000);
}