Statistics
| Revision:

root / trunk / tests / colfill / colfill.tpl @ 1025

History | View | Annotate | Download (433 Bytes)

1
DATA_SECTION
2
  init_matrix dat(1,3,1,2);
3

    
4
PARAMETER_SECTION
5
  init_number x;
6

    
7
  matrix Mat1(1,3,1,2);
8
  //Just uncomment this and try compiling
9
  //with –r flag
10
  //random_effects_vector rx(1,2);
11
  objective_function_value ff;
12

    
13
PROCEDURE_SECTION
14
  cout << dat << endl;
15
  ff = 0;
16
  Mat1.colfill(1,column(dat,1));  //fill Mat1 column 1 with dat column 1
17
  //ff =  norm2(rx);
18
  ff += -1*square(x);
19

    
20
REPORT_SECTION
21
  cout<<Mat1<<endl;