For example the predicting house pirces example, we can code it in one line for materix vector multiplication.

 

The tip is conver size to a m*2 matrix, params is 2*1 vector:

[Linear Algebra] Matrix Vector Multiplication_[Linear Algebra]