Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
documentation:language_reference:objects:matrix:functions:removespin [2024/12/12 15:40] – created Maurits W. Haverkort | documentation:language_reference:objects:matrix:functions:removespin [2024/12/12 17:58] (current) – Maurits W. Haverkort | ||
---|---|---|---|
Line 1: | Line 1: | ||
{{indexmenu_n> | {{indexmenu_n> | ||
- | ====== | + | ====== |
### | ### | ||
- | 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, | ||
+ | {3, | ||
+ | {0, | ||
+ | S = Matrix.RemoveSpin(M) | ||
+ | print(M) | ||
+ | print(S) | ||
</ | </ | ||
==== 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 } } | ||
</ | </ | ||