Skip to content

group-2022B/numpy_advanced_homework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NumPy Advanced

Automated grading of homework assignments and tests

  • fork this repository
  • solve the task
  • commit with proper message
  • commit with proper message

Problems

sum_all

Returns the sum of all numbers in the array

Example 1:

Input: [[1 2 3 4]
        [2 1 0 5]]
Output: 18

Constraints:

dtpye = np.uint8

sum_axis

Returns the sum of rows in the array

Example 1:

Input: [[1 2 3 4]
        [2 1 0 5]]
Output: [10  8]

Constraints:

dtpye = np.uint8

prod

Returns the product of all numbers in the array

Example 1:

Input: [[3 4]
        [1 5]
        [3 2]]
Output: 360

Constraints:

dtpye = np.uint8

max_all

Returns the max of all numbers in the array

Example 1:

Input: [[  1  11]
        [  4  65]
        [  5  14]
        [122   4]
        [ 12   3]]
Output: 122

Constraints:

dtpye = np.uint8

min_all

Returns the min of all numbers in the array

Example 1:

Input: [[  1  11]
        [  4  65]
        [  5  14]
        [122   4]
        [ 12   3]]
Output: 1

Constraints:

dtpye = np.uint8

max_axis

Returns the max of all numbers in the array

Example 1:

Input: [[  1  11]
        [  4  65]
        [  5  14]
        [122   4]
        [ 12   3]]
Output: [11  65  14 122  12]

Constraints:

dtpye = np.uint8

Warning

  • don't copy other solutions or any solution
  • don't remove comments

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages