This commit is contained in:
20
src/Vect.cpp
Normal file
20
src/Vect.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#include "Vect.h"
|
||||
|
||||
Vect::Vect(const Matrix& mat) {
|
||||
for (std::size_t i = 0; i < mat.GetColumnCount(); i++) {
|
||||
std::size_t j;
|
||||
for (j = 0; j < mat.GetRawCount(); j++) {
|
||||
if(!IsEqualZero(mat.at(i, j)))
|
||||
break;
|
||||
}
|
||||
if (j == mat.GetRawCount()) {
|
||||
m_Data = mat.SubMatrix(0, 0, mat.GetRawCount(), j);
|
||||
}
|
||||
}
|
||||
m_Data = mat;
|
||||
}
|
||||
|
||||
// TODO
|
||||
void Vect::Print() const {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user