copy_into INDEX

COPY_INTO _ _ _ _ _ _ _ _ _ _ _ _ operator

syntax:

copy_into(<A>,<B>,<r>,<c>)

<A>,<B> :- matrices.

<r>,<c> :- positive integers.

copy_intocopies matrix <matrix> into <B> with <matrix>(1,1) at <B>(<r>,<c>).

examples:

 

G := mat((0,0,0,0,0),(0,0,0,0,0),(0,0,0,0,0),(0,0,0,0,0),(0,0,0,0,0)); 


       [0  0  0  0  0]
       [             ]
       [0  0  0  0  0]
       [             ]
  g := [0  0  0  0  0]
       [             ]
       [0  0  0  0  0]
       [             ]
       [0  0  0  0  0]



copy_into(A,G,1,2); 

  [0  1  2  3  0]
  [             ]
  [0  4  5  6  0]
  [             ]
  [0  7  8  9  0]
  [             ]
  [0  0  0  0  0]
  [             ]
  [0  0  0  0  0]

Related functions: augment_columns, extend, matrix_augment, matrix_stack, stack_rows, sub_matrix.