Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
documentation:language_reference:objects:matrix:functions:removespin [2024/12/12 15:41] – Maurits W. Haverkort | documentation:language_reference:objects:matrix:functions:removespin [2024/12/12 17:58] (current) – Maurits W. Haverkort | ||
---|---|---|---|
Line 3: | Line 3: | ||
### | ### | ||
- | 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 } } | ||
</ | </ | ||