Thank you Krishna for the plug I will jot down a few more suggestions
with a HUGE caveat: There are usually subtle and surprising details
about large data's shape, momentum, etc that can impact computation
greatly and I don't know what they are for...
Aaron Davies had posted a very useful solution using upsert and hopen in
2010 to k4 list that I copy below with function definition example$ q -p
5050q)a:1q)b:`fooq)c:([]x:())q)w:til 10q)f:{(sum x)%count x}$ qq)`.
upsert hopen[5050]`.`.q)a1q)b`fooq)c...
It looks like d9(b9(-1,x) is a (or the only?) nul-safe way of doing
deep-copy of types 0, KS, XT, XD using C API? (It is a neat way, albeit
expensive.)Speaking of C API, there is no mention of API for retrieving
number of bytes a K object takes up. T...
run views[] or \b then you will see `c but not `a -- q thinks c is aview
but not a.On Tue, Aug 23, 2016 at 11:21 AM, Xinyu Gai wrote:>> Hi
there,>> Please find the code below. I tested this in a local q instance
for many> times. Why are the last two ...