lib/mcg/signal_analysis/dsp.rb
def find(str, sep=' ')
          fn_results = []
          fs_results = []
          n_results = []
          s_results = []
          @operations.each do |op|
            if op.fullname(sep) == str
              fn_results << op
            elsif op.fullsym(sep) == str
              fs_results << op
            elsif op.name == str
              n_results << op
            elsif op.sym == str
              s_results << op
            end
          end

          fn_results + fs_results + n_results + s_results
        end
Find Operation by fullname, fullsym, name, or sym. Returns all possible results.
Find Operation by fullname, fullsym, name, or sym. Returns all possible results.
Find Operation by fullname fullsym name or sym . Returns all possible results .
def find(str, sep=' ')
          fn_results = []
          fs_results = []
          n_results = []
          s_results = []
          @operations.each do |op|
            if op.fullname(sep) == str
              fn_results << op
            elsif op.fullsym(sep) == str
              fs_results << op
            elsif op.name == str
              n_results << op
            elsif op.sym == str
              s_results << op
            end
          end
          fn_results + fs_results + n_results + s_results
        end
def find ( str , sep = ' ' ) fn_results = [ ] fs_results = [ ] n_results = [ ] s_results = [ ] @operations . each do | op | if op . fullname ( sep ) == str fn_results << op elsif op . fullsym ( sep ) == str fs_results << op elsif op . name == str n_results << op elsif op . sym == str s_results << op end end fn_results + fs_results + n_results + s_results end
Find Operation by fullname, fullsym, name, or sym.
Find Operation by fullname fullsym name or sym .
str
sep