These are chat archives for symengine/symengine

25th
Jul 2017
Shikhar Jaiswal
@ShikharJ
Jul 25 2017 05:06
Shikhar Jaiswal
@ShikharJ
Jul 25 2017 07:22
@isuruf The travis build 14 seems to be failing again and again. Can you restart this: https://travis-ci.org/symengine/symengine/jobs/257183866 ?
aneesh2312
@aneesh2312
Jul 25 2017 08:19
Hello, I am new here.. How can I start contributing
All the issues seem to be assigned to someone..
Shikhar Jaiswal
@ShikharJ
Jul 25 2017 08:22
@isuruf Can we have #1313 merged? I'd like to finish up on the pending work at SymEngine.py as soon as possible.
@aneesh2312 Look here: https://github.com/symengine/symengine/wiki . Then look for an issue for which no work is currently underway. You can always let us know first that you wish to work on it.
aneesh2312
@aneesh2312
Jul 25 2017 08:25
Ok thank you, I will look through the list..
jessecob13
@jessecob13
Jul 25 2017 11:54
looking for a bit of help with a small bit of code.. I think symengine can solve my problem but my attempts so far have not been successful. Anyone available?
Christopher Rackauckas
@ChrisRackauckas
Jul 25 2017 11:54
what's the issue?
jessecob13
@jessecob13
Jul 25 2017 11:55
pf_def = function(t,u,p,du)

  da = @view du[1:3]
  dm = reshape(@view(du[4:end]),3,3)
  #m = reshape(@view(u[4:end]),3,3)

  m = [u[4] u[5] u[6]; u[7] u[8] u[9]; u[10] u[11] u[12]]


  du[1] = -u[2]-u[3]
  du[2] = u[1]+p[1]*u[2]
  du[3] = p[2]+u[3]*(u[1]-p[3])

  X = [0 -1 -1; 1 p[1] 0; u[3] 0 -p[3]+u[1]]

  dm= m*X

end
I think this si all we need. I am definition a parametized function. I would like to complete a simple matrix multiplication (in the last line). The output for dm is just the matrix X
Christopher Rackauckas
@ChrisRackauckas
Jul 25 2017 11:57
dm= m*X that writes dm instead of writing into it. I think you meant to A_mul_B!(dm,m,X)?
I'm not sure what SymEngine.jl would do for you here.
jessecob13
@jessecob13
Jul 25 2017 11:59
I guess I would prefer to just be able to define symbols and move forward.. such as a matrix of symbols that the solver can eat with no problems
Christopher Rackauckas
@ChrisRackauckas
Jul 25 2017 12:00
let's take this over to the DiffEq channel
Shikhar Jaiswal
@ShikharJ
Jul 25 2017 14:41
@isuruf Should these functions https://github.com/symengine/symengine/blob/master/symengine/matrix.h#L183-L191 and dot and cross functionalities (https://github.com/symengine/symengine/blob/master/symengine/matrix.h#L251-L253) be also made in-place member functions?
Shikhar Jaiswal
@ShikharJ
Jul 25 2017 15:00
Or rather just member functions?
Isuru Fernando
@isuruf
Jul 25 2017 15:03
just member functions
Isuru Fernando
@isuruf
Jul 25 2017 15:20
oops, sorry I meant they are fine as it is.
Shikhar Jaiswal
@ShikharJ
Jul 25 2017 15:24
The PR on SymEngine.py is still giving this error:
C:\projects\symengine-py\build\lib.win32-2.7\symengine\lib\symengine_wrapper.cpp(72512): error C2039: 'dot': is not a member of 'SymEngine::DenseMatrix' [C:\projects\symengine-py\build\lib.win32-2.7\symengine\lib\symengine_wrapper.vcxproj]
  C:\symengine\CMake\..\include\symengine/matrix.h(78): note: see declaration of 'SymEngine::DenseMatrix'
C:\projects\symengine-py\build\lib.win32-2.7\symengine\lib\symengine_wrapper.cpp(72877): error C2039: 'cross': is not a member of 'SymEngine::DenseMatrix' [C:\projects\symengine-py\build\lib.win32-2.7\symengine\lib\symengine_wrapper.vcxproj]
  C:\symengine\CMake\..\include\symengine/matrix.h(78): note: see declaration of 'SymEngine::DenseMatrix'
C:\projects\symengine-py\build\lib.win32-2.7\symengine\lib\symengine_wrapper.cpp(84788): error C2039: 'column_exchange_dense': is not a member of 'SymEngine::DenseMatrix' [C:\projects\symengine-py\build\lib.win32-2.7\symengine\lib\symengine_wrapper.vcxproj]
  C:\symengine\CMake\..\include\symengine/matrix.h(78): note: see declaration of 'SymEngine::DenseMatrix'
C:\projects\symengine-py\build\lib.win32-2.7\symengine\lib\symengine_wrapper.cpp(85113): error C2039: 'row_exchange_dense': is not a member of 'SymEngine::DenseMatrix' [C:\projects\symengine-py\build\lib.win32-2.7\symengine\lib\symengine_wrapper.vcxproj]
  C:\symengine\CMake\..\include\symengine/matrix.h(78): note: see declaration of 'SymEngine::DenseMatrix'
C:\projects\symengine-py\build\lib.win32-2.7\symengine\lib\symengine_wrapper.cpp(85279): error C2039: 'row_mul_scalar_dense': is not a member of 'SymEngine::DenseMatrix' [C:\projects\symengine-py\build\lib.win32-2.7\symengine\lib\symengine_wrapper.vcxproj]
  C:\symengine\CMake\..\include\symengine/matrix.h(78): note: see declaration of 'SymEngine::DenseMatrix'
C:\projects\symengine-py\build\lib.win32-2.7\symengine\lib\symengine_wrapper.cpp(85463): error C2039: 'row_add_row_dense': is not a member of 'SymEngine::DenseMatrix' [C:\projects\symengine-py\build\lib.win32-2.7\symengine\lib\symengine_wrapper.vcxproj]
  C:\symengine\CMake\..\include\symengine/matrix.h(78): note: see declaration of 'SymEngine::DenseMatrix'
  pywrapper.cpp
Isuru Fernando
@isuruf
Jul 25 2017 15:24
link?
Isuru Fernando
@isuruf
Jul 25 2017 15:27
that's because your declaration is wrong
in the .pxd file