29 lines
447 B
C++
29 lines
447 B
C++
|
|
#pragma once
|
|
#include <bitset>
|
|
#include <iostream>
|
|
#include <cstdint>
|
|
|
|
|
|
|
|
namespace splat {
|
|
template <int S>
|
|
struct matrix {
|
|
std::bitset<S> bits[S];
|
|
std::bitset<S>& operator[](int i);
|
|
|
|
const std::bitset<S>& operator[](int i) const;
|
|
|
|
const bool get(int row, int column) const;
|
|
|
|
void debug();
|
|
};
|
|
|
|
template <int S>
|
|
void gaussianElimination(matrix<S>& matrix);
|
|
|
|
template <int S>
|
|
int getRank(matrix<S>& matrix);
|
|
}
|
|
|