コード例 #1
0
ファイル: AMatrix.hpp プロジェクト: rjk9w5/NinjasProject
Vector<T> operator*(const AMatrix<T>& lhs, const Vector<T>& rhs)
{
  assert(lhs.cols() == rhs.size());
  Vector<T> ret(lhs.rows());
  for(int i=0; i<lhs.rows(); ++i)
  {
    ret[i] = lhs.getRow(i)*rhs;
  }

  return ret;
}