# The coefficients-vectors method

• Feb 13th 2007, 08:13 AM
Grunt
The coefficients-vectors method

Ok, I understand how to get it this far. But how are they getting this?

• Feb 13th 2007, 08:20 AM
Richard Rahl
Hello there!

I'm not sure what you are trying to do, multiplication or dot product (the single dot usually indicates dot product).

But the matrix below is the result of multiplying those two matricies. Is that what you are having a problem with?
• Feb 13th 2007, 08:20 AM
Grunt
nm, i just needed to sit back and look at it more.
• Feb 13th 2007, 10:29 AM
ThePerfectHacker
It makes no difference which method you use to multiply matrices, whichever one you understand the best. The important thing is that you know how to multiply them. The one I use is the standard dot product between the rows and coloums.
• Feb 18th 2007, 12:16 PM
Soroban
Hello, Grunt!

Someone taught you a very messy way of multiplying matrices.
. . Shame on them!

ThePerfectHacker referred to a "standard dot product".
. . I thought everyone used it.

Let's multiply "a row times a column".
Code:

```            | 4 | [ 1 2 3 ] · | 5 |  =  (1)(4) + (2)(5) + (3)(6)             | 6 |     =  4 + 10 + 18  =  32```
I hope you see what pairs are being multipled.

Code:

```                  | 3  1 |     |  1  0  2 |  |      |     |          | · | 2  1 |     | -1  3  1 |  |      |                   | 1  0 |```
We will multiply each row in the first matrix
. . by each column in the second matrix.
Here we go . . .

Row-1 times Column-1
Code:

```                | 3 |     | 1 0 2 | · | 2 |  =  (1)(3) + (0)(2) + (2)(1)  =  5                 | 1 |```
In Row-1, Column-1 of the product matrix (upper left).

Row-1 times Column-2
Code:

```                | 1 |     | 1 0 2 | · | 1 |  =  (1)(1) + (0)(1) + (2)(0)  =  1                 | 0 |```
This goes in Row-1, Column-2 of the product (upper right).

Row-2 times Column-1
Code:

```                | 3 |     |-1 3 1 | · | 2 |  =  (-1)(3) + (3)(2) + (1)(1)  =  4                 | 1 |```
This goes in Row-2, Column-1 of the product (lower left).

Row-2 times Column-2
Code:

```                | 1 |     |-1 3 1 | · | 1 |  =  (-1)(1) + (3)(1) + (1)(0)  =  2                 | 0 |```
This goes in Row-2, Column-2 of the product (lower right).

```      | 5  1 |       | 4  2 |```
{"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "url": "http://mathhelpforum.com/advanced-algebra/11548-coefficients-vectors-method-print.html", "fetch_time": 1508577953000000000, "content_mime_type": "text/html", "warc_filename": "crawl-data/CC-MAIN-2017-43/segments/1508187824675.67/warc/CC-MAIN-20171021081004-20171021101004-00373.warc.gz", "warc_record_offset": 234843530, "warc_record_length": 3487, "token_count": 802, "char_count": 2315, "score": 4.03125, "int_score": 4, "crawl": "CC-MAIN-2017-43", "snapshot_type": "longest", "language": "en", "language_score": 0.7354809641838074, "file_path": "/sailhome/yjruan/project/latent-lm/data/processed/finemath-4plus/finemath-4plus/train-00032-of-00064.parquet"}