« first day (1916 days earlier)
← previous day
next day →
last day (755 days later) »
Marshall
2:33 PM
@Adám The Wiki page on
Tatin
includes a reference to Dyalog 19.0 that I'm guessing is outdated, but I don't know what the current status is. Mind updating it?
Adám
2:44 PM
@Marshall Thanks, but I think that's still accurate.
5 hours later…
elliptic00
7:30 PM
how to multiply a matrix and vector?
Adám
@elliptic00 What result do you expect?
elliptic00
m 0 1 ¯1 1 v 2 0 m × v LENGTH ERROR: Mismatched left and right argument shapes m×v ∧
a vector
Adám
I very much doubt
v
is a vector.
What is
⍴v
?
elliptic00
⍴v
2 1
Adám
That'd be a 2-row, 1-column matrix.
Do you by any chance expect the result
0 ¯2
?
elliptic00
7:32 PM
yes
Adám
m+.×v
then.
elliptic00
ok,
thx
elliptic00
7:51 PM
what if the v is just array, not a matrix?
column array?
Adám
@elliptic00 That's impossible; a column array
is
a matrix.
However, if
v
is a vector, the corresponding code is
m+.×v
In general, if some APL code is well-written, the same code works no matter what ranks the involved arrays have.
4 hours later…
elliptic00
11:28 PM
+.× so it is like just generalization dot product of matrix and vector , vector and vector
matrix and matrix
« first day (1916 days earlier)
← previous day
next day →
last day (755 days later) »
all rooms
Transcript for
Apr
24
Apr '22
25
Apr
26
The APL Orchard
apl.chat
― Learn, teach, ask, code, golf, & discuss usage. See
...
2
apl
array-manipulation
j
tips
join this room
about this room
00:00
06:00
12:00
18:00
all times are UTC
site design / logo © 2024 Stack Exchange Inc;
legal
mobile