Sort all matrix











>> YOUR LINK HERE: ___ http://youtube.com/watch?v=Z-2OgCfdL2s

Hello everyone! I hope this video has helped solve your questions and issues. This video is shared because a solution has been found for the question/problem. I create videos for questions that have solutions. If you have any other issues, feel free to reach out to me on Instagram:   / ky.emrah   • Below, you can find the text related to the question/problem. In the video, the question will be presented first, followed by the answers. If the video moves too fast, feel free to pause and review the answers. If you need more detailed information, you can find the necessary sources and links at the bottom of this description. I hope this video has been helpful, and even if it doesn't directly solve your problem, it will guide you to the source of the solution. I'd appreciate it if you like the video and subscribe to my channel!Sort all matrix • I'm trying to sort a matrix • if I have • [[5 7 1 2] • [4 8 1 4] • [4 0 1 9] • [2 7 5 0]] • [[5 7 1 2] • [4 8 1 4] • [4 0 1 9] • [2 7 5 0]] • I want this result • [[9 8 7 7] • [5 5 4 4] • [4 2 2 1] • [1 1 0 0]] • [[9 8 7 7] • [5 5 4 4] • [4 2 2 1] • [1 1 0 0]] • this is my code, I'm using random numbers • import numpy as np • MatriX = np.random.randint(10, size=(4,4)) • print(MatriX) • for i in range(10): • for j in range(10): • a=np.sort(-MatriX,axis=1)*-1 • b=np.sort(-a,axis=0)*-1 • c=np.transpose(b) • • d=np.sort(-c,axis=1)*-1 • e=np.sort(-d,axis=0)*-1 • • • print(e) • import numpy as np • MatriX = np.random.randint(10, size=(4,4)) • print(MatriX) • for i in range(10): • for j in range(10): • a=np.sort(-MatriX,axis=1)*-1 • b=np.sort(-a,axis=0)*-1 • c=np.transpose(b) • • d=np.sort(-c,axis=1)*-1 • e=np.sort(-d,axis=0)*-1 • • • print(e) • but this code, don't work at all • • Tags: python,sorting,matrixSource of the question: • https://stackoverflow.com/questions/7... • Question and source license information: • https://meta.stackexchange.com/help/l... • https://stackoverflow.com/

#############################









Content Report
Youtor.org / Youtor.org Torrents YT video Downloader © 2024

created by www.mixer.tube