Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TimeAnalysis Interface #4

Open
luca-heltai opened this issue Nov 24, 2014 · 1 comment
Open

TimeAnalysis Interface #4

luca-heltai opened this issue Nov 24, 2014 · 1 comment

Comments

@luca-heltai
Copy link
Owner

An abstract python interface of type TimeAnalysis, capable of
taking derivatives and integrals of collections of paths, given
an actual VectorSpace object, and a matrix with
VectorSpace.n_dofs rows and an arbitrary number of columns,
representing functions of the given VectorSpace

@luca-heltai
Copy link
Owner Author

This is a little outdated. We have added element_der which responds to the first question, and we enabled elements made of matrices, which adds the possibility to have multiple components. Only integration is missing at the moment. We should add a method integrate to the base class VectorSpace, which would take a quadrature and a set of coefficients (or matrix of coefficients) and return the integral:

vi = SomeVectorSpace(...)

n_components = some_number
coeffs = zeros(vi.n_dofs, n_components)
...
# change coeffs here
...
print shape(coeffs) # will print (n_dofs, n_components)
quad = some_quadrature_formula # in [0,1]
# Compute the integral
result = vi.integrate(coeffs, quad) 
print result # should print array([i0, i1, ...., i_{ncomponents-1}])
print shape(result) # should print (n_components, )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant