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:enlarge [2018/09/25 11:48] – created Simon Heinzedocumentation:language_reference:objects:matrix:functions:enlarge [2018/09/26 15:08] (current) – Added Code Example Simon Heinze
Line 5: Line 5:
 Matrix.Enlarge($M$,$n$) takes a Matrix $M$ and replaces every entry with a diagonal matrix of size $n$ and entries equal to the original entry.  Matrix.Enlarge($M$,$n$) takes a Matrix $M$ and replaces every entry with a diagonal matrix of size $n$ and entries equal to the original entry. 
  
-Compare //[[documentation:language_reference:objects:matrix:AddSpin|Matrix.AddSpin()]]//.+Compare //[[documentation:language_reference:objects:matrix:functions:AddSpin|Matrix.AddSpin()]]//.
 ### ###
  
 ===== Example ===== ===== Example =====
- 
-### 
-An example will follow. Probably. 
-### 
  
 ==== Input ==== ==== Input ====
 <code Quanty Example.Quanty> <code Quanty Example.Quanty>
--- some example code+M ={{3,5}, 
 +    {-2,I}} 
 +print(Matrix.Enlarge(M,3))
 </code> </code>
  
 ==== Result ==== ==== Result ====
 <file Quanty_Output> <file Quanty_Output>
-text produced as output+{ { 3 , 0 , 0 , 5 , 0 , 0 } ,  
 +  { 0 , 3 , 0 , 0 , 5 , 0 } ,  
 +  { 0 , 0 , 3 , 0 , 0 , 5 } ,  
 +  { -2 , 0 , 0 , (0 + 1 I) , 0 , 0 } ,  
 +  { 0 , -2 , 0 , 0 , (0 + 1 I) , 0 } ,  
 +  { 0 , 0 , -2 , 0 , 0 , (0 + 1 I) } }
 </file> </file>
  
Print/export