Module: NumericFunctions

Extended by:
FunctionCreation, RubyFunctions
Included in:
NumericalMDArray
Defined in:
lib/mdarray/ruby_numeric_functions.rb

Defined Under Namespace

Classes: Abs, Add, Ceil, Cube, Div, Floor, Fourth, IsZero, Max, Min, Mul, Power, Square, Sub, Truncate

Instance Method Summary collapse

Methods included from FunctionCreation

make_binary_op, make_unary_op

Methods included from RubyFunctions

make_binary_operator, make_binary_operators, make_comparison_operator, make_unary_operator, make_unary_operators, ruby_binary_function, ruby_unary_function

Instance Method Details

#fast_add(other_val) ⇒ Object





150
151
152
# File 'lib/mdarray/ruby_numeric_functions.rb', line 150

def fast_add(other_val)
  arr = Java::UcarMa2::MAMath.add(@nc_array, other_val.nc_array)
end

#zero?(val) ⇒ Boolean



Returns:

  • (Boolean)


142
143
144
# File 'lib/mdarray/ruby_numeric_functions.rb', line 142

def zero?(val)
  @is_zero.call(val)
end