rng/math/matrix.h
2025-07-07 10:27:51 +01:00

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);
}