Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6895039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:51:28+00:00 2026-05-27T06:51:28+00:00

I have a matrix which is built at the start of the class and

  • 0

I have a matrix which is built at the start of the class and then I go on and use within a couple of functions then at the last function I want to delete a row from the matrix without having to use a new variable name for it otherwise I would have to change every single function call (it loops until a winner is found). It sort of works like this

matrix defined

...a lot of functions that use it then winner is called

def winner():
    if hasWon():
        .....
    else:
       fun1()

def fun1():
    .....
    Iterativefun()

def Iterativefun():
    .....
    matrix = numpy.delete(matrix, obj,axis)
    winner()

Is there a way to delete a row? I thought of changing every single number in that row from 1-10 to a 0 which I’m not using so it would be ignored. Any help will be appreciated

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:51:29+00:00Added an answer on May 27, 2026 at 6:51 am

    I’m not sure what version of Numpy you have (or exactly what you’re trying to do for that matter), but if you have Numpy 1.7, numpy.squeeze looks like it might be what you’re looking for… http://docs.scipy.org/doc/numpy/reference/generated/numpy.squeeze.html#numpy.squeeze

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a template class which implements function: template<typename T> class Matrix { ...
I have a matrix A which I want to convert into a data.frame of
I have a code base, in which for Matrix class, these two definitions are
I have made one function in which I am passing a matrix and returning
I have a matrix (Data) which looks like this: (start) (stop) (strand) (gene number)
I have a matrix and i want to create a new matrix which will
I have a NxN matrix which I want to split into non-overlap KxK block.
I have a Matrix which I recycle and use for drawing DisplayObject instances onto
I have got a matrix which gives me a 2-dimensional discrete distribution (N²->R) in
I have a 4x4 matrix which I wish to decompose into 4 frequency bands

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.