Skip to content

Commit 3b69a22

Browse files
authored
Merge pull request #129 from ShikharJ/Issue76
Introduced MutableDenseMatrix and ImmutableDenseMatrix
2 parents 6c0febf + 4695a18 commit 3b69a22

File tree

5 files changed

+157
-59
lines changed

5 files changed

+157
-59
lines changed

symengine/__init__.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
from .lib.symengine_wrapper import (Symbol, Integer, sympify, SympifyError,
22
Add, Mul, Pow, exp, log, gamma, sqrt, function_symbol, I, E, pi,
33
have_mpfr, have_mpc, have_flint, have_piranha, have_llvm,
4-
RealDouble, ComplexDouble, DenseMatrix, Matrix,
5-
sin, cos, tan, cot, csc, sec, asin, acos, atan, acot, acsc, asec,
6-
sinh, cosh, tanh, coth, asinh, acosh, atanh, acoth, Lambdify,
7-
LambdifyCSE, DictBasic, series, symarray, diff, zeros, eye, diag,
8-
ones, zeros, add, expand, has_symbol, UndefFunction)
4+
RealDouble, ComplexDouble, MutableDenseMatrix, ImmutableDenseMatrix,
5+
DenseMatrix, Matrix, sin, cos, tan, cot, csc, sec, asin, acos, atan,
6+
acot, acsc, asec, sinh, cosh, tanh, coth, asinh, acosh, atanh, acoth,
7+
Lambdify, LambdifyCSE, DictBasic, series, symarray, diff, zeros, eye,
8+
diag, ones, zeros, add, expand, has_symbol, UndefFunction)
99
from .utilities import var, symbols
1010

1111
if have_mpfr:

symengine/lib/symengine_wrapper.pxd

+7-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,13 @@ cdef class Subs(Basic):
145145
cdef class MatrixBase(object):
146146
cdef symengine.MatrixBase* thisptr
147147

148-
cdef class DenseMatrix(MatrixBase):
148+
cdef class DenseMatrixBase(MatrixBase):
149+
pass
150+
151+
cdef class MutableDenseMatrix(DenseMatrixBase):
152+
pass
153+
154+
cdef class ImmutableDenseMatrix(DenseMatrixBase):
149155
pass
150156

151157
cdef class Log(Function):

0 commit comments

Comments
 (0)