>  Docs Center  >  Libraries  >  Buie  >  FULLJOIN
Libraries

FULLJOIN

FULLJOIN

Name


  fulljoin

Purpose


  Create the full join, or Cartesian product of two sets.

Description


  a and b are two vectors of identical type.
  a matrix c is returned where c[0,*] is values of a in order
                              c[1,*] is values of b in order
 

Category


  Set Manipulation

Calling Sequence



  fulljoin( a,b)

Inputs


  a - 1-D array
  b - 1-D array

Optional Input Parameters


Keyword Input Parameters


  NOUNIQ - Flag, if set, does a straight join across a and b as is.
            Otherwise the a and b arrays are sorted into uniq values.
  PRESERVE- Flag, if set, and NOUNIQ not set, unique values for a and b
            will be used but they will be in their original order, ie,
            for each unique value, the order of its first appearance.

Outputs


  Returns a product matrix of dimension 2 X (m * n).
  of the form [ [a0,b0], [a0, b1], [a0,b2]... [a1,b0],... [an,bn-1], [an.bn]]

Keyword Output Parameters


Common Blocks


Side Effects


Restrictions


Procedure


Modification History


      2006/08/16, Written by Peter L. Collins, Lowell Observatory



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us