Class: Plurimath::Math::Function::Table::Vmatrix
- Inherits:
-
Table
- Object
- Table
- Plurimath::Math::Function::Table::Vmatrix
- Defined in:
- lib/plurimath/math/function/table/vmatrix.rb
Instance Method Summary collapse
-
#initialize(value, open_paren = "|", close_paren = "|", options = {}) ⇒ Vmatrix
constructor
A new instance of Vmatrix.
- #to_latex(options:) ⇒ Object
- #to_mathml_without_math_tag(intent) ⇒ Object
- #to_unicodemath(options:) ⇒ Object
Constructor Details
#initialize(value, open_paren = "|", close_paren = "|", options = {}) ⇒ Vmatrix
Returns a new instance of Vmatrix.
8 9 10 11 12 13 |
# File 'lib/plurimath/math/function/table/vmatrix.rb', line 8 def initialize(value, open_paren = "|", close_paren = "|", = {}) super end |
Instance Method Details
#to_latex(options:) ⇒ Object
15 16 17 |
# File 'lib/plurimath/math/function/table/vmatrix.rb', line 15 def to_latex(options:) "\\begin#{opening}#{latex_content(options: )}\\end#{matrix_class}" end |
#to_mathml_without_math_tag(intent) ⇒ Object
26 27 28 29 30 |
# File 'lib/plurimath/math/function/table/vmatrix.rb', line 26 def to_mathml_without_math_tag(intent, **) matrix = super matrix["intent"] = intent_attr_value(intent) if intent matrix end |
#to_unicodemath(options:) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/plurimath/math/function/table/vmatrix.rb', line 19 def to_unicodemath(options:) unicode_value = value.map do |val| val.to_unicodemath(options: ) end.join("@") "#{matrix_symbol}(#{unicode_value})" end |