Python Forum
Fill a value in triangle shape in Matrix
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fill a value in triangle shape in Matrix
#1
Hey Guys!

Maybe someone of you know a Package to write in a given 2D numpy array a Triangle with 3 specified points of a matrix and a given value to replace it with.
The Triangle should be completly filled with the given value.
A Sqare with 4 points to select would do the job also.
The shape of the matrix sould not be changed.
Thanks!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  output shape problem with np.arange alan6690 5 673 Dec-26-2023, 05:44 PM
Last Post: deanhystad
  Check if two matrix are equal and of not add the matrix to the list quest 3 820 Jul-10-2023, 02:41 AM
Last Post: deanhystad
Sad triangle numbers Woody_MC_2022 5 1,199 Sep-24-2022, 08:14 PM
Last Post: deanhystad
  simplekml change shape&color issac_n 2 2,828 Aug-20-2022, 07:15 PM
Last Post: Joseph_Paintsil
  How to multiply a matrix with herself, until the zero matrix results peanutbutterandjelly 3 3,353 May-03-2021, 06:30 AM
Last Post: Gribouillis
  Can't properly shape an array maaaa2401 3 2,316 Dec-18-2020, 09:32 AM
Last Post: maaaa2401
  ValueError: shape mismatched: objects cannot be broadcast to a single shape Laplace12 0 4,504 Jul-14-2020, 11:45 AM
Last Post: Laplace12
  Receiving ValueError("bad input shape {0}".format(shape)) error SuryaCitizen 2 3,506 Jun-01-2020, 06:45 AM
Last Post: pyzyx3qwerty
  Hollow triangle-drawing characters param error. phob0s 4 2,600 Jul-31-2019, 08:18 AM
Last Post: phob0s
  Printing out a triangle using nested for loops MrGoat 12 6,563 Jan-16-2019, 07:21 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020