Naotoshi Seo
Naotoshi Seo
MEMO: embulk itself does not have any plugin hook points to be called on signal handler. Writing something in`def abort` or else does not work. To handle Ctrl-C, `Runtime.addShutdownHook()` can...
I've found https://github.com/lsegal/yard/issues/697. As it states, `(METHOD)` works, but `(VALUE(*)(ANYARGS))` does not work. The problem now is that we do not have `METHOD` macro in ruby.h.
I found that we can work around as: ``` rb_define_singleton_method(mMemoryPool, "enable", RUBY_METHOD_FUNC(rb_memory_pool_enable), 0); ``` `RUBY_METHOD_FUNC(func)` is defined in ruby.h.
@gtrevg Well, let me make clear. In your code, you are generating uuid in #configure, thus, `@uuid_r = UUIDTools::UUID.random_create.to_s` will be executed only once on starting up of fluentd, which...
> only generate the needed UUID if that variable were passed in hmm, current code structure is not supporting ways like that. It seems big refactoring is required to support...
patches welcome! ;-)
I talked with @masa16, and we agreed that making the behavior same with NumPy ndarray.
If we can find whether narray data is C contiguous, we can provide a helper at extra.rb like: ``` unless a.c_contiguous? b = b.dup end a.dot(b) ``` How about this...
Also, cuBLAS (maybe cBLAS also) has `transa` and `transb` option, so it is possible to compute ``` a.dot(b.transpose) ``` like ``` a.gemm(b, transb: true) ``` for faster computation. I want...
The variance of numo is "unbiased" sample variance whose denominator is N-1 where N is number of samples. However, the numpy's denominator is N. You can get the same result...