Class: JBLAS::MatrixElementWiseProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/jblas/proxies.rb

Instance Method Summary collapse

Constructor Details

#initialize(matrix) ⇒ MatrixElementWiseProxy

Returns a new instance of MatrixElementWiseProxy.



37
38
39
# File 'lib/jblas/proxies.rb', line 37

def initialize(matrix)
  @matrix = matrix
end

Instance Method Details

#*(other) ⇒ Object



41
42
43
# File 'lib/jblas/proxies.rb', line 41

def *(other)
  @matrix.mul(other)
end