Conversation
e732450 to
cb285a6
Compare
|
Rebased. PTAL |
toslunar
left a comment
There was a problem hiding this comment.
Adding numpy_value to CScalar complexifies the code, which does not seem to be justified by removing use_c_scalar option. In my understanding, the PR assumes that _preprocess_args must convert scalars into both numpy scalars and c scalars anyway.
|
Simplicity of the code that uses it, rather than its internal structure, is more important IMO.
What do you mean? |
Then the name
I mean the PR comment sounds like that it avoids the conversion to NumPy scalars. However the new implementation forces the conversion (in the sense that a new |
|
Although I agree
What would be the semantic difference between the new class and
No, I didn't mean that at all. |
I agree.
By |
That's exactly what I want to clarify. I'm beginning to feel you are correct, but I want to make it explicit. Maybe it's corresponding to a "C" scalar as the name suggests? But then I don't understand why it has to be created in |
|
Please give me some time to think. |
|
The team decided that this change will be discussed along with other refactoring PRs. |
Simplifies scalar manipulation.
Removes necessity of two modes of
_preprocess_argsby always converting scalars toCScalars.Based on #2917.