Class: TransposableArray

Inherits:
CallbackArray show all
Defined in:
lib/data_frame/transposable_array.rb

Overview

The only trick in this array is that it’s transpose is memoized until it is tainted. This should reduce computations elegantly.

Instance Method Summary collapse

Methods inherited from CallbackArray

#<<, #[]=, #clear, #collect!, #compact!, #delete, #flatten!, #map!, #nontainting_append, #nontainting_assign, #nontainting_clear, #nontainting_collect!, #nontainting_compact!, #nontainting_delete, #nontainting_flatten!, #nontainting_map!, #nontainting_pop, #nontainting_push, #nontainting_reject!, #nontainting_reverse!, #nontainting_shift, #nontainting_slice!, #nontainting_sort!, #nontainting_uniq!, #nontainting_unshift, #orig_taint, #pop, #push, #reject!, #reverse!, #shift, #slice!, #sort!, #taint, #uniq!, #unshift

Methods inherited from Array

#dimensions

Instance Method Details

#cacheObject

For debugging and testing purposes, it just feels dirty to always ask for @ta.send(:instance_variable_get, :@transpose)



15
16
17
# File 'lib/data_frame/transposable_array.rb', line 15

def cache
  @transpose
end