Displaying 5 results from an estimated 5 matches for "duplicateex".
2020 Nov 21
3
Two ALTREP questions
...5
[2,] 2 4 6
```
The problem is that the coercion function is directly dispatched to the
user-defined ALTREP coercion function, so the user is responsible to attach
the attributes after the coercion. If he forgets to do so, then the result
is a plain vector. Similar to the `Duplicate` and `DuplicateEX` functions
where the former one will attach the attributes by default, I feel that the
`Coerce` function should only return a plain vector and there should be a
`CoerceEx` function to do the attribute assignment, so the logic in the
no-EX ALTREP functions can be consistent. I do not know how dramas...
2020 Nov 21
0
[External] Two ALTREP questions
...; ```
> The problem is that the coercion function is directly dispatched to the
> user-defined ALTREP coercion function, so the user is responsible to attach
> the attributes after the coercion. If he forgets to do so, then the result
> is a plain vector. Similar to the `Duplicate` and `DuplicateEX` functions
> where the former one will attach the attributes by default, I feel that the
> `Coerce` function should only return a plain vector and there should be a
> `CoerceEx` function to do the attribute assignment, so the logic in the
> no-EX ALTREP functions can be consistent. I do...
2019 Jul 24
1
[External] Re: Any plans for ALTREP lists (VECSXP)?
...gt; defined. The default methods in altrep.c should do the right think.
>
> A reasonable name for the abstract class would be 'altlist'.
>
> 'altrep' methods that a class can provide:
>
> Unserialize or UnserializeEX
> Serialized_state
> Duplicate or DuplicateEx
> Coerce
> Inspect
> Length
>
> 'altvec' methods a class should provide:
>
> Extract_subset
> not Dataptr
> not Dataptr_or_null
>
> 'altlist' specific methods:
>
> Elt
> Set_elt
>
> Best,
>
> luke
>
>...
2019 Jul 24
0
[External] Re: Any plans for ALTREP lists (VECSXP)?
...r_or_null methods were not allowed to be
defined. The default methods in altrep.c should do the right think.
A reasonable name for the abstract class would be 'altlist'.
'altrep' methods that a class can provide:
Unserialize or UnserializeEX
Serialized_state
Duplicate or DuplicateEx
Coerce
Inspect
Length
'altvec' methods a class should provide:
Extract_subset
not Dataptr
not Dataptr_or_null
'altlist' specific methods:
Elt
Set_elt
Best,
luke
On Tue, 23 Jul 2019, Gabriel Becker wrote:
> Hi Kylie,
>
> Is it a list with only...
2019 Jul 23
3
Any plans for ALTREP lists (VECSXP)?
Hi Kylie,
Is it a list with only numerics in it? (I only see REALSXPs there, but
obviously inspect isn't showing all of them). If so, you could load it up
into one big vector and then also keep partitioning information around.
Bioconductor does this (see ?IRanges::CompressedList ). The potential
benefit here being that the underlying large vector could then be a big
out-of-memory altrep. How