better fill
This commit is contained in:
@@ -71,11 +71,7 @@ Matrix Matrix::RawVector(std::initializer_list<Element>&& a_Elements) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Matrix::Fill(Element a_Element) {
|
void Matrix::Fill(Element a_Element) {
|
||||||
for (std::size_t i = 0; i < m_Raws; i++) {
|
std::fill(GetLineIterator(0), GetLineIterator(m_Raws), a_Element);
|
||||||
for (std::size_t j = 0; j < m_Columns; j++) {
|
|
||||||
at(i, j) = a_Element;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Matrix::Augment(const Matrix& a_Right) {
|
void Matrix::Augment(const Matrix& a_Right) {
|
||||||
|
|||||||
Reference in New Issue
Block a user