Replies: 6 comments
-
|
what is _4 _4$'abc'? |
Beta Was this translation helpful? Give feedback.
-
|
That's a good question. I expect that it should correspond as much as possible with the behavior of So, here are some examples (I'm skirting a length error here, but I think I'm being consistent with row-major order): In other words, I am expecting Thinking about this a little further, I expect that the index order of But I guess the rule would be that items from |
Beta Was this translation helpful? Give feedback.
-
|
I don't understand the significance of the signs of the elements of X other than the last. 'I expect that the index order of You say that The result of $ has shape x,1}.$y. This seems to suggest a model in which the leading axis of y is rubbed out and replaced with the final element of x, the trailing axes are left in place, and the additional leading axes are tacked on. Only one of these statements makes any sense at all; the remainder do not, because the cells of y are extended cyclically. The signs of the last p elements of x at least should be significant, for the smallest p st 0=(#y)|*/(-p){.x (or #x if there is no such p). It would be nice if the remaining elements of x could be significant too. One solution, which I find not insensible despite its simplicity, is to simply reverse along negative axes. |
Beta Was this translation helpful? Give feedback.
-
|
Right... there's several differences between $ and {. One is that $ repeats items where {. uses fills when the left argument asks for a result larger than the right argument. Another difference is that when $ contains multiple elements it will add dimensions where {. works downward from the highest dimension of the right argument. ... Anyways, here's a model of the mechanism I think we should have for dyadic Or, if you prefer tacit notation:
|
Beta Was this translation helpful? Give feedback.
-
|
That is different from what you originally proposed, and it is the same as my suggestion to reverse along negated axes. I'm not making a value judgement, just pointing it out in case you missed it. |
Beta Was this translation helpful? Give feedback.
-
|
Oops, you are right. I wasn't paying enough attention when I wrote that model. It might actually be better than what I was originally thinking, but you were correct -- the final item in x has special significance. I can't think of any way to avoid that and achieve what I was originally thinking of. Or the model for what I was originally thinking of would be Thanks. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
J's
$verb should accept negative left arguments, similar to howi.and{.(and friends) accept negative arguments._3 $ 'abcdefg'should return'efg'and_3 $'ab'should return'bab'Beta Was this translation helpful? Give feedback.
All reactions