- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
AmitDiwan has Published 11360 Articles
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
1K+ Views
To return the truncated value of the array elements, use the numpy.trunc() method in Python Numpy. The function returns the truncated value of each element in x. This is a scalar if x is a scalar. The truncated value of the scalar x is the nearest integer i which is ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
284 Views
To return the lower triangle of an array, use the numpy.tril() method in Python Numpy −The 1st parameter is the input arrayThe 2nd parameter is the 'k' i.e. the diagonal above which to zero elements.k = 0 (the default) is the main diagonal, k 0 is above.The function returns ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
6K+ Views
In this article, we will understand how to print an integer in Java. It uses the int data type. The int data type is a 32-bit signed two's complement integer. The Minimum value is 2, 147, 483, 648 (-2^31) and the Maximum 2, 147, 483, 647(inclusive) (2^31 -1). Integer is ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
73 Views
To create an array with ones at and below the given diagonal and zeros elsewhere, use the numpy.tri() method in Python NumpyThe 1st parameter is the number of rows in the arrayThe 2nd parameter is the number of columns in the arrayThe "type" parameter is used to set the type ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
249 Views
To create an array with ones at and below the given diagonal and zeros elsewhere, use the numpy.tri() method in Python Numpy −The 1st parameter is the number of rows in the arrayThe 2nd parameter is the number of columns in the arrayThe tri() function returns an array with its ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
89 Views
To create a two-dimensional array with the flattened input as a diagonal, use the numpy.diagflat() method in Python Numpy. The 'K parameter is used to set the diagonal; 0, the default, corresponds to the “main” diagonal, a negative k giving the number of the diagonal below the main.The first parameter ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
133 Views
To create a two-dimensional array with the flattened input as a diagonal, use the numpy.diagflat() method in Python Numpy. The 'K parameter is used to set the diagonal; 0, the default, corresponds to the “main” diagonal, a positive (negative) k giving the number of the diagonal above (below) the main.The ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
317 Views
To create a two-dimensional array with the flattened input as a diagonal, use the numpy.diagflat() method in Python Numpy. The first parameter is the input data, which is flattened and set as the kth diagonal of the output. The second parameter is the diagonal to set; 0, the default, corresponds ... Read More
![AmitDiwan](https://www.tutorialspoint.com/assets/profiles/123055/profile/60_187394-1565938756.jpg)
AmitDiwan
93 Views
To return evenly spaced numbers on a geometric progression, use the numpy.geomspace() method in Python Numpy −The 1st parameter is the "start" i.e. the start of the sequenceThe 2nd parameter is the "end" i.e. the end of the sequenceThe 3rd parameter is the num i.e. the number of samples to ... Read More