Google Groups Home
Help | Sign in
Message from discussion lambdify not match shape of input array if zero function?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Reckoner  
View profile
 More options May 5, 8:12 am
From: Reckoner <recko...@gmail.com>
Date: Mon, 5 May 2008 05:12:06 -0700 (PDT)
Local: Mon, May 5 2008 8:12 am
Subject: lambdify not match shape of input array if zero function?

Hi,

I have a program that creates a lot of lambdify-ed functions from
sympy expressions. The problem is sometimes the function turns out to
be the number zero and when I use the lambdify-ed version of that
function the input shape and output shape do not match. In other
words, the function zero returns exactly 1 zero regardless of how many
items were in the input array. This is inconsistent since if the
function is not zero, then the input/output shapes match.

I hope that made sense.

Currently, I have a bit of logic filter out this case, I would like to
avoid that if there is a way.

Thanks in advance.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google