1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] Is there an inverted version of numpy.all()?

Discussão em 'Python' iniciado por Stack, Setembro 15, 2024.

  1. Stack

    Stack Membro Participativo

    As stated in the docs for numpy.all():


    numpy.all() tests whether all array elements along a given axis evaluate to True.
    ​

    Is there a function, that does the opposite: Check whether all array elements along a given axis (I need the diagonal) evaluates to False.

    What I need in particular is to check if the diagonal of a 2-dimensional matrix is zero every where.

    Continue reading...

Compartilhe esta Página