-
Notifications
You must be signed in to change notification settings - Fork 115
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
Expose Vector Scaling introduced in MAPDL V232 #1959
Conversation
Co-authored-by: German <28149841+germa89@users.noreply.github.com>
for more information, see https://pre-commit.ci
Codecov Report
@@ Coverage Diff @@
## main #1959 +/- ##
==========================================
- Coverage 85.99% 85.87% -0.13%
==========================================
Files 44 44
Lines 7877 7909 +32
==========================================
+ Hits 6774 6792 +18
- Misses 1103 1117 +14 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, but:
- Do we have to make any modifications to the original
*SCAL
function?? - You should test also when executed in a lower version than v23.2 (you should check the exception is raised).
Other than that. I'm happy with it :)
Co-authored-by: German <28149841+germa89@users.noreply.github.com>
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A new MAPDL docker image will have to be added to test this new features daily but apart from that, it looks good to me 👍
Hi @germa89 !
|
…into feat/vector-scaling
Hi @kmkoshy, |
@clatapie Thanks Camille for pointing this out. I was not aware of this. I will update this as well. Thanks ! |
You're welcome @kmkoshy! 😄 |
@@ -752,7 +752,7 @@ def remove(self, name="", val1="", val2="", val3="", **kwargs): | |||
return self.run(f"REMOVE,{name},{val1},{val2},{val3}", **kwargs) | |||
|
|||
def scal(self, name="", val1="", val2="", **kwargs): | |||
"""Scales a vector or matrix by a constant. | |||
"""Scales a vector or matrix by a constant or a vector. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it only true for MAPDL version >= 23.2?
MAPDL V232 can perform Scaling (*SCAL) of a AnsMat / AnsVec by a vector. (New feature)
Introduce this feature in PyMAPDL Math Library by updating the existing inplace multiplication function imul.
This Feature is available only in MAPDL V232 and above.