vectorial space to linear equation
All checks were successful
Linux arm64 / Build (push) Successful in 30s
All checks were successful
Linux arm64 / Build (push) Successful in 30s
This commit is contained in:
12
src/Vect.cpp
12
src/Vect.cpp
@@ -1,4 +1,6 @@
|
||||
#include "Vect.h"
|
||||
|
||||
#include "Solver.h"
|
||||
#include <iostream>
|
||||
|
||||
Vect::Vect(const Matrix& mat) : m_Data(mat) {
|
||||
@@ -21,6 +23,16 @@ void Vect::Simplify() {
|
||||
m_Data = mat;
|
||||
}
|
||||
|
||||
Matrix Vect::GetLinearSystem() const {
|
||||
Matrix vect = m_Data;
|
||||
vect.Transpose();
|
||||
|
||||
Solver solver {vect};
|
||||
vect = solver.Noyau().m_Data;
|
||||
vect.Transpose();
|
||||
return vect;
|
||||
}
|
||||
|
||||
void Vect::Print() const {
|
||||
std::cout << "Espace vectoriel de dimension " << GetDimension() << " de base :\n\n";
|
||||
for (std::size_t i = 0; i < m_Data.GetRawCount(); i++) {
|
||||
|
||||
Reference in New Issue
Block a user