Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
documentation:language_reference:objects:matrix:functions:removespin [2024/12/12 15:40] – created Maurits W. Haverkortdocumentation:language_reference:objects:matrix:functions:removespin [2024/12/12 17:58] (current) Maurits W. Haverkort
Line 1: Line 1:
 {{indexmenu_n>999}} {{indexmenu_n>999}}
-====== Removespin ======+====== RemoveSpin ======
  
 ### ###
-alligned paragraph text+Matrix.RemoveSpin(M) removes all even columns and even rows of matrix M.
 ### ###
  
 ===== Example ===== ===== Example =====
- 
-### 
-description text 
-### 
  
 ==== Input ==== ==== Input ====
 <code Quanty Example.Quanty> <code Quanty Example.Quanty>
--- some example code+M = Matrix.New({{1,0,2,0}, 
 +                {0,1,0,2}, 
 +                {3,0,4,0}, 
 +                {0,3,0,4}}) 
 +S = Matrix.RemoveSpin(M) 
 +print(M) 
 +print(S)
 </code> </code>
  
 ==== Result ==== ==== Result ====
 <file Quanty_Output> <file Quanty_Output>
-text produced as output+{ {  1      ,  0      ,  2      ,  0      } , 
 +  {  0      ,  1      ,  0      ,  2      } , 
 +  {  3      ,  0      ,  4      ,  0      } , 
 +  {  0      ,  3      ,  0      ,  4      } } 
 + 
 +{ {  1      ,  2      } , 
 +  {  3      ,  4      } }
 </file> </file>
  
Print/export