#include "vector.hpp" #include "matrix.hpp" const vector vector::operator*(const matrix &m) const { vector res(m.get_num_entries()); for (uint64_t i = 0; i < this->get_dimention(); i++) { cnumber sum = 0; for (uint64_t j = 0; j < this->get_dimention(); j++) { sum = sum + (m.get_entry(j)[i] * this->entries[j]); } res[i] = sum; } return res; }