hello all, need to define a function that can be divided term by term matrix or in the worst cases, between arrays of lists so you get the result in a third matrix,
thanks for any response
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Unless I’m misunderstanding, this is where
numpycan be put to good use:This works for multiplication too. And indeed, as noted by Mark, scalar division (and multiplication) is also possible:
Edit: to be complete, for lists of lists you could do the following: