bug-apl
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
[Bug-apl] Simple division question
From
:
David Tran
Subject
:
[Bug-apl] Simple division question
Date
:
Thu, 19 May 2016 23:07:22 -0400
Hi,
vector × or ÷ scalar
scalar × or ÷ vector
are all expected result. ( as scalar duplicate to same shape as vector )
One higher rank to matrix,
matrix × scalar
scalar × matrix
are all expected result.
matrix ÷ scalar is OK too,
but scalar ÷ matrix got no "expected" result and error... why?
~~~~~~~~
2 × 3 4
6 8
3 4 × 2
6 8
2 ÷ 3 4
0.6666666667 0.5
3 4 ÷ 2
1.5 2
m ← 3 3⍴1,3⍴0
m
1 0 0
0 1 0
0 0 1
m × 2
2 0 0
0 2 0
0 0 2
2 × m
2 0 0
0 2 0
0 0 2
m ÷ 2
0.5 0 0
0 0.5 0
0 0 0.5
2 ÷ m
DOMAIN ERROR
2÷m
^ ^
Thanks,
Dave
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
[Bug-apl] Simple division question
,
David Tran
<=
Re: [Bug-apl] Simple division question
,
Elias Mårtenson
,
2016/05/19
Re: [Bug-apl] Simple division question
,
David Tran
,
2016/05/19
Prev by Date:
Re: [Bug-apl] ravel with axis - assertion failed
Next by Date:
Re: [Bug-apl] Simple division question
Previous by thread:
[Bug-apl] ravel with axis - assertion failed
Next by thread:
Re: [Bug-apl] Simple division question
Index(es):
Date
Thread