scipp | Multi-dimensional data arrays with labeled dimensions | Machine Learning library
kandi X-RAY | scipp Summary
kandi X-RAY | scipp Summary
See for project context and how to use and install the scipp Python module. Bug reports or feature requests should be submitted by opening an issue. For general discussions, or questions about how to achieve something with Scipp, start a new discussion.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of scipp
scipp Key Features
scipp Examples and Code Snippets
Community Discussions
Trending Discussions on scipp
QUESTION
I have a program that is supposed to output the rotation matrix for a rotation of an arbitrary angle about an arbitrary axis. I start with a blank, 3x3 numpy array. I go through each element of the array using nested loops and set the value according to this awesome method.
From sympy I use KroneckerDelta and LeviCivita, from numpy I use array.
In my code, I have included the troubleshooting methods I used. The program behaves exactly as I expect at each step except that it seems like it is just not adding the values to the components. Even more confusing, it works for theta=pi.
Can anyone spot my silly mistake?
...ANSWER
Answered 2019-Apr-22 at 04:14Not sure which edit made the difference but I did the following:
-Use numpy.zeros instead of hand-making an array of zeros
-Use a dummy variable "Temp" to temporarily hold the values that are to be added to the rotation matrix
Here is the final code:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install scipp
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page