Tmp: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:


  a = np.array([[A, B, C, D], [E, F, G, H], [I, J, K, L]])
  a = np.array([[A, B, C, D], [E, F, G, H], [I, J, K, L]])
                  row 0          row 1        row 2
      
      
                         Axis 1
                         Axis 1

Revision as of 00:20, 21 May 2024

a = np.array([[A, B, C, D], [E, F, G, H], [I, J, K, L]])
                 row 0          row 1         row 2

    
                       Axis 1
         ┌──────────────────────────────────▶
         │         0     1     2    3                   
         │      ┌─────┬─────┬─────┬─────┐
         │      │  A  │  B  │  C  │  D  │ 
         │ a0 0 │ a0,0│ a0,1│ a0,2│ a0,3│
         │      ├─────┼─────┼─────┼─────┤
         │      │  E  │  F  │  G  │  H  │ 
  Axis 0 │ a1 1 │ a1,0│ a1,1│ a1,2│ a1,3│ 
         │      ├─────┼─────┼─────┼─────┤
         │      │  I  │  J  │  K  │  L  │
         │ a2 2 │ a2,0│ a2,1│ a2,2│ a2,3│ 
         │      └─────┴─────┴─────┴─────┘
         │         
         ▼