Open In App

numpy.byte_bounds() function – Python

Last Updated : 08 Jul, 2020
Comments
Improve
Suggest changes
Like Article
Like
Report
numpy.byte_bounds() function returns pointers to the end-points of an array.
Syntax : numpy.byte_bounds(arr) Parameters : arr : [ndarray] Input array. Return : [tuple of 2 integers] The first integer is the first byte of the array, the second integer is just past the last byte of the array. If arr is not contiguous it will not use every byte between the (low, high) values.
Code #1 : Python3
# Python program explaining
# numpy.byte_bounds() function
          
# importing numpy as geek 
import numpy as geek 
 
arr = geek.eye(2, dtype = 'f')

gfg = geek.byte_bounds(arr)
    
print (gfg)
Output :
(37062512, 37062528)
  Code #2 : Python3
# Python program explaining
# numpy.byte_bounds() function
          
# importing numpy as geek 
import numpy as geek 
 
arr = geek.eye(2)

gfg = geek.byte_bounds(arr)
    
print (gfg)
Output :
(30421344, 30421376)

Article Tags :
Practice Tags :

Similar Reads

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy