Skip to content

Commit e38cf80

Browse files
committed
Added Subs class
1 parent 0e92c92 commit e38cf80

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

ext/symengine/symengine.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ void Init_symengine() {
9393
rb_define_const(m_symengine, "E", cconstant_e());
9494
rb_define_const(m_symengine, "EULER_GAMMA", cconstant_euler_gamma());
9595
rb_define_const(m_symengine, "I", cconstant_i());
96+
97+
//Subs class
98+
c_subs = rb_define_class_under(m_symengine, "Subs", c_basic);
9699

97100
//Add class
98101
c_add = rb_define_class_under(m_symengine, "Add", c_basic);

ext/symengine/symengine.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ VALUE c_rational;
1515
VALUE c_complex;
1616
VALUE c_complex_double;
1717
VALUE c_constant;
18+
VALUE c_subs;
1819
VALUE c_add;
1920
VALUE c_mul;
2021
VALUE c_pow;

ext/symengine/symengine_utils.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ VALUE Klass_of_Basic(const basic_struct *basic_ptr) {
9595
return c_complex_double;
9696
case SYMENGINE_CONSTANT:
9797
return c_constant;
98+
case SYMENGINE_SUBS:
99+
return c_subs;
98100
case SYMENGINE_ADD:
99101
return c_add;
100102
case SYMENGINE_MUL:

0 commit comments

Comments
 (0)