Skip to content

Commit

Permalink
Add a shape example
Browse files Browse the repository at this point in the history
  • Loading branch information
certik committed Aug 25, 2011
1 parent 7625ac8 commit c7e3fd5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions table
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,13 @@ dot_product
----

logical arrays

----

from numpy import array, shape
x = array([[1, 6], [2, 7], [3, 8], [4, 9], [5, 10]])
print shape(x)

integer :: x(5, 2)
x = reshape([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], shape(x))
print *, shape(x)

0 comments on commit c7e3fd5

Please sign in to comment.