gps_pvt 0.2.1 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1862,8 +1862,9 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
1862
1862
  #define SWIGTYPE_p_f_r_q_const__double_p_double_r_q_const__unsigned_int_r_q_const__unsigned_int__void swig_types[12]
1863
1863
  #define SWIGTYPE_p_self_t swig_types[13]
1864
1864
  #define SWIGTYPE_p_swig__GC_VALUE swig_types[14]
1865
- static swig_type_info *swig_types[16];
1866
- static swig_module_info swig_module = {swig_types, 15, 0, 0, 0, 0};
1865
+ #define SWIGTYPE_p_unsigned_int swig_types[15]
1866
+ static swig_type_info *swig_types[17];
1867
+ static swig_module_info swig_module = {swig_types, 16, 0, 0, 0, 0};
1867
1868
  #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1868
1869
  #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1869
1870
 
@@ -3202,6 +3203,16 @@ SWIG_AsVal_unsigned_SS_int (VALUE obj, unsigned int *val)
3202
3203
  return res;
3203
3204
  }
3204
3205
 
3206
+
3207
+ inline bool is_lt_zero_after_asval(const unsigned int &i){
3208
+ return ((sizeof(unsigned int) == sizeof(unsigned long)) && ((UINT_MAX >> 1) <= i));
3209
+ }
3210
+ void raise_if_lt_zero_after_asval(const unsigned int &i){
3211
+ if(is_lt_zero_after_asval(i)){
3212
+ SWIG_exception(SWIG_ValueError, "Expected positive value.");
3213
+ }
3214
+ }
3215
+
3205
3216
  SWIGINTERN double Matrix_Frozen_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sc_MatViewBase_Sg____getitem__(Matrix_Frozen< double,Array2D_Dense< double >,MatViewBase > const *self,unsigned int const &row,unsigned int const &column){
3206
3217
  return (self)->operator()(row, column);
3207
3218
  }
@@ -3615,13 +3626,10 @@ SWIGINTERN Matrix< double,Array2D_Dense< double > > *new_Matrix_Sl_double_Sc_Arr
3615
3626
  MatrixUtil::replace(res, replacer);
3616
3627
  return new Matrix<double, Array2D_Dense< double >, MatrixViewBase< >>(res);
3617
3628
  }else if(value && rb_respond_to(*value, id_r) && rb_respond_to(*value, id_c)){
3618
- /* "unsigned" is remove because SWIG_AsVal(unsigned int)
3619
- * can not detect less than zero in Windows Ruby devkit.
3620
- */
3621
- int r, c;
3629
+ unsigned int r, c;
3622
3630
  VALUE v_r(rb_funcall(*value, id_r, 0, 0)), v_c(rb_funcall(*value, id_c, 0, 0));
3623
- if(!SWIG_IsOK(SWIG_AsVal_int (v_r, &r)) || (r < 0)
3624
- || !SWIG_IsOK(SWIG_AsVal_int (v_c, &c)) || (c < 0)){
3631
+ if(!SWIG_IsOK(SWIG_AsVal_unsigned_SS_int (v_r, &r)) || is_lt_zero_after_asval(r)
3632
+ || !SWIG_IsOK(SWIG_AsVal_unsigned_SS_int (v_c, &c)) || is_lt_zero_after_asval(c)){
3625
3633
  throw std::runtime_error(
3626
3634
  std::string("Unexpected length [")
3627
3635
  .append(inspect_str(v_r)).append(", ")
@@ -3667,6 +3675,15 @@ SWIGINTERN Matrix< double,Array2D_Dense< double > >::self_t &Matrix_Sl_double_Sc
3667
3675
  MatrixUtil::each(*self, each_func, each_which, self);
3668
3676
  return *self;
3669
3677
  }
3678
+ SWIGINTERN Matrix< double,Array2D_Dense< double > > &Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg__resize(Matrix< double,Array2D_Dense< double > > *self,unsigned int const *r_p,unsigned int const *c_p){
3679
+ unsigned int r(r_p ? *r_p : self->rows()), c(c_p ? *c_p : self->columns());
3680
+ Matrix<double, Array2D_Dense<double > > mat_new(r, c);
3681
+ unsigned int r_min(r), c_min(c);
3682
+ if(r_min > self->rows()){r_min = self->rows();}
3683
+ if(c_min > self->columns()){c_min = self->columns();}
3684
+ mat_new.partial(r_min, c_min).replace(self->partial(r_min, c_min), false);
3685
+ return (*(self) = mat_new);
3686
+ }
3670
3687
  SWIGINTERN Complex< double > Matrix_Frozen_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sc_MatViewBase_Sg____getitem__(Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatViewBase > const *self,unsigned int const &row,unsigned int const &column){
3671
3688
  return (self)->operator()(row, column);
3672
3689
  }
@@ -4080,13 +4097,10 @@ SWIGINTERN Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *new_M
4080
4097
  MatrixUtil::replace(res, replacer);
4081
4098
  return new Matrix<Complex< double >, Array2D_Dense< Complex< double > >, MatrixViewBase< >>(res);
4082
4099
  }else if(value && rb_respond_to(*value, id_r) && rb_respond_to(*value, id_c)){
4083
- /* "unsigned" is remove because SWIG_AsVal(unsigned int)
4084
- * can not detect less than zero in Windows Ruby devkit.
4085
- */
4086
- int r, c;
4100
+ unsigned int r, c;
4087
4101
  VALUE v_r(rb_funcall(*value, id_r, 0, 0)), v_c(rb_funcall(*value, id_c, 0, 0));
4088
- if(!SWIG_IsOK(SWIG_AsVal_int (v_r, &r)) || (r < 0)
4089
- || !SWIG_IsOK(SWIG_AsVal_int (v_c, &c)) || (c < 0)){
4102
+ if(!SWIG_IsOK(SWIG_AsVal_unsigned_SS_int (v_r, &r)) || is_lt_zero_after_asval(r)
4103
+ || !SWIG_IsOK(SWIG_AsVal_unsigned_SS_int (v_c, &c)) || is_lt_zero_after_asval(c)){
4090
4104
  throw std::runtime_error(
4091
4105
  std::string("Unexpected length [")
4092
4106
  .append(inspect_str(v_r)).append(", ")
@@ -4132,6 +4146,15 @@ SWIGINTERN Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_
4132
4146
  MatrixUtil::each(*self, each_func, each_which, self);
4133
4147
  return *self;
4134
4148
  }
4149
+ SWIGINTERN Matrix< Complex< double >,Array2D_Dense< Complex< double > > > &Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg__resize(Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *self,unsigned int const *r_p,unsigned int const *c_p){
4150
+ unsigned int r(r_p ? *r_p : self->rows()), c(c_p ? *c_p : self->columns());
4151
+ Matrix<Complex<double>, Array2D_Dense<Complex<double> > > mat_new(r, c);
4152
+ unsigned int r_min(r), c_min(c);
4153
+ if(r_min > self->rows()){r_min = self->rows();}
4154
+ if(c_min > self->columns()){c_min = self->columns();}
4155
+ mat_new.partial(r_min, c_min).replace(self->partial(r_min, c_min), false);
4156
+ return (*(self) = mat_new);
4157
+ }
4135
4158
  static swig_class SwigClassGC_VALUE;
4136
4159
 
4137
4160
  /*
@@ -6771,6 +6794,8 @@ _wrap_Matrix_FrozenD___getitem__(int argc, VALUE *argv, VALUE self) {
6771
6794
  }
6772
6795
  temp3 = static_cast< unsigned int >(val3);
6773
6796
  arg3 = &temp3;
6797
+ raise_if_lt_zero_after_asval(*arg2);
6798
+ raise_if_lt_zero_after_asval(*arg3);
6774
6799
  {
6775
6800
  try {
6776
6801
  result = (double)Matrix_Frozen_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sc_MatViewBase_Sg____getitem__((Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewBase< > > const *)arg1,(unsigned int const &)*arg2,(unsigned int const &)*arg3);
@@ -6897,6 +6922,10 @@ _wrap_Matrix_FrozenD_circular__SWIG_0(int argc, VALUE *argv, VALUE self) {
6897
6922
  }
6898
6923
  temp5 = static_cast< unsigned int >(val5);
6899
6924
  arg5 = &temp5;
6925
+ raise_if_lt_zero_after_asval(*arg2);
6926
+ raise_if_lt_zero_after_asval(*arg3);
6927
+ raise_if_lt_zero_after_asval(*arg4);
6928
+ raise_if_lt_zero_after_asval(*arg5);
6900
6929
  {
6901
6930
  try {
6902
6931
  result = Matrix_Frozen_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sc_MatViewBase_Sg__circular__SWIG_0((Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewBase< > > const *)arg1,(unsigned int const &)*arg2,(unsigned int const &)*arg3,(unsigned int const &)*arg4,(unsigned int const &)*arg5);
@@ -6950,6 +6979,8 @@ _wrap_Matrix_FrozenD_circular__SWIG_1(int argc, VALUE *argv, VALUE self) {
6950
6979
  }
6951
6980
  temp3 = static_cast< unsigned int >(val3);
6952
6981
  arg3 = &temp3;
6982
+ raise_if_lt_zero_after_asval(*arg2);
6983
+ raise_if_lt_zero_after_asval(*arg3);
6953
6984
  {
6954
6985
  try {
6955
6986
  result = Matrix_Frozen_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sc_MatViewBase_Sg__circular__SWIG_1((Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewBase< > > const *)arg1,(unsigned int const &)*arg2,(unsigned int const &)*arg3);
@@ -9045,6 +9076,10 @@ _wrap_Matrix_FrozenD_partial(int argc, VALUE *argv, VALUE self) {
9045
9076
  }
9046
9077
  temp5 = static_cast< unsigned int >(val5);
9047
9078
  arg5 = &temp5;
9079
+ raise_if_lt_zero_after_asval(*arg2);
9080
+ raise_if_lt_zero_after_asval(*arg3);
9081
+ raise_if_lt_zero_after_asval(*arg4);
9082
+ raise_if_lt_zero_after_asval(*arg5);
9048
9083
  {
9049
9084
  try {
9050
9085
  result = Matrix_Frozen_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sc_MatViewBase_Sg__partial((Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewBase< > > const *)arg1,(unsigned int const &)*arg2,(unsigned int const &)*arg3,(unsigned int const &)*arg4,(unsigned int const &)*arg5);
@@ -9097,6 +9132,7 @@ _wrap_Matrix_FrozenD_row_vector(int argc, VALUE *argv, VALUE self) {
9097
9132
  }
9098
9133
  temp2 = static_cast< unsigned int >(val2);
9099
9134
  arg2 = &temp2;
9135
+ raise_if_lt_zero_after_asval(*arg2);
9100
9136
  {
9101
9137
  try {
9102
9138
  result = Matrix_Frozen_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sc_MatViewBase_Sg__row_vector((Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewBase< > > const *)arg1,(unsigned int const &)*arg2);
@@ -9149,6 +9185,7 @@ _wrap_Matrix_FrozenD_column_vector(int argc, VALUE *argv, VALUE self) {
9149
9185
  }
9150
9186
  temp2 = static_cast< unsigned int >(val2);
9151
9187
  arg2 = &temp2;
9188
+ raise_if_lt_zero_after_asval(*arg2);
9152
9189
  {
9153
9190
  try {
9154
9191
  result = Matrix_Frozen_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sc_MatViewBase_Sg__column_vector((Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewBase< > > const *)arg1,(unsigned int const &)*arg2);
@@ -9796,6 +9833,8 @@ _wrap_Matrix_FrozenD_f___getitem__(int argc, VALUE *argv, VALUE self) {
9796
9833
  }
9797
9834
  temp3 = static_cast< unsigned int >(val3);
9798
9835
  arg3 = &temp3;
9836
+ raise_if_lt_zero_after_asval(*arg2);
9837
+ raise_if_lt_zero_after_asval(*arg3);
9799
9838
  {
9800
9839
  try {
9801
9840
  result = (double)Matrix_Frozen_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sc_MatView_f_Sg____getitem__((Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewFilter< MatrixViewBase< > > > const *)arg1,(unsigned int const &)*arg2,(unsigned int const &)*arg3);
@@ -9922,6 +9961,10 @@ _wrap_Matrix_FrozenD_f_circular__SWIG_0(int argc, VALUE *argv, VALUE self) {
9922
9961
  }
9923
9962
  temp5 = static_cast< unsigned int >(val5);
9924
9963
  arg5 = &temp5;
9964
+ raise_if_lt_zero_after_asval(*arg2);
9965
+ raise_if_lt_zero_after_asval(*arg3);
9966
+ raise_if_lt_zero_after_asval(*arg4);
9967
+ raise_if_lt_zero_after_asval(*arg5);
9925
9968
  {
9926
9969
  try {
9927
9970
  result = Matrix_Frozen_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sc_MatView_f_Sg__circular__SWIG_0((Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewFilter< MatrixViewBase< > > > const *)arg1,(unsigned int const &)*arg2,(unsigned int const &)*arg3,(unsigned int const &)*arg4,(unsigned int const &)*arg5);
@@ -9975,6 +10018,8 @@ _wrap_Matrix_FrozenD_f_circular__SWIG_1(int argc, VALUE *argv, VALUE self) {
9975
10018
  }
9976
10019
  temp3 = static_cast< unsigned int >(val3);
9977
10020
  arg3 = &temp3;
10021
+ raise_if_lt_zero_after_asval(*arg2);
10022
+ raise_if_lt_zero_after_asval(*arg3);
9978
10023
  {
9979
10024
  try {
9980
10025
  result = Matrix_Frozen_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sc_MatView_f_Sg__circular__SWIG_1((Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewFilter< MatrixViewBase< > > > const *)arg1,(unsigned int const &)*arg2,(unsigned int const &)*arg3);
@@ -12070,6 +12115,10 @@ _wrap_Matrix_FrozenD_f_partial(int argc, VALUE *argv, VALUE self) {
12070
12115
  }
12071
12116
  temp5 = static_cast< unsigned int >(val5);
12072
12117
  arg5 = &temp5;
12118
+ raise_if_lt_zero_after_asval(*arg2);
12119
+ raise_if_lt_zero_after_asval(*arg3);
12120
+ raise_if_lt_zero_after_asval(*arg4);
12121
+ raise_if_lt_zero_after_asval(*arg5);
12073
12122
  {
12074
12123
  try {
12075
12124
  result = Matrix_Frozen_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sc_MatView_f_Sg__partial((Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewFilter< MatrixViewBase< > > > const *)arg1,(unsigned int const &)*arg2,(unsigned int const &)*arg3,(unsigned int const &)*arg4,(unsigned int const &)*arg5);
@@ -12122,6 +12171,7 @@ _wrap_Matrix_FrozenD_f_row_vector(int argc, VALUE *argv, VALUE self) {
12122
12171
  }
12123
12172
  temp2 = static_cast< unsigned int >(val2);
12124
12173
  arg2 = &temp2;
12174
+ raise_if_lt_zero_after_asval(*arg2);
12125
12175
  {
12126
12176
  try {
12127
12177
  result = Matrix_Frozen_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sc_MatView_f_Sg__row_vector((Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewFilter< MatrixViewBase< > > > const *)arg1,(unsigned int const &)*arg2);
@@ -12174,6 +12224,7 @@ _wrap_Matrix_FrozenD_f_column_vector(int argc, VALUE *argv, VALUE self) {
12174
12224
  }
12175
12225
  temp2 = static_cast< unsigned int >(val2);
12176
12226
  arg2 = &temp2;
12227
+ raise_if_lt_zero_after_asval(*arg2);
12177
12228
  {
12178
12229
  try {
12179
12230
  result = Matrix_Frozen_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sc_MatView_f_Sg__column_vector((Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewFilter< MatrixViewBase< > > > const *)arg1,(unsigned int const &)*arg2);
@@ -12308,6 +12359,8 @@ _wrap_MatrixD_swap_rowsN___(int argc, VALUE *argv, VALUE self) {
12308
12359
  }
12309
12360
  temp3 = static_cast< unsigned int >(val3);
12310
12361
  arg3 = &temp3;
12362
+ raise_if_lt_zero_after_asval(*arg2);
12363
+ raise_if_lt_zero_after_asval(*arg3);
12311
12364
  {
12312
12365
  try {
12313
12366
  result = (Matrix< double,Array2D_Dense< double > >::self_t *) &(arg1)->swapRows((unsigned int const &)*arg2,(unsigned int const &)*arg3);
@@ -12370,6 +12423,8 @@ _wrap_MatrixD_swap_columnsN___(int argc, VALUE *argv, VALUE self) {
12370
12423
  }
12371
12424
  temp3 = static_cast< unsigned int >(val3);
12372
12425
  arg3 = &temp3;
12426
+ raise_if_lt_zero_after_asval(*arg2);
12427
+ raise_if_lt_zero_after_asval(*arg3);
12373
12428
  {
12374
12429
  try {
12375
12430
  result = (Matrix< double,Array2D_Dense< double > >::self_t *) &(arg1)->swapColumns((unsigned int const &)*arg2,(unsigned int const &)*arg3);
@@ -12430,6 +12485,8 @@ _wrap_new_MatrixD__SWIG_0(int argc, VALUE *argv, VALUE self) {
12430
12485
  {
12431
12486
  arg3 = &argv[2];
12432
12487
  }
12488
+ raise_if_lt_zero_after_asval(*arg1);
12489
+ raise_if_lt_zero_after_asval(*arg2);
12433
12490
  {
12434
12491
  try {
12435
12492
  result = (Matrix< double,Array2D_Dense< double > > *)new_Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg___SWIG_0((unsigned int const &)*arg1,(unsigned int const &)*arg2,(void const *)arg3);
@@ -12474,6 +12531,8 @@ _wrap_new_MatrixD__SWIG_1(int argc, VALUE *argv, VALUE self) {
12474
12531
  }
12475
12532
  temp2 = static_cast< unsigned int >(val2);
12476
12533
  arg2 = &temp2;
12534
+ raise_if_lt_zero_after_asval(*arg1);
12535
+ raise_if_lt_zero_after_asval(*arg2);
12477
12536
  {
12478
12537
  try {
12479
12538
  result = (Matrix< double,Array2D_Dense< double > > *)new_Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg___SWIG_0((unsigned int const &)*arg1,(unsigned int const &)*arg2);
@@ -12526,6 +12585,8 @@ _wrap_new_MatrixD__SWIG_2(int argc, VALUE *argv, VALUE self) {
12526
12585
  SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "double const *","Matrix<(double,Array2D_Dense<(double)>)>", 3, argv[2] ));
12527
12586
  }
12528
12587
  arg3 = reinterpret_cast< double * >(argp3);
12588
+ raise_if_lt_zero_after_asval(*arg1);
12589
+ raise_if_lt_zero_after_asval(*arg2);
12529
12590
  {
12530
12591
  try {
12531
12592
  result = (Matrix< double,Array2D_Dense< double > > *)new_Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg___SWIG_2((unsigned int const &)*arg1,(unsigned int const &)*arg2,(double const *)arg3);
@@ -12735,6 +12796,8 @@ _wrap_MatrixD___setitem__(int argc, VALUE *argv, VALUE self) {
12735
12796
  }
12736
12797
  temp4 = static_cast< double >(val4);
12737
12798
  arg4 = &temp4;
12799
+ raise_if_lt_zero_after_asval(*arg2);
12800
+ raise_if_lt_zero_after_asval(*arg3);
12738
12801
  {
12739
12802
  try {
12740
12803
  result = (double *) &Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg____setitem__(arg1,(unsigned int const &)*arg2,(unsigned int const &)*arg3,(double const &)*arg4);
@@ -12789,6 +12852,7 @@ _wrap_MatrixD_scalar(int argc, VALUE *argv, VALUE self) {
12789
12852
  }
12790
12853
  temp2 = static_cast< double >(val2);
12791
12854
  arg2 = &temp2;
12855
+ raise_if_lt_zero_after_asval(*arg1);
12792
12856
  {
12793
12857
  try {
12794
12858
  result = Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg__getScalar((unsigned int const &)*arg1,(double const &)*arg2);
@@ -12833,6 +12897,7 @@ _wrap_MatrixD_I(int argc, VALUE *argv, VALUE self) {
12833
12897
  }
12834
12898
  temp1 = static_cast< unsigned int >(val1);
12835
12899
  arg1 = &temp1;
12900
+ raise_if_lt_zero_after_asval(*arg1);
12836
12901
  {
12837
12902
  try {
12838
12903
  result = Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg__getI((unsigned int const &)*arg1);
@@ -13295,6 +13360,81 @@ fail:
13295
13360
  }
13296
13361
 
13297
13362
 
13363
+ /*
13364
+ Document-method: GPS_PVT::SylphideMath::MatrixD.resize
13365
+
13366
+ call-seq:
13367
+ resize(r_p, c_p) -> MatrixD
13368
+
13369
+ Resize the size of the MatrixD.
13370
+ */
13371
+ SWIGINTERN VALUE
13372
+ _wrap_MatrixD_resizeN___(int argc, VALUE *argv, VALUE self) {
13373
+ Matrix< double,Array2D_Dense< double > > *arg1 = (Matrix< double,Array2D_Dense< double > > *) 0 ;
13374
+ unsigned int *arg2 = (unsigned int *) 0 ;
13375
+ unsigned int *arg3 = (unsigned int *) 0 ;
13376
+ void *argp1 = 0 ;
13377
+ int res1 = 0 ;
13378
+ unsigned int temp2 ;
13379
+ unsigned int temp3 ;
13380
+ Matrix< double,Array2D_Dense< double > > *result = 0 ;
13381
+ VALUE vresult = Qnil;
13382
+
13383
+ if ((argc < 2) || (argc > 2)) {
13384
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
13385
+ }
13386
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_MatrixT_double_Array2D_DenseT_double_t_MatrixViewBaseT_t_t, 0 | 0 );
13387
+ if (!SWIG_IsOK(res1)) {
13388
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Matrix< double,Array2D_Dense< double > > *","resize", 1, self ));
13389
+ }
13390
+ arg1 = reinterpret_cast< Matrix< double,Array2D_Dense< double > > * >(argp1);
13391
+ {
13392
+ if(SWIG_IsOK(SWIG_AsVal_unsigned_SS_int (argv[0], &temp2))){
13393
+ raise_if_lt_zero_after_asval(temp2);
13394
+
13395
+ arg2 = &temp2;
13396
+ }
13397
+
13398
+ else if(NIL_P(argv[0])){
13399
+ arg2 = NULL;
13400
+ }
13401
+
13402
+ else{
13403
+ SWIG_exception(SWIG_TypeError, "unsigned int is expected");
13404
+ }
13405
+ }
13406
+ {
13407
+ if(SWIG_IsOK(SWIG_AsVal_unsigned_SS_int (argv[1], &temp3))){
13408
+ raise_if_lt_zero_after_asval(temp3);
13409
+
13410
+ arg3 = &temp3;
13411
+ }
13412
+
13413
+ else if(NIL_P(argv[1])){
13414
+ arg3 = NULL;
13415
+ }
13416
+
13417
+ else{
13418
+ SWIG_exception(SWIG_TypeError, "unsigned int is expected");
13419
+ }
13420
+ }
13421
+ {
13422
+ try {
13423
+ result = (Matrix< double,Array2D_Dense< double > > *) &Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg__resize(arg1,(unsigned int const *)arg2,(unsigned int const *)arg3);
13424
+ } catch (const native_exception &e) {
13425
+ e.regenerate();
13426
+ SWIG_fail;
13427
+ } catch (const std::exception& e) {
13428
+ SWIG_exception_fail(SWIG_RuntimeError, e.what());
13429
+ }
13430
+ }
13431
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MatrixT_double_Array2D_DenseT_double_t_MatrixViewBaseT_t_t, 0 | 0 );
13432
+ return vresult;
13433
+ fail:
13434
+ return Qnil;
13435
+ }
13436
+
13437
+
13298
13438
  SWIGINTERN void
13299
13439
  free_Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg_(void *self) {
13300
13440
  Matrix< double,Array2D_Dense< double > > *arg1 = (Matrix< double,Array2D_Dense< double > > *)self;
@@ -13878,6 +14018,8 @@ _wrap_Matrix_FrozenComplexD___getitem__(int argc, VALUE *argv, VALUE self) {
13878
14018
  }
13879
14019
  temp3 = static_cast< unsigned int >(val3);
13880
14020
  arg3 = &temp3;
14021
+ raise_if_lt_zero_after_asval(*arg2);
14022
+ raise_if_lt_zero_after_asval(*arg3);
13881
14023
  {
13882
14024
  try {
13883
14025
  result = Matrix_Frozen_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sc_MatViewBase_Sg____getitem__((Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewBase< > > const *)arg1,(unsigned int const &)*arg2,(unsigned int const &)*arg3);
@@ -14006,6 +14148,10 @@ _wrap_Matrix_FrozenComplexD_circular__SWIG_0(int argc, VALUE *argv, VALUE self)
14006
14148
  }
14007
14149
  temp5 = static_cast< unsigned int >(val5);
14008
14150
  arg5 = &temp5;
14151
+ raise_if_lt_zero_after_asval(*arg2);
14152
+ raise_if_lt_zero_after_asval(*arg3);
14153
+ raise_if_lt_zero_after_asval(*arg4);
14154
+ raise_if_lt_zero_after_asval(*arg5);
14009
14155
  {
14010
14156
  try {
14011
14157
  result = Matrix_Frozen_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sc_MatViewBase_Sg__circular__SWIG_0((Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewBase< > > const *)arg1,(unsigned int const &)*arg2,(unsigned int const &)*arg3,(unsigned int const &)*arg4,(unsigned int const &)*arg5);
@@ -14059,6 +14205,8 @@ _wrap_Matrix_FrozenComplexD_circular__SWIG_1(int argc, VALUE *argv, VALUE self)
14059
14205
  }
14060
14206
  temp3 = static_cast< unsigned int >(val3);
14061
14207
  arg3 = &temp3;
14208
+ raise_if_lt_zero_after_asval(*arg2);
14209
+ raise_if_lt_zero_after_asval(*arg3);
14062
14210
  {
14063
14211
  try {
14064
14212
  result = Matrix_Frozen_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sc_MatViewBase_Sg__circular__SWIG_1((Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewBase< > > const *)arg1,(unsigned int const &)*arg2,(unsigned int const &)*arg3);
@@ -16142,6 +16290,10 @@ _wrap_Matrix_FrozenComplexD_partial(int argc, VALUE *argv, VALUE self) {
16142
16290
  }
16143
16291
  temp5 = static_cast< unsigned int >(val5);
16144
16292
  arg5 = &temp5;
16293
+ raise_if_lt_zero_after_asval(*arg2);
16294
+ raise_if_lt_zero_after_asval(*arg3);
16295
+ raise_if_lt_zero_after_asval(*arg4);
16296
+ raise_if_lt_zero_after_asval(*arg5);
16145
16297
  {
16146
16298
  try {
16147
16299
  result = Matrix_Frozen_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sc_MatViewBase_Sg__partial((Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewBase< > > const *)arg1,(unsigned int const &)*arg2,(unsigned int const &)*arg3,(unsigned int const &)*arg4,(unsigned int const &)*arg5);
@@ -16194,6 +16346,7 @@ _wrap_Matrix_FrozenComplexD_row_vector(int argc, VALUE *argv, VALUE self) {
16194
16346
  }
16195
16347
  temp2 = static_cast< unsigned int >(val2);
16196
16348
  arg2 = &temp2;
16349
+ raise_if_lt_zero_after_asval(*arg2);
16197
16350
  {
16198
16351
  try {
16199
16352
  result = Matrix_Frozen_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sc_MatViewBase_Sg__row_vector((Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewBase< > > const *)arg1,(unsigned int const &)*arg2);
@@ -16246,6 +16399,7 @@ _wrap_Matrix_FrozenComplexD_column_vector(int argc, VALUE *argv, VALUE self) {
16246
16399
  }
16247
16400
  temp2 = static_cast< unsigned int >(val2);
16248
16401
  arg2 = &temp2;
16402
+ raise_if_lt_zero_after_asval(*arg2);
16249
16403
  {
16250
16404
  try {
16251
16405
  result = Matrix_Frozen_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sc_MatViewBase_Sg__column_vector((Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewBase< > > const *)arg1,(unsigned int const &)*arg2);
@@ -16903,6 +17057,8 @@ _wrap_Matrix_FrozenComplexD_f___getitem__(int argc, VALUE *argv, VALUE self) {
16903
17057
  }
16904
17058
  temp3 = static_cast< unsigned int >(val3);
16905
17059
  arg3 = &temp3;
17060
+ raise_if_lt_zero_after_asval(*arg2);
17061
+ raise_if_lt_zero_after_asval(*arg3);
16906
17062
  {
16907
17063
  try {
16908
17064
  result = Matrix_Frozen_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sc_MatView_f_Sg____getitem__((Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewFilter< MatrixViewBase< > > > const *)arg1,(unsigned int const &)*arg2,(unsigned int const &)*arg3);
@@ -17031,6 +17187,10 @@ _wrap_Matrix_FrozenComplexD_f_circular__SWIG_0(int argc, VALUE *argv, VALUE self
17031
17187
  }
17032
17188
  temp5 = static_cast< unsigned int >(val5);
17033
17189
  arg5 = &temp5;
17190
+ raise_if_lt_zero_after_asval(*arg2);
17191
+ raise_if_lt_zero_after_asval(*arg3);
17192
+ raise_if_lt_zero_after_asval(*arg4);
17193
+ raise_if_lt_zero_after_asval(*arg5);
17034
17194
  {
17035
17195
  try {
17036
17196
  result = Matrix_Frozen_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sc_MatView_f_Sg__circular__SWIG_0((Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewFilter< MatrixViewBase< > > > const *)arg1,(unsigned int const &)*arg2,(unsigned int const &)*arg3,(unsigned int const &)*arg4,(unsigned int const &)*arg5);
@@ -17084,6 +17244,8 @@ _wrap_Matrix_FrozenComplexD_f_circular__SWIG_1(int argc, VALUE *argv, VALUE self
17084
17244
  }
17085
17245
  temp3 = static_cast< unsigned int >(val3);
17086
17246
  arg3 = &temp3;
17247
+ raise_if_lt_zero_after_asval(*arg2);
17248
+ raise_if_lt_zero_after_asval(*arg3);
17087
17249
  {
17088
17250
  try {
17089
17251
  result = Matrix_Frozen_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sc_MatView_f_Sg__circular__SWIG_1((Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewFilter< MatrixViewBase< > > > const *)arg1,(unsigned int const &)*arg2,(unsigned int const &)*arg3);
@@ -19167,6 +19329,10 @@ _wrap_Matrix_FrozenComplexD_f_partial(int argc, VALUE *argv, VALUE self) {
19167
19329
  }
19168
19330
  temp5 = static_cast< unsigned int >(val5);
19169
19331
  arg5 = &temp5;
19332
+ raise_if_lt_zero_after_asval(*arg2);
19333
+ raise_if_lt_zero_after_asval(*arg3);
19334
+ raise_if_lt_zero_after_asval(*arg4);
19335
+ raise_if_lt_zero_after_asval(*arg5);
19170
19336
  {
19171
19337
  try {
19172
19338
  result = Matrix_Frozen_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sc_MatView_f_Sg__partial((Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewFilter< MatrixViewBase< > > > const *)arg1,(unsigned int const &)*arg2,(unsigned int const &)*arg3,(unsigned int const &)*arg4,(unsigned int const &)*arg5);
@@ -19219,6 +19385,7 @@ _wrap_Matrix_FrozenComplexD_f_row_vector(int argc, VALUE *argv, VALUE self) {
19219
19385
  }
19220
19386
  temp2 = static_cast< unsigned int >(val2);
19221
19387
  arg2 = &temp2;
19388
+ raise_if_lt_zero_after_asval(*arg2);
19222
19389
  {
19223
19390
  try {
19224
19391
  result = Matrix_Frozen_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sc_MatView_f_Sg__row_vector((Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewFilter< MatrixViewBase< > > > const *)arg1,(unsigned int const &)*arg2);
@@ -19271,6 +19438,7 @@ _wrap_Matrix_FrozenComplexD_f_column_vector(int argc, VALUE *argv, VALUE self) {
19271
19438
  }
19272
19439
  temp2 = static_cast< unsigned int >(val2);
19273
19440
  arg2 = &temp2;
19441
+ raise_if_lt_zero_after_asval(*arg2);
19274
19442
  {
19275
19443
  try {
19276
19444
  result = Matrix_Frozen_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sc_MatView_f_Sg__column_vector((Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewFilter< MatrixViewBase< > > > const *)arg1,(unsigned int const &)*arg2);
@@ -19405,6 +19573,8 @@ _wrap_MatrixComplexD_swap_rowsN___(int argc, VALUE *argv, VALUE self) {
19405
19573
  }
19406
19574
  temp3 = static_cast< unsigned int >(val3);
19407
19575
  arg3 = &temp3;
19576
+ raise_if_lt_zero_after_asval(*arg2);
19577
+ raise_if_lt_zero_after_asval(*arg3);
19408
19578
  {
19409
19579
  try {
19410
19580
  result = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *) &(arg1)->swapRows((unsigned int const &)*arg2,(unsigned int const &)*arg3);
@@ -19467,6 +19637,8 @@ _wrap_MatrixComplexD_swap_columnsN___(int argc, VALUE *argv, VALUE self) {
19467
19637
  }
19468
19638
  temp3 = static_cast< unsigned int >(val3);
19469
19639
  arg3 = &temp3;
19640
+ raise_if_lt_zero_after_asval(*arg2);
19641
+ raise_if_lt_zero_after_asval(*arg3);
19470
19642
  {
19471
19643
  try {
19472
19644
  result = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *) &(arg1)->swapColumns((unsigned int const &)*arg2,(unsigned int const &)*arg3);
@@ -19527,6 +19699,8 @@ _wrap_new_MatrixComplexD__SWIG_0(int argc, VALUE *argv, VALUE self) {
19527
19699
  {
19528
19700
  arg3 = &argv[2];
19529
19701
  }
19702
+ raise_if_lt_zero_after_asval(*arg1);
19703
+ raise_if_lt_zero_after_asval(*arg2);
19530
19704
  {
19531
19705
  try {
19532
19706
  result = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *)new_Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg___SWIG_0((unsigned int const &)*arg1,(unsigned int const &)*arg2,(void const *)arg3);
@@ -19571,6 +19745,8 @@ _wrap_new_MatrixComplexD__SWIG_1(int argc, VALUE *argv, VALUE self) {
19571
19745
  }
19572
19746
  temp2 = static_cast< unsigned int >(val2);
19573
19747
  arg2 = &temp2;
19748
+ raise_if_lt_zero_after_asval(*arg1);
19749
+ raise_if_lt_zero_after_asval(*arg2);
19574
19750
  {
19575
19751
  try {
19576
19752
  result = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *)new_Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg___SWIG_0((unsigned int const &)*arg1,(unsigned int const &)*arg2);
@@ -19623,6 +19799,8 @@ _wrap_new_MatrixComplexD__SWIG_2(int argc, VALUE *argv, VALUE self) {
19623
19799
  SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "Complex< double > const *","Matrix<(Complex<(double)>,Array2D_Dense<(Complex<(double)>)>)>", 3, argv[2] ));
19624
19800
  }
19625
19801
  arg3 = reinterpret_cast< Complex< double > * >(argp3);
19802
+ raise_if_lt_zero_after_asval(*arg1);
19803
+ raise_if_lt_zero_after_asval(*arg2);
19626
19804
  {
19627
19805
  try {
19628
19806
  result = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *)new_Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg___SWIG_2((unsigned int const &)*arg1,(unsigned int const &)*arg2,(Complex< double > const *)arg3);
@@ -19830,6 +20008,8 @@ _wrap_MatrixComplexD___setitem__(int argc, VALUE *argv, VALUE self) {
19830
20008
  SWIG_exception(SWIG_TypeError, "in method '__setitem__', expecting type Complex< double >");
19831
20009
  }
19832
20010
  }
20011
+ raise_if_lt_zero_after_asval(*arg2);
20012
+ raise_if_lt_zero_after_asval(*arg3);
19833
20013
  {
19834
20014
  try {
19835
20015
  result = (Complex< double > *) &Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg____setitem__(arg1,(unsigned int const &)*arg2,(unsigned int const &)*arg3,(Complex< double > const &)*arg4);
@@ -19882,6 +20062,7 @@ _wrap_MatrixComplexD_scalar(int argc, VALUE *argv, VALUE self) {
19882
20062
  SWIG_exception(SWIG_TypeError, "in method 'Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg__getScalar', expecting type Complex< double >");
19883
20063
  }
19884
20064
  }
20065
+ raise_if_lt_zero_after_asval(*arg1);
19885
20066
  {
19886
20067
  try {
19887
20068
  result = Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg__getScalar((unsigned int const &)*arg1,(Complex< double > const &)*arg2);
@@ -19926,6 +20107,7 @@ _wrap_MatrixComplexD_I(int argc, VALUE *argv, VALUE self) {
19926
20107
  }
19927
20108
  temp1 = static_cast< unsigned int >(val1);
19928
20109
  arg1 = &temp1;
20110
+ raise_if_lt_zero_after_asval(*arg1);
19929
20111
  {
19930
20112
  try {
19931
20113
  result = Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg__getI((unsigned int const &)*arg1);
@@ -20388,6 +20570,81 @@ fail:
20388
20570
  }
20389
20571
 
20390
20572
 
20573
+ /*
20574
+ Document-method: GPS_PVT::SylphideMath::MatrixComplexD.resize
20575
+
20576
+ call-seq:
20577
+ resize(r_p, c_p) -> MatrixComplexD
20578
+
20579
+ Resize the size of the MatrixComplexD.
20580
+ */
20581
+ SWIGINTERN VALUE
20582
+ _wrap_MatrixComplexD_resizeN___(int argc, VALUE *argv, VALUE self) {
20583
+ Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *arg1 = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *) 0 ;
20584
+ unsigned int *arg2 = (unsigned int *) 0 ;
20585
+ unsigned int *arg3 = (unsigned int *) 0 ;
20586
+ void *argp1 = 0 ;
20587
+ int res1 = 0 ;
20588
+ unsigned int temp2 ;
20589
+ unsigned int temp3 ;
20590
+ Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *result = 0 ;
20591
+ VALUE vresult = Qnil;
20592
+
20593
+ if ((argc < 2) || (argc > 2)) {
20594
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
20595
+ }
20596
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_MatrixT_ComplexT_double_t_Array2D_DenseT_ComplexT_double_t_t_MatrixViewBaseT_t_t, 0 | 0 );
20597
+ if (!SWIG_IsOK(res1)) {
20598
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *","resize", 1, self ));
20599
+ }
20600
+ arg1 = reinterpret_cast< Matrix< Complex< double >,Array2D_Dense< Complex< double > > > * >(argp1);
20601
+ {
20602
+ if(SWIG_IsOK(SWIG_AsVal_unsigned_SS_int (argv[0], &temp2))){
20603
+ raise_if_lt_zero_after_asval(temp2);
20604
+
20605
+ arg2 = &temp2;
20606
+ }
20607
+
20608
+ else if(NIL_P(argv[0])){
20609
+ arg2 = NULL;
20610
+ }
20611
+
20612
+ else{
20613
+ SWIG_exception(SWIG_TypeError, "unsigned int is expected");
20614
+ }
20615
+ }
20616
+ {
20617
+ if(SWIG_IsOK(SWIG_AsVal_unsigned_SS_int (argv[1], &temp3))){
20618
+ raise_if_lt_zero_after_asval(temp3);
20619
+
20620
+ arg3 = &temp3;
20621
+ }
20622
+
20623
+ else if(NIL_P(argv[1])){
20624
+ arg3 = NULL;
20625
+ }
20626
+
20627
+ else{
20628
+ SWIG_exception(SWIG_TypeError, "unsigned int is expected");
20629
+ }
20630
+ }
20631
+ {
20632
+ try {
20633
+ result = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *) &Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg__resize(arg1,(unsigned int const *)arg2,(unsigned int const *)arg3);
20634
+ } catch (const native_exception &e) {
20635
+ e.regenerate();
20636
+ SWIG_fail;
20637
+ } catch (const std::exception& e) {
20638
+ SWIG_exception_fail(SWIG_RuntimeError, e.what());
20639
+ }
20640
+ }
20641
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MatrixT_ComplexT_double_t_Array2D_DenseT_ComplexT_double_t_t_MatrixViewBaseT_t_t, 0 | 0 );
20642
+ return vresult;
20643
+ fail:
20644
+ return Qnil;
20645
+ }
20646
+
20647
+
20391
20648
  SWIGINTERN void
20392
20649
  free_Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg_(void *self) {
20393
20650
  Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *arg1 = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *)self;
@@ -20418,6 +20675,7 @@ static swig_type_info _swigt__p_f_r_q_const__Complex__double___p_Complex__double
20418
20675
  static swig_type_info _swigt__p_f_r_q_const__double_p_double_r_q_const__unsigned_int_r_q_const__unsigned_int__void = {"_p_f_r_q_const__double_p_double_r_q_const__unsigned_int_r_q_const__unsigned_int__void", "void (*)(double const &,double *,unsigned int const &,unsigned int const &)", 0, 0, (void*)0, 0};
20419
20676
  static swig_type_info _swigt__p_self_t = {"_p_self_t", "self_t *", 0, 0, (void*)0, 0};
20420
20677
  static swig_type_info _swigt__p_swig__GC_VALUE = {"_p_swig__GC_VALUE", "swig::GC_VALUE *", 0, 0, (void*)0, 0};
20678
+ static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *", 0, 0, (void*)0, 0};
20421
20679
 
20422
20680
  static swig_type_info *swig_type_initial[] = {
20423
20681
  &_swigt__p_ComplexT_double_t,
@@ -20435,6 +20693,7 @@ static swig_type_info *swig_type_initial[] = {
20435
20693
  &_swigt__p_f_r_q_const__double_p_double_r_q_const__unsigned_int_r_q_const__unsigned_int__void,
20436
20694
  &_swigt__p_self_t,
20437
20695
  &_swigt__p_swig__GC_VALUE,
20696
+ &_swigt__p_unsigned_int,
20438
20697
  };
20439
20698
 
20440
20699
  static swig_cast_info _swigc__p_ComplexT_double_t[] = { {&_swigt__p_ComplexT_double_t, 0, 0, 0},{0, 0, 0, 0}};
@@ -20452,6 +20711,7 @@ static swig_cast_info _swigc__p_f_r_q_const__Complex__double___p_Complex__double
20452
20711
  static swig_cast_info _swigc__p_f_r_q_const__double_p_double_r_q_const__unsigned_int_r_q_const__unsigned_int__void[] = { {&_swigt__p_f_r_q_const__double_p_double_r_q_const__unsigned_int_r_q_const__unsigned_int__void, 0, 0, 0},{0, 0, 0, 0}};
20453
20712
  static swig_cast_info _swigc__p_self_t[] = { {&_swigt__p_self_t, 0, 0, 0},{0, 0, 0, 0}};
20454
20713
  static swig_cast_info _swigc__p_swig__GC_VALUE[] = { {&_swigt__p_swig__GC_VALUE, 0, 0, 0},{0, 0, 0, 0}};
20714
+ static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
20455
20715
 
20456
20716
  static swig_cast_info *swig_cast_initial[] = {
20457
20717
  _swigc__p_ComplexT_double_t,
@@ -20469,6 +20729,7 @@ static swig_cast_info *swig_cast_initial[] = {
20469
20729
  _swigc__p_f_r_q_const__double_p_double_r_q_const__unsigned_int_r_q_const__unsigned_int__void,
20470
20730
  _swigc__p_self_t,
20471
20731
  _swigc__p_swig__GC_VALUE,
20732
+ _swigc__p_unsigned_int,
20472
20733
  };
20473
20734
 
20474
20735
 
@@ -20903,6 +21164,7 @@ SWIGEXPORT void Init_SylphideMath(void) {
20903
21164
  rb_define_alias(SwigClassMatrixD.klass, "collect!", "map!");
20904
21165
  rb_define_alias(SwigClassMatrixD.klass, "map_with_index!", "map!");
20905
21166
  rb_define_alias(SwigClassMatrixD.klass, "collect_with_index!", "map!");
21167
+ rb_define_method(SwigClassMatrixD.klass, "resize!", VALUEFUNC(_wrap_MatrixD_resizeN___), -1);
20906
21168
  SwigClassMatrixD.mark = 0;
20907
21169
  SwigClassMatrixD.destroy = (void (*)(void *)) free_Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg_;
20908
21170
  SwigClassMatrixD.trackObjects = 0;
@@ -21036,6 +21298,7 @@ SWIGEXPORT void Init_SylphideMath(void) {
21036
21298
  rb_define_alias(SwigClassMatrixComplexD.klass, "collect!", "map!");
21037
21299
  rb_define_alias(SwigClassMatrixComplexD.klass, "map_with_index!", "map!");
21038
21300
  rb_define_alias(SwigClassMatrixComplexD.klass, "collect_with_index!", "map!");
21301
+ rb_define_method(SwigClassMatrixComplexD.klass, "resize!", VALUEFUNC(_wrap_MatrixComplexD_resizeN___), -1);
21039
21302
  SwigClassMatrixComplexD.mark = 0;
21040
21303
  SwigClassMatrixComplexD.destroy = (void (*)(void *)) free_Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg_;
21041
21304
  SwigClassMatrixComplexD.trackObjects = 0;