20.11.2014 09:05, Jan-Pieter Jacobs пишет:
To give you a more direct reply:
conjunctions, like & and @ work on either verbs or nouns.
=: and =. are neither, they are a special category called copula.
I hope this clarifies.
It is clear that the assignment is an exception to the rule.
It is un
To give you a more direct reply:
conjunctions, like & and @ work on either verbs or nouns.
=: and =. are neither, they are a special category called copula.
I hope this clarifies.
On 20 Nov 2014 00:21, "Raul Miller" wrote:
> See also
>
> http://www.jsoftware.com/help/dictionary/dicte.htm
>
> T
the 3rd is tacit and not a train.
- Original Message -
From: Marshall Lochbaum
To: programm...@jsoftware.com
Cc:
Sent: Wednesday, November 19, 2014 10:29 PM
Subject: Re: [Jprogramming] Boxing columns
None of these beat Roger's by your criteria, but here are a few:
(,,.)&.>/ i.3 3
<"_
None of these beat Roger's by your criteria, but here are a few:
(,,.)&.>/ i.3 3
<"_1|:,: i.3 3
(0 1,:3 1) <;.3 i.3 3
The second features a rare specimen--monadic |: on an array of rank
greater than 2. Of course it looks a bit uglier when placed in tacit
form.
Marshall
On Wed, Nov 19, 2014 a
I think he was talking about my disqualifying Pascal's entry on the
grounds that written as a verb it would need a train. Nothing to do
with matrix algebra.
Henry Rich
On 11/19/2014 6:48 PM, Roger Hui wrote:
What reasoning do you mean please?
In mathematics and in computer science block mat
What reasoning do you mean please?
In mathematics and in computer science block matrices can be manipulated to
advantage. See for example:
http://www.jsoftware.com/jwiki/Essays/Triangular%20Matrix%20Inverse
http://www.jsoftware.com/jwiki/Essays/Choleski%20Decomposition
http://www.jsoftware.com/jw
('';1)&(<;.1) doesn't use compose/appose, just bond.
What I was trying to get at is that there is primitive support for the
feature, with only one verb being executed on the data.
Henry Rich
On 11/19/2014 6:19 PM, Raul Miller wrote:
What does that reasoning mean in the context of b=: ('';1)
More general:
bminv =. (bminv~ #@$) : (4 : '(<:x) >@]`bminv@.(*@[) ,"x&.>/ y')
bminv (1 0 0 1;1 0 1 0 0) <;.1 i.4 5
0 1 2 3 4
5 6 7 8 9
10 11 12 13 14
15 16 17 18 19
bminv (1 1 0;1 0 1 0;1 1 1) <;.1 i. 3 4 3
0 1 2
3 4 5
6 7 8
9 10 11
12 13 14
15 16 17
18 19 20
21 22
See also
http://www.jsoftware.com/help/dictionary/dicte.htm
Thanks,
--
Raul
On Wed, Nov 19, 2014 at 5:03 PM, Sergey Kamenev wrote:
>a=:2
>
>(a &+)\ 1 2 3
> 3 0 0
> 3 4 0
> 3 4 5
>
>
> *(a & =:)\ 1 2 3*
> |syntax error
> | (a&=:)\1 2 3
>
> *Why error?*
>
> Even more simple example
>
What does that reasoning mean in the context of b=: ('';1) <;.1 i.3 3 ?
Also, I am wondering about {.|:> b
Thanks,
--
Raul
On Wed, Nov 19, 2014 at 5:51 PM, Henry Rich wrote:
> That would use @/fork if you wrote it as a verb.
>
> Henry Rich
>
>
> On 11/19/2014 5:42 PM, 'Pascal Jasmin' via Pr
The inverse is not yet implemented. If it were, you'd be able to get i.4 5
from the following (for example), which you don't get from ,.&:>/ .
(1 0 0 1;1 0 1 0 0) <;.1 i.4 5
┌─┬┐
│ 0 1│ 2 3 4│
│ 5 6│ 7 8 9│
│10 11│12 13 14│
├─┼┤
│15 16│17 18 19│
└─┴┘
That would use @/fork if you wrote it as a verb.
Henry Rich
On 11/19/2014 5:42 PM, 'Pascal Jasmin' via Programming wrote:
tacit without fork/hook
,. each <"1&.|: i. 3 3
- Original Message -
From: Henry Rich
To: programm...@jsoftware.com
Cc:
Sent: Wednesday, November 19, 2014 5:23 P
tacit without fork/hook
,. each <"1&.|: i. 3 3
- Original Message -
From: Henry Rich
To: programm...@jsoftware.com
Cc:
Sent: Wednesday, November 19, 2014 5:23 PM
Subject: Re: [Jprogramming] Boxing columns
If you like... you don't need it. No @ or @: though.
Henry Rich
On 11/19/201
can use instead
assign =: 4 : '(x) =: y'
'a' assign 2
you might like:
assignwith
1 : 0
y assign u (y~ [ ]) :: ((i.0)"1) 1
:
y assign x u (y~ [ ]) :: ((i.0)"1) 1
)
5 +&^. assignwith 'a'
2.30259
a
2.30259
a =: @ ^. 5
|syntax error
syntax error because adverb noun is not allow
Is the inverse implemented using ^:_1 ? I couldn't find it.
I come up with ,.&:>/ as an inverse for ('';1)&(<;.1) .
Henry Rich
On 11/19/2014 5:28 PM, Roger Hui wrote:
The inverse of this "block matrices cut" is also interesting.
On Wed, Nov 19, 2014 at 2:27 PM, Roger Hui
wrote:
('';
The inverse of this "block matrices cut" is also interesting.
On Wed, Nov 19, 2014 at 2:27 PM, Roger Hui
wrote:
>('';1) <;.1 i.3 3
> ┌─┬─┬─┐
> │0│1│2│
> │3│4│5│
> │6│7│8│
> └─┴─┴─┘
>
>
> On Wed, Nov 19, 2014 at 2:05 PM, Henry Rich wrote:
>
>>boxcols i. 3 3
>> +-+-+-+
>> |0|1|2|
>> |3|4
('';1) <;.1 i.3 3
┌─┬─┬─┐
│0│1│2│
│3│4│5│
│6│7│8│
└─┴─┴─┘
On Wed, Nov 19, 2014 at 2:05 PM, Henry Rich wrote:
>boxcols i. 3 3
> +-+-+-+
> |0|1|2|
> |3|4|5|
> |6|7|8|
> +-+-+-+
>
> Can you write boxcols?
>
> Can you write it tacitly without using a hook, fork, compose, or appose?
>
> Henry
If you like... you don't need it. No @ or @: though.
Henry Rich
On 11/19/2014 5:21 PM, 'Pascal Jasmin' via Programming wrote:
Yes :P... a bit hard. allowed to use &. ?
- Original Message -
From: Henry Rich
To: Programming forum
Cc:
Sent: Wednesday, November 19, 2014 5:08 PM
Subjec
Yes :P... a bit hard. allowed to use &. ?
- Original Message -
From: Henry Rich
To: Programming forum
Cc:
Sent: Wednesday, November 19, 2014 5:08 PM
Subject: Re: [Jprogramming] Boxing columns
And I also meant, no use of @ .
Henry Rich
On 11/19/2014 5:05 PM, Henry Rich wrote:
>
And I also meant, no use of @ .
Henry Rich
On 11/19/2014 5:05 PM, Henry Rich wrote:
boxcols i. 3 3
+-+-+-+
|0|1|2|
|3|4|5|
|6|7|8|
+-+-+-+
Can you write boxcols?
Can you write it tacitly without using a hook, fork, compose, or appose?
Henry Rich
-
boxcols i. 3 3
+-+-+-+
|0|1|2|
|3|4|5|
|6|7|8|
+-+-+-+
Can you write boxcols?
Can you write it tacitly without using a hook, fork, compose, or appose?
Henry Rich
--
For information about J forums see http://www.jsoftware.com
a=:2
(a &+)\ 1 2 3
3 0 0
3 4 0
3 4 5
*(a & =:)\ 1 2 3*
|syntax error
| (a&=:)\1 2 3
*Why error?*
Even more simple example
a + & ^. 5
2.30259
a =: & ^. 5
|syntax error
| a=:&^.5
*Why compose don't support assigment?*
Sergey
P.S.
a =: @ ^. 5
|syntax error
| a=:@
I don't understand the question.
I'm also not certain about the grades 1&2 approach. Personally, I did not
get taught multiplication in school until fourth grade (though I remember
trying to read an algebra primer when I was in second grade, and not really
getting anywhere with it - thought I reme
I didn't try your script or know what it was expected to show or
what was broken. Perhaps you can clarify.
Henry Rich had written some remarks on glrect in jwiki
http://www.jsoftware.com/jwiki/Guides/Window%20Driver/gl2%20Command%20Reference
May be that can explain your problem. That said, glr
So Raul,
Now that I can get what I want in messages better, if this is a summary of
Grade 1 and 2 in J Tech showed {: for monads rather than ‘ ‘ or empty space?
]FINAL=:NAMES2 /:~ ALL
┌─┬─┬──┬─┬─┬─┬─┐
│And │x│*.│y│LOGIC│ │*│
├─┼─┼──┼─┼─┼─┼─┤
│
Some of the docs about graphics are out of date since the move to QT,
and the gdxxx verbs broke (at least for me) in the upgrade to j803/QT5.
So: I spent some time today putting together a little demo that shows how
to use isigraph to draw to the screen and handle raw keyboard events:
https://g
26 matches
Mail list logo