Row vector (multiplication by a column vector)
|
02-01-2023, 02:21 PM
Post: #1
|
|||
|
|||
Row vector (multiplication by a column vector)
Example: 3x1 column vector multiplying a 1x3 row vector
a:=[[1,2,3]]; b:=[4,5,6]; a*b => "dotvecteur Error: Invalid dimension" However, by converting b to a 1x3 matrix first, works. b:=TRN(TRN(b)); // Converts the 1x3 vector to a 1x3 matrix ... a*b => [[4,5,6],[8,10,12],[12,15,18]] Requiring conversion from a row vector to a 1x3 matrix data type is an extra step that could benefit from software improvement, in cases such as these. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Row vector (multiplication by a column vector) - DrD - 02-01-2023 02:21 PM
RE: Row vector (multiplication by a column vector) - jte - 02-01-2023, 09:56 PM
RE: Row vector (multiplication by a column vector) - parisse - 02-02-2023, 11:16 AM
|
User(s) browsing this thread: 1 Guest(s)