Displaying 15 results from an estimated 15 matches for "__implicit".
2019 Nov 02
6
head.matrix can return 1000s of columns -- limit to n or add new argument?
...of inherited classes, which I sense that we'd rather not do....
>
> and we have something like that already with is(.)
>
> Thank you for these important points raised!
>
> Note again that both "matrix" and "array" are special [see ?class] as
> being of __implicit class__ and I am considering that this
> implicit class behavior for these two should be slightly changed
> such that
>
> foo <- function(x,...) UseMethod("foo")
> foo.array <- function(x, ...)
> sprintf("array of dim. %s", paste(dim(x), c...
2019 Nov 10
2
class(<matrix>) |--> c("matrix", "arrary") [was "head.matrix ..."]
...ch would break -- unless we change class(x) to return the whole
>> set of inherited classes, which I sense that we'd rather not do....
>
> [................]
>
>> Note again that both "matrix" and "array" are special [see ?class] as
>> being of __implicit class__ and I am considering that this
>> implicit class behavior for these two should be slightly
>> changed ....
>>
>> And indeed I think you are right on spot and this would mean
>> that indeed the implicit class
>> "matrix" should rather become c(...
2019 Oct 31
2
head.matrix can return 1000s of columns -- limit to n or add new argument?
Hmm, the problem I see here is that these implied classes are all inherently one-off. We also have
> inherits(matrix(1,1,1),"numeric")
[1] FALSE
> is.numeric(matrix(1,1,1))
[1] TRUE
> inherits(1L,"numeric")
[1] FALSE
> is.numeric(1L)
[1] TRUE
and if we start fixing one, we might need to fix all.
For method dispatch, we do have inheritance, e.g.
>
2019 Nov 14
2
class(<matrix>) |--> c("matrix", "arrary") [was "head.matrix ..."]
...would break -- unless we change class(x) to return the whole
> > set of inherited classes, which I sense that we'd rather not do....
>
> [................]
>
> > Note again that both "matrix" and "array" are special [see ?class] as
> > being of __implicit class__ and I am considering that this
> > implicit class behavior for these two should be slightly
> > changed ....
> >
> > And indeed I think you are right on spot and this would mean
> > that indeed the implicit class
> > "matrix" should rather beco...
2019 Nov 01
0
head.matrix can return 1000s of columns -- limit to n or add new argument?
...ass(x) to return the whole set of inherited classes, which I sense that we'd rather not do....
and we have something like that already with is(.)
Thank you for these important points raised!
Note again that both "matrix" and "array" are special [see ?class] as
being of __implicit class__ and I am considering that this
implicit class behavior for these two should be slightly changed
such that
foo <- function(x,...) UseMethod("foo")
foo.array <- function(x, ...)
sprintf("array of dim. %s", paste(dim(x), collapse = " x "))...
2019 Nov 02
0
head.matrix can return 1000s of columns -- limit to n or add new argument?
...I sense that we'd rather not do....
>>
>> and we have something like that already with is(.)
>>
>> Thank you for these important points raised!
>>
>> Note again that both "matrix" and "array" are special [see ?class] as
>> being of __implicit class__ and I am considering that this
>> implicit class behavior for these two should be slightly changed
>> such that
>>
>> foo <- function(x,...) UseMethod("foo")
>> foo.array <- function(x, ...)
>> sprintf("array of dim. %...
2019 Nov 11
2
class(<matrix>) |--> c("matrix", "arrary") [was "head.matrix ..."]
...;>>> set of inherited classes, which I sense that we'd rather not do....
>>>
>>> [................]
>>>
>>>> Note again that both "matrix" and "array" are special [see ?class] as
>>>> being of __implicit class__ and I am considering that this
>>>> implicit class behavior for these two should be slightly
>>>> changed ....
>>>>
>>>> And indeed I think you are right on spot and this would mean
>>>> that indeed the implic...
2019 Nov 10
0
class(<matrix>) |--> c("matrix", "arrary") [was "head.matrix ..."]
...t ]
>
> > which would break -- unless we change class(x) to return the whole
> set of inherited classes, which I sense that we'd rather not do....
[................]
> Note again that both "matrix" and "array" are special [see ?class] as
> being of __implicit class__ and I am considering that this
> implicit class behavior for these two should be slightly
> changed ....
>
> And indeed I think you are right on spot and this would mean
> that indeed the implicit class
> "matrix" should rather become c("matrix", "...
2019 Nov 10
0
class(<matrix>) |--> c("matrix", "arrary") [was "head.matrix ..."]
...s we change class(x) to return the whole
>>> set of inherited classes, which I sense that we'd rather not do....
>>
>> [................]
>>
>>> Note again that both "matrix" and "array" are special [see ?class] as
>>> being of __implicit class__ and I am considering that this
>>> implicit class behavior for these two should be slightly
>>> changed ....
>>>
>>> And indeed I think you are right on spot and this would mean
>>> that indeed the implicit class
>>> "matrix"...
2019 Nov 14
0
class(<matrix>) |--> c("matrix", "arrary") [was "head.matrix ..."]
...we change class(x) to return the whole
>>> set of inherited classes, which I sense that we'd rather not do....
>>
>> [................]
>>
>>> Note again that both "matrix" and "array" are special [see ?class] as
>>> being of __implicit class__ and I am considering that this
>>> implicit class behavior for these two should be slightly
>>> changed ....
>>>
>>> And indeed I think you are right on spot and this would mean
>>> that indeed the implicit class
>>> "matrix"...
2019 Nov 12
0
class(<matrix>) |--> c("matrix", "arrary") [was "head.matrix ..."]
...ed classes, which I sense that we'd rather not do....
> >>>
> >>> [................]
> >>>
> >>>> Note again that both "matrix" and "array" are special [see ?class] as
> >>>> being of __implicit class__ and I am considering that this
> >>>> implicit class behavior for these two should be slightly
> >>>> changed ....
> >>>>
> >>>> And indeed I think you are right on spot and this would mean
> >>&g...
2019 Nov 15
5
class(<matrix>) |--> c("matrix", "arrary") [was "head.matrix ..."]
...;>>> set of inherited classes, which I sense that we'd rather not do....
>>>
>>> [................]
>>>
>>>> Note again that both "matrix" and "array" are special [see ?class] as
>>>> being of __implicit class__ and I am considering that this
>>>> implicit class behavior for these two should be slightly
>>>> changed ....
>>>>
>>>> And indeed I think you are right on spot and this would mean
>>>> that indeed the implic...
2020 Jan 21
2
class(<matrix>) |--> c("matrix", "arrary") -- and S3 dispatch
...am wrote:
> >>> On Sun, Nov 10, 2019 at 2:37 AM Martin Maechler ... wrote:
>
> [................]
>
> >>>>> Note again that both "matrix" and "array" are special [see ?class] as
> >>>>> being of __implicit class__ and I am considering that this
> >>>>> implicit class behavior for these two should be slightly
> >>>>> changed ....
> >>>>>
> >>>>> And indeed I think you are right on spot and this would mean
>...
2019 Nov 21
0
class(<matrix>) |--> c("matrix", "arrary") -- and S3 dispatch
...gt; On 11/14/19 05:47, Hadley Wickham wrote:
>>> On Sun, Nov 10, 2019 at 2:37 AM Martin Maechler ... wrote:
[................]
>>>>> Note again that both "matrix" and "array" are special [see ?class] as
>>>>> being of __implicit class__ and I am considering that this
>>>>> implicit class behavior for these two should be slightly
>>>>> changed ....
>>>>>
>>>>> And indeed I think you are right on spot and this would mean
>>>>> th...
2020 Jan 28
0
class(<matrix>) |--> c("matrix", "arrary") -- and S3 dispatch
...>>> On Sun, Nov 10, 2019 at 2:37 AM Martin Maechler ... wrote:
>>
>> [................]
>>
>> >>>>> Note again that both "matrix" and "array" are special [see ?class] as
>> >>>>> being of __implicit class__ and I am considering that this
>> >>>>> implicit class behavior for these two should be slightly
>> >>>>> changed ....
>> >>>>>
>> >>>>> And indeed I think you are right on spot and this wou...