Book Image

NumPy: Beginner's Guide

By : Ivan Idris
Book Image

NumPy: Beginner's Guide

By: Ivan Idris

Overview of this book

Table of Contents (21 chapters)
NumPy Beginner's Guide Third Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
NumPy Functions' References
Index

Bitwise and comparison functions


Bitwise functions operate on the bits of integers or integer arrays since they are universal functions. The operators ^, &, |, <<, >>, and so on have their NumPy counterparts. The same goes for comparison operators such as <, >, ==, and so on. These operators allow you to do clever tricks, which should be good for performance; however, they can make your code quite unreadable, so use them with care.