Skip to content

Theoretical energy integral is very slow #3506

Closed
@valentinsulzer

Description

@valentinsulzer

This for loop is killing us and should be vectorized:

for i in range(x_vals.size):
Vs[i] = (
parameter_values.evaluate(param.p.prim.U(y_vals[i], T)).item()
- parameter_values.evaluate(param.n.prim.U(x_vals[i], T)).item()
)

Metadata

Metadata

Labels

difficulty: easyA good issue for someone new. Can be done in a few hourspriority: highTo be resolved as soon as possible

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions