<?xml version="1.0" encoding="UTF-8" standalone="yes"?><ana user="Lonnie" project="Concatenation_udfs" generated="Fri, Feb 13, 2009 12:47 PM" softwareversion="4.2.0" software="Analytica"> <linklibrary name="Concatenation_udfs">  <title>Concatenation UDFs</title>  <description>This library contains functions to make various instances of concatenation more convenient.  Concat3 thru Concat10 are generalizations of the built-in Concat function which concatenate from 3 to 10 arrays in a single call (while the built-in Concat concatenates two arrays).  ConcatRows concatenates all the rows of a single array.This library is somewhat obsolete in Analytica 4.2, although it can still be used.  Release 4.2 contains ConcatRows as a built-in function, and the built-in Concat now composes more gracefully and creates a local index for the result, so you can do:  Concat(Concat(A,B,Ai,Bi),Concat(C,D,Ci,Di),K:ResultIndex), for example, in place of Concat4, and can even leave off the ResultIndex.</description>  <author>David Kendall &amp; Lonnie Chrisman</author>  <date>Mon, Jan 26, 2004 8:49 AM</date>  <saveauthor>Lonnie</saveauthor>  <savedate>Fri, Feb 13, 2009 12:47 PM</savedate>  <defaultsize>48,24</defaultsize>  <nodeinfo>1,0,0,1,1,1,0,0,0,0</nodeinfo>  <diagstate>1,39,36,798,452,23</diagstate>  <windstate>2,116,396,991,412</windstate>  <fontstyle>Arial, 15</fontstyle>  <fileinfo>0,Linklibrary Concatenation_udfs,2,2,0,0,W:\Analytica\ExecDebug\Libraries\Concatenation.ANA</fileinfo>  <function name="Concat3">   <parameters>(A1, A2, A3: ArrayType; I1, I2, I3, J: IndexType )</parameters>   <title>Concat3</title>   <description>Concatenates three arrays, A1, A2, and A3.  I1, I2, and I3 are the indexes that are joined; J is the index of the new array; J usually is the concatenation of I1, I2, and I3</description>   <definition>Index I12 := Concat(I1,I2);Concat( Concat( A1,A2,I1,I2,I12 ), A3, I12, I3, J )</definition>   <nodelocation>88,64,1</nodelocation>   <nodesize>48,26</nodesize>   <windstate>2,56,56,986,596</windstate>   <paramnames>A1,A2,A3,I1,I2,I3,J</paramnames>  </function>  <function name="Concat4">   <parameters>(A1, A2, A3, A4: ArrayType; I1, I2, I3, I4, J: IndexType )</parameters>   <title>Concat4</title>   <description>Concatenates four arrays, A1, A2, A3, and A4.  I1, I2, I3, and I4 are the indexes that are joined; J is the index of the new array; J usually is the concatenation of I1, I2, I3, and I4.</description>   <definition>Index I12 := Concat(I1,I2);Index I123:= Concat(I12, I3);Concat(     Concat(          Concat( A1,A2,I1,I2,I12 ),      A3, I12, I3, I123), A4, I123, I4, J);</definition>   <nodelocation>192,64,1</nodelocation>   <nodesize>48,24</nodesize>   <windstate>2,30,30,986,596</windstate>   <paramnames>A1,A2,A3,A4,I1,I2,I3,I4,J</paramnames>   <att__cloakdefn>0</att__cloakdefn>  </function>  <function name="Concat9">   <parameters>(A1, A2, A3, A4, A5, A6, A7, A8, A9: ArrayType; I1, I2, I3, I4, I5, I6, I7, I8, I9, J: IndexType)</parameters>   <title>Concat9</title>   <description>Concatenates nine arrays, A1, ..., A9.  I1, ..., I9 are the indexes joined; J is the index of the new array; J usually is the concatenation of I1, ..., I9.</description>   <definition>Index I12 := Concat(I1,I2);Index I123 := Concat(I12, I3);Index I1234 := Concat(I123, I4);Index I12345 := Concat(I1234, I5);Index I123456 := Concat(I12345, I6);Index I1234567 := Concat(I123456, I7);Index I12345678 := Concat(I1234567, I8);Concat(     Concat(          Concat(               Concat(                    Concat(                           Concat(                              Concat(                                   Concat( A1,A2,I1,I2,I12 ),                               A3, I12, I3, I123),                          A4, I123, I4, I1234),                    A5, I1234, I5, I12345),               A6, I12345, I6, I123456),          A7, I123456, I7, I1234567),     A8, I1234567, I8, I12345678),A9, I12345678, I9, J);</definition>   <nodelocation>88,232,1</nodelocation>   <nodesize>48,24</nodesize>   <windstate>2,27,120,469,638</windstate>   <paramnames>A1,A2,A3,A4,A5,A6,A7,A8,A9,I1,I2,I3,I4,I5,I6,I7,I8,I9,J</paramnames>   <att__cloakdefn>0</att__cloakdefn>  </function>  <function name="Concat5">   <parameters>(A1, A2, A3, A4, A5: ArrayType; I1, I2, I3, I4, I5, J: IndexType )</parameters>   <title>Concat5</title>   <description>Concatenates five arrays, A1, ..., A5.  I1, ..., I5 are the indexes joined; J is the index of the new array; J usually is the concatenation of I1, ..., I5.</description>   <definition>Index I12 := Concat(I1,I2);Index I123:= Concat(I12, I3);Index I1234 := Concat(I123, I4);Concat(     Concat(          Concat(               Concat( A1,A2,I1,I2,I12 ),           A3, I12, I3, I123),      A4, I123, I4, I1234),A5, I1234, I5, J);</definition>   <nodelocation>88,120,1</nodelocation>   <nodesize>48,24</nodesize>   <windstate>2,160,160,986,596</windstate>   <paramnames>A1,A2,A3,A4,A5,I1,I2,I3,I4,I5,J</paramnames>  </function>  <function name="Concat6">   <parameters>(A1, A2, A3, A4, A5, A6: ArrayType; I1, I2, I3, I4, I5, I6, J: IndexType )</parameters>   <title>Concat6</title>   <description>Concatenates six arrays, A1, ..., A6.  I1, ..., I6 are the indexes joined; J is the index of the new array; J usually is the concatenation of I1, ..., I6.</description>   <definition>Index I12 := Concat(I1,I2);Index I123:= Concat(I12, I3);Index I1234 := Concat(I123, I4);Index I12345 := Concat(I1234, I5);Concat(     Concat(          Concat(               Concat(                    Concat( A1,A2,I1,I2,I12 ),                A3, I12, I3, I123),           A4, I123, I4, I1234),     A5, I1234, I5, I12345),A6, I12345, I6, J);</definition>   <nodelocation>192,120,1</nodelocation>   <nodesize>48,24</nodesize>   <windstate>2,644,94,602,712</windstate>   <paramnames>A1,A2,A3,A4,A5,A6,I1,I2,I3,I4,I5,I6,J</paramnames>   <att__cloakdefn>0</att__cloakdefn>  </function>  <function name="Concat7">   <parameters>(A1, A2, A3, A4, A5, A6, A7: ArrayType; I1, I2, I3, I4, I5, I6, I7, J: IndexType )</parameters>   <title>Concat7</title>   <description>Concatenates seven arrays, A1, ..., A7.  I1, ..., I7 are the indexes joined; J is the index of the new array; J usually is the concatenation of I1, ..., I7.</description>   <definition>Index I12 := Concat(I1,I2);Index I123:= Concat(I12, I3);Index I1234 := Concat(I123, I4);Index I12345 := Concat(I1234, I5);Index I123456 := Concat(I12345, I6);Concat(     Concat(          Concat(               Concat(                    Concat(                         Concat( A1,A2,I1,I2,I12 ),                     A3, I12, I3, I123),                A4, I123, I4, I1234),          A5, I1234, I5, I12345),     A6, I12345, I6, I123456),A7, I123456, I7, J);</definition>   <nodelocation>88,176,1</nodelocation>   <nodesize>48,24</nodesize>   <windstate>2,580,98,551,565</windstate>   <paramnames>A1,A2,A3,A4,A5,A6,A7,I1,I2,I3,I4,I5,I6,I7,J</paramnames>  </function>  <function name="Concat8">   <parameters>(A1, A2, A3, A4, A5, A6, A7, A8: ArrayType; I1, I2, I3, I4, I5, I6, I7, I8, J: IndexType )</parameters>   <title>Concat8</title>   <description>Concatenates eight arrays, A1, ..., A8.  I1, ..., I8 are the indexes joined; J is the index of the new array; J usually is the concatenation of I1, ..., I8.</description>   <definition>Index I12 := Concat(I1,I2);Index I123:= Concat(I12, I3);Index I1234 := Concat(I123, I4);Index I12345 := Concat(I1234, I5);Index I123456 := Concat(I12345, I6);Index I1234567 := Concat(I123456, I7);Concat(     Concat(          Concat(               Concat(                    Concat(                         Concat(                              Concat( A1,A2,I1,I2,I12 ),                          A3, I12, I3, I123),                     A4, I123, I4, I1234),               A5, I1234, I5, I12345),          A6, I12345, I6, I123456),     A7, I123456, I7, I1234567),A8, I1234567, I8, J);</definition>   <nodelocation>192,176,1</nodelocation>   <nodesize>48,24</nodesize>   <windstate>2,12,98,561,737</windstate>   <paramnames>A1,A2,A3,A4,A5,A6,A7,A8,I1,I2,I3,I4,I5,I6,I7,I8,J</paramnames>   <att__cloakdefn>0</att__cloakdefn>  </function>  <function name="Concat10">   <parameters>(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10: ArrayType; I1, I2, I3, I4, I5, I6, I7, I8, I9, I10, J: IndexType)</parameters>   <title>Concat10</title>   <description>Concatenates ten arrays, A1, ..., A10.  I1, ..., I10 are the indexes joined; J is the index of the new array; J usually is the concatenation of I1, ..., I10.</description>   <definition>Index I12 := Concat(I1,I2);Index I123 := Concat(I12, I3);Index I1234 := Concat(I123, I4);Index I12345 := Concat(I1234, I5);Index I123456 := Concat(I12345, I6);Index I1234567 := Concat(I123456, I7);Index I12345678 := Concat(I1234567, I8);Index I123456789 := Concat(I12345678, I9);Concat(     Concat(          Concat(               Concat(                    Concat(                         Concat(                                Concat(                                   Concat(                                        Concat( A1,A2,I1,I2,I12 ),                                    A3, I12, I3, I123),                               A4, I123, I4, I1234),                         A5, I1234, I5, I12345),                    A6, I12345, I6, I123456),               A7, I123456, I7, I1234567),          A8, I1234567, I8, I12345678),     A9, I12345678, I9, I123456789),A10, I123456789, I10, J);</definition>   <nodelocation>192,232,1</nodelocation>   <nodesize>48,24</nodesize>   <windstate>2,542,93,632,744</windstate>   <paramnames>A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,J</paramnames>   <att__cloakdefn>0</att__cloakdefn>  </function>  <function name="Concatrows">   <parameters>(A : ArrayType ; RowIndex,ColIndex,ResultIndex : IndexType)</parameters>   <title>ConcatRows (A,I,J,K)</title>   <description>Takes an array, A indexed by RowIndex &amp; ColIndex, and concatenates each row, henceforth flattening the array by one dimension. The result is indexed by ResultIndex, which must be an index with size(RowIndex) * size(ColIndex) elements.</description>   <definition>if AnalyticaVersion &lt; 40200 then (  index L := [ identifier of RowIndex, identifier of ColIndex, &quot;val&quot;];  slice(Mdarraytotable(A,ResultIndex,L),L,3)) else (  &#x7B; In 4.2, use built-in function &#x7D;  ::ConcatRows(A,RowIndex,ColIndex,ResultIndex))</definition>   <nodelocation>320,64,1</nodelocation>   <nodesize>64,24</nodesize>   <windstate>2,30,320,571,413</windstate>   <paramnames>A,RowIndex,ColIndex,ResultIndex</paramnames>  </function> </linklibrary></ana>