-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use vectorized operations to compute transformations
Use vectorized Numpy operation to compute visualization frame transformation matrices as this is much faster than using a for loop. Each element of the transformation matrix is lambdified and stored in a list of numerical transformations. Individual element transforms that do not contain dynamic variables nor constant variables are not returned as functions by lambdify and subsequent evaluation for these elements is skipped. Element transforms that contain constant variables but not dynamic variables are lambdified with only the constant variables as arguments. These are only evaluated once and then repeated for create of the visualization matrix trajectory. This commit resolves issue #32.
- Loading branch information
Showing
1 changed file
with
39 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters