@@ -422,7 +422,7 @@ Journeyman
422
422
423
423
.. code-block :: python
424
424
425
- # Jaime Fernández del Río
425
+ # Author: Jaime Fernández del Río
426
426
427
427
D = np.random.uniform(0 ,1 ,100 )
428
428
S = np.random.randint(0 ,10 ,100 )
@@ -458,7 +458,7 @@ Craftsman
458
458
459
459
.. code-block :: python
460
460
461
- # Author: Nicolas Rougier
461
+ # Author: Nicolas P. Rougier
462
462
463
463
faces = np.random.randint(0 ,100 ,(10 ,3 ))
464
464
F = np.roll(faces.repeat(2 ,axis = 1 ),- 1 ,axis = 1 )
@@ -474,7 +474,7 @@ Craftsman
474
474
475
475
.. code-block :: python
476
476
477
- # Jaime Fernández del Río
477
+ # Author: Jaime Fernández del Río
478
478
479
479
C = np.bincount([1 ,1 ,2 ,3 ,4 ,4 ,6 ])
480
480
A = np.repeat(np.arange(len (C)), C)
@@ -613,7 +613,7 @@ Expert
613
613
614
614
.. code-block :: python
615
615
616
- # Eric O. Lebigot
616
+ # Author: Eric O. Lebigot
617
617
# Note: only works for 2d array and value setting using indices
618
618
619
619
class Symetric (np .ndarray ):
@@ -633,7 +633,7 @@ Expert
633
633
634
634
.. code-block :: python
635
635
636
- # Stéfan van der Walt
636
+ # Author: Stéfan van der Walt
637
637
638
638
p, n = 10 , 20
639
639
M = np.ones((p,n,n))
@@ -657,7 +657,7 @@ Master
657
657
658
658
.. code-block :: python
659
659
660
- # Jaime Fernández del Río
660
+ # Author: Jaime Fernández del Río
661
661
662
662
Z = np.random.randint(0 ,2 ,(6 ,3 ))
663
663
T = np.ascontiguousarray(Z).view(np.dtype((np.void, Z.dtype.itemsize * Z.shape[1 ])))
0 commit comments