python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Comparison of values in arrays gives a ValueError: "The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()"
I checked out the threads with this error message, but the solutions didn't really apply to my case
Here's my code. I saw in the debugger that the arrays work fine, they have values etc, but the condi...
loirtiV
Votes: 0
Answers: 0
Clip Space in OpenGL and DirectX 12
I am implementing a custom mathematics library to create model, view and projection matrices in OpenGL and DirectX. I am doing this, to improve my understanding in the mathematics behind 3D applicatio...
Erik So
Votes: 0
Answers: 1
Simple matrix column replacement giving strange results
I coded this simple function for an exercise:
def matrix_subs(matrix, n):
res = matrix
for i in range(len(res)):
res[i][n] = 20
return res
and here are the results i get:
matrix_s...
bonifacil
Votes: 0
Answers: 1