try to fix get_row

This commit is contained in:
kai
2025-05-31 12:57:40 +02:00
parent bdb3d4b88c
commit fe896743d1

View File

@@ -115,7 +115,9 @@ public:
Matrix &operator/=(double x);
std::vector<double> &get_row(int i) {
return slice(i * this->cols(), this->cols());
size_t start = i * this->numCols_;
return std::vector<double>(this->data() + start,
this->data() + start + this->numCols_);
}
private: