A is [[ 0. 2. 0. 0. 0. 4. 0. 2. 0. 4.]
[ 0. 0. 0. 8. 4. 0. 0. 1. 8. 0.]]
B is [+0.016 +1.950 +0.016 -0.028 +0.121 +4.007 -0.016 +2.008 -0.028 +4.009 ]
[-0.536 -0.121 -0.536 +7.684 +3.856 +0.179 +2.230 +0.358 +7.684 +0.214 ]


When I subtract them using numpy it gives NotImplemented. I suppose its because of difference in the way these matrices are. Is there any way to convert A to B as in the format(Notice the 2 '[' in A).

Recommended Answers

All 2 Replies

How are these two matrices being instantiated?

I agree with Schoil-R-LEA: post the python code which throws NotImplemented so that we can run it and find the error.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.