--
Marc
--
You received this message because you are subscribed to the Google Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscribe@googlegroups.com.
To post to this group, send email to sage-...@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.
Quick guess (don't have time to look at this soon): the issue could be in the action discovery code, which may try creating elements of numpy.float32 using weird inputs. This could cause a difference between right and left multiplication. One way to check if this is the source is to try converting each of the polynomials from RR['x'].some_elements() into numpy.float32 and see if you get the same error.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
On Friday, April 21, 2017 at 3:46:03 PM UTC+1, David Roe wrote:Quick guess (don't have time to look at this soon): the issue could be in the action discovery code, which may try creating elements of numpy.float32 using weird inputs. This could cause a difference between right and left multiplication. One way to check if this is the source is to try converting each of the polynomials from RR['x'].some_elements() into numpy.float32 and see if you get the same error.no, this does not give anything that looks like the error in question (no errors on degree 0 terms,"ValueError: setting an array element with a sequence." on degree >0 terms)
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscribe@googlegroups.com.
and this issue is causing the majority of doctest failures in this setting, as well as on clang/FreeBSD.(#22679).
(where the building is not as smooth yet).
I suppose we will have to merge these clang-enabling changes one way or another soon.
On Fri, Apr 21, 2017 at 11:29 AM, Dima Pasechnik <dim...@gmail.com> wrote:
On Friday, April 21, 2017 at 3:46:03 PM UTC+1, David Roe wrote:Quick guess (don't have time to look at this soon): the issue could be in the action discovery code, which may try creating elements of numpy.float32 using weird inputs. This could cause a difference between right and left multiplication. One way to check if this is the source is to try converting each of the polynomials from RR['x'].some_elements() into numpy.float32 and see if you get the same error.no, this does not give anything that looks like the error in question (no errors on degree 0 terms,"ValueError: setting an array element with a sequence." on degree >0 terms)Sorry, I don't have any other ideas, and can't play around with it easily since the standard Sage build isn't producing these errors.David
There is this:sage: import numpy as npsage: cm = sage.structure.element.coercion_modelsage: cm.explain(polygen(RR), np.float32('1.5'), operator.mul)Action discovered.Right scalar multiplication by Real Double Field on Univariate Polynomial Ring in x over Real Field with 53 bits of precisionwith precomposition on right by Native morphism:From: Set of Python objects of type 'numpy.float32'To: Real Double FieldResult lives in Univariate Polynomial Ring in x over Real Field with 53 bits of precisionUnivariate Polynomial Ring in x over Real Field with 53 bits of precision