Sha256: c2deeb5bcd11cbdc051d2ec4a3904641201b68bc6176db5d4cc8515451e323c8

Contents?: true

Size: 465 Bytes

Versions: 9

Compression:

Stored size: 465 Bytes

Contents

require 'hilbert/api/matrix_api'
require 'hilbert/api/vector_api'
require 'hilbert/api/list_api'
require 'hilbert/api/func_api'
require 'hilbert/api/integral_api'
require 'hilbert/api/limit_api'
require 'hilbert/api/sigma_api'

module Hilbert
  module Api
    class ::Matrix
      def to_q
        rows.map(&:join_by_sp).join('; ').parentheses
      end
    end

    class ::Vector
      def to_q
        elements.join_by_sp.parentheses
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
hilbert-0.0.2700420 lib/hilbert/api.rb
hilbert-0.0.2700410 lib/hilbert/api.rb
hilbert-0.0.2700400 lib/hilbert/api.rb
hilbert-0.0.2700320 lib/hilbert/api.rb
hilbert-0.0.2700300 lib/hilbert/api.rb
hilbert-0.0.2700210 lib/hilbert/api.rb
hilbert-0.0.2700110 lib/hilbert/api.rb
hilbert-0.0.2700100 lib/hilbert/api.rb
hilbert-0.0.2700001 lib/hilbert/api.rb