Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-01-29 13:21:26 -0500
committerMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-09-11 09:30:53 -0400
commita8fd36176d58bb9d3bc49a3fb3e6ed243c289827 (patch)
treef4101d18d2ce21f11e9722c9935a770859fedc14
parent46c230febb13cbe94b434b90cde4be3d68bd8a66 (diff)
downloadtame-a8fd36176d58bb9d3bc49a3fb3e6ed243c289827.tar.gz
tame-a8fd36176d58bb9d3bc49a3fb3e6ed243c289827.tar.bz2
tame-a8fd36176d58bb9d3bc49a3fb3e6ed243c289827.zip
stub: Add sequence vectors.
* vector/stub.xml: Add sequence vectors.
-rw-r--r--core/vector/stub.xml22
1 files changed, 18 insertions, 4 deletions
diff --git a/core/vector/stub.xml b/core/vector/stub.xml
index fde2024..718a14c 100644
--- a/core/vector/stub.xml
+++ b/core/vector/stub.xml
@@ -40,6 +40,16 @@
<t:n-vector n="@current_n@" name="NVEC{@current_n@}"
value="0" />
</t:for-each-n>
+
+
+ <section title="Sequence Vectors">
+ Sequence n-vectors are of length~$n$ and have a sequence of values
+ from~$0$ to~$n-1$.
+
+ <t:for-each-n start="1" end="10" step="1">
+ <t:n-vector n="@current_n@" name="NVEC{@current_n@}_SEQ" />
+ </t:for-each-n>
+ </section>
</section>
@@ -66,14 +76,18 @@
<param name="@n@" desc="Number of vector elements" />
<param name="@name@" desc="Resulting vector constant name" />
- <param name="@value@" desc="Value of elements (default n-1)">
- <text>0</text>
- </param>
+ <param name="@value@"
+ desc="Value of elements (optional; default n-1)" />
<const name="@name@" desc="{@n@}-vector" set="vector">
<t:for-each-n start="1" end="@n@" step="1">
- <item value="@value@" desc="Vector value" />
+ <if name="@value@">
+ <item value="@value@" desc="Vector value" />
+ </if>
+ <unless name="@value@">
+ <item value="@current_n_dec@" desc="Vector value" />
+ </unless>
</t:for-each-n>
</const>
</template>