Sha256: e0cafea7200248ca75391ede904d4b6d16d7893a80453015a7f8942a19d4e706
Contents?: true
Size: 866 Bytes
Versions: 3
Compression:
Stored size: 866 Bytes
Contents
# frozen_string_literal: true require_relative "../table" module Plurimath module Math module Function class Table class Matrix < Table def initialize(value = [], open_paren = "(", close_paren = ")", options = {}) super end def to_asciimath "{:#{value.map(&:to_asciimath).join(", ")}:}" end def to_latex "\\begin#{opening}#{latex_content}\\end#{matrix_class}" end def to_mathml_without_math_tag table_tag = Utility.ox_element("mtable", attributes: table_attribute) Utility.update_nodes( table_tag, value&.map(&:to_mathml_without_math_tag), ) end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
plurimath-0.7.2 | lib/plurimath/math/function/table/matrix.rb |
plurimath-0.7.1 | lib/plurimath/math/function/table/matrix.rb |
plurimath-0.7.0 | lib/plurimath/math/function/table/matrix.rb |