Difference between revisions of "Kq2lin.m"
(Expand See also links to related Spinach functions and docs) |
|||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:kq2lin.m}} __NOTOC__ | {{DISPLAYTITLE:kq2lin.m}} __NOTOC__ | ||
| − | Converts k,q indexing of matrices into their linear serpentine indexing. | + | Converts k,q indexing of matrices into their linear serpentine indexing. |
==Syntax== | ==Syntax== | ||
Revision as of 20:29, 22 February 2026
Converts k,q indexing of matrices into their linear serpentine indexing.
Syntax
I=kq2lin(N,K,Q,idx_base)
Arguments
N - matrix dimension, a scalar
K - first index, positive integer
array of any size
Q - second index, positive integer
array of the same size as K
idx_base - indexing base, 0 or 1
Outputs
I - linear serpentine index, an ar-
ray of the same size as inputs
Examples
See examples in the Spinach distribution relevant to this function.
Notes
This page was generated from the function header in the Spinach repository.
See also
Version 2.11, authors: Ilya Kuprov