Hi Jürgen,
indeed you are ahead of me.
SVN 1658 works like a charm.
Thank you for all the effort.
Best Regards
Hans-Peter
Am 13.03.23 um 11:32 schrieb Dr. Jürgen Sauermann:
Hi Hans-Peter,
in contrast, I am getting this (*SVN 165**8*):
*
V←'A' (1 2 3 4 5) (3 3⍴1)
V
A 1 2 3 4 5
Hi Hans-Peter,
in contrast, I am getting this (SVN 1658):
V←'A' (1 2 3 4 5) (3 3⍴1)
V
A 1 2 3 4 5 1 1 1
1 1 1
1 1 1
(1/3⊃V) ≡ 3⊃V
1
Hi Jürgen,
back from wintry Hahnenklee/Harz here are my thoughts.
In ref.: "like a variable or like part of variable"
I always look at the intermediate data content which I consider to be
identical from "variable point of view" and "part of variable point of
view".
In following example that
Gentlemen,
thanks for your patience. I believe that I have now found a
solution that may please both of you. Attached is my testcase
file, please have a look.
I still believe that left values using A⊃V
or A/B are ambiguous
as to whether t
Hi Jürgen,
thank you for considering it.
Your work is admirable.
Best Regards
Hans-Peter
Am 09.03.23 um 17:49 schrieb Dr. Jürgen Sauermann:
Hi Hans-Peter,
you are probably right. This one looks rather tricky, therefore
I may need some time. But I am working on it.
Best Regards,
Jürgen
On
Hi Hans-Peter,
you are probably right. This one looks rather tricky, therefore
I may need some time. But I am working on it.
Best Regards,
Jürgen
On 3/8/23 9:05 PM, Hans-Peter Sorge
wrote:
Hello Jür
Hello Jürgen,
sorry that I'm so insistent
in
APL2 Programming:Language Reference
it is stated:
Selective Specification:Compress can be used for selective specification:
M←32ρι6
M
12
34
56
(10/M)←'ABC'
M
A2
B4
C6
Using our example V
V←1 'bc' M
V
1 bc 1 2
3 4
5 6
The se
Hi,
I fixed a discrepancy between (3⊃V)← and (1/3⊃V)←. SVN 1657.
We know have:
V←1 'bc' (3 3⍴⍳9) ◊ 8 ⎕CR V
┌→─┐
│1 ┌→─┐ ┌→┐│
│ │bc│ ↓1 2 3││
│ └──┘ │4 5 6││
│ │7 8 9││
Hello Jürgen, Elias
The difference I mention is in
(1/3⊃V)←1
vs
(3⊃V)←1
The second expression is the one discussed in the Mail.
And I agree with your statement Jürgen that, even if not specified, your
solution is correct.
3⊃V is the third elemnt in V and that is being set to 1.
The first expr
I think this is because monadic ⊃ is first in Dyalog, as opposed to
disclose in GNU, APL2 (and, incidentally, KAP 😀).
Use monadic ↑ instead to get the effect you want.
Den ons 8 mars 2023 00:34Dr. Jürgen Sauermann
skrev:
> Hi Hans-Peter,
>
> I believe that GNU APL, Dyalog, and IBM APL2 only now
Hi Hans-Peter,
I believe that GNU APL, Dyalog, and IBM APL2 only now behave
the same while GNU APL did not before the fix:
TryAPL Version 3.6.1 (enter ]State for
details)
Tue Mar 07 2023 16:59:04
Copyright (c) Dyalog Limited 1982-
Hello Jürgen,
I agree with your case 1/2 Statement.
The examples I was showing is actually "off by 1".
I was referring to
(1/3⊃V)←1
having
a←1
b←'ABC'
c←3 3⍴⍳9
V←a b c
(3⊃V)
1 2 3
4 5 6
7 8 9
As expected with case 1:
(3⊃V)←1
V
1 ABC 1
V←a b c
Not expe
Gentlemen,
thanks for the discussion, fixed in SVN 1655.
Hans-Peter, I am sorry that this change creates an incompatibility
in your code.
My thinking for the old solution was this:
V←0 0 0 ◊ V←1 ◊ V ∩ case 1.
1
Hi,
Yes, spontaneously it looked like selective assignment
Like
CM← ⊃'Sue' 'Maria' 'Annalisa'
CM
Sue
Maria
Annalisa
(1/CM)← ⊂'x'
CM
x x x x x x x x
x x x x x x x x
x x x x x x x x
Thank you for your reply, Hans-Peter. Sorry for the delay; it took some time
to dig out my old interpreters. APL2, APL+Win, and Dyalog come up with the
answer I expect. I do not see why reassignment would retain the structure of
the prior contents. Is your point of view based upon selective
Hi,
Works as expected
⊃'Sue' 'Maria' 'Annalisa'
is an array 3 by 8.
⊂⊃'Susan' 'Mary' 'Annalisa'
is an element (⊂) of a 3 by 8 array (⊃'Susan' 'Mary' 'Annalisa' ).
Finally each element in ⊃'Sue' 'Maria' 'Annalisa' gets assigned an
array of ⊃'Susan' 'Mary' 'Annalisa'
Greetings
Hans-Peter
Hi,
I have an issue with reassigning an element of a nested array. Here is an
example.
14535:15a:~% apl --version
BUILDTAG:
-
Project:GNU APL
Version / SVN: 1.8 / SVN: 1651M
Build Date: 2023-03-02 00:25:07 UTC
Build OS: Darwin 21.6.0 x86_64
config.
17 matches
Mail list logo