gps_pvt 0.1.7 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /* ----------------------------------------------------------------------------
2
2
  * This file was automatically generated by SWIG (http://www.swig.org).
3
- * Version 4.0.1
3
+ * Version 4.0.2
4
4
  *
5
5
  * This file is not intended to be easily readable and contains a number of
6
6
  * coding conventions designed to improve portability and efficiency. Do not make
@@ -1612,6 +1612,8 @@ SWIGRUNTIMEINLINE char *
1612
1612
  SWIG_Ruby_MangleStr(VALUE obj)
1613
1613
  {
1614
1614
  VALUE stype = rb_iv_get(obj, "@__swigtype__");
1615
+ if (NIL_P(stype))
1616
+ return NULL;
1615
1617
  return StringValuePtr(stype);
1616
1618
  }
1617
1619
 
@@ -1860,8 +1862,9 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
1860
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]
1861
1863
  #define SWIGTYPE_p_self_t swig_types[13]
1862
1864
  #define SWIGTYPE_p_swig__GC_VALUE swig_types[14]
1863
- static swig_type_info *swig_types[16];
1864
- 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};
1865
1868
  #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1866
1869
  #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1867
1870
 
@@ -1876,7 +1879,7 @@ static VALUE mSylphideMath;
1876
1879
  #define SWIG_RUBY_THREAD_END_BLOCK
1877
1880
 
1878
1881
 
1879
- #define SWIGVERSION 0x040001
1882
+ #define SWIGVERSION 0x040002
1880
1883
  #define SWIG_VERSION SWIGVERSION
1881
1884
 
1882
1885
 
@@ -2259,7 +2262,7 @@ SWIG_ruby_failed(VALUE SWIGUNUSEDPARM(arg1), VALUE SWIGUNUSEDPARM(arg2))
2259
2262
  }
2260
2263
 
2261
2264
 
2262
- /*@SWIG:/usr/share/swig4.0/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2265
+ /*@SWIG:/usr/local/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2263
2266
  SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE arg)
2264
2267
  {
2265
2268
  VALUE *args = (VALUE *)arg;
@@ -3089,7 +3092,7 @@ SWIG_From_unsigned_SS_int (unsigned int value)
3089
3092
  }
3090
3093
 
3091
3094
 
3092
- /*@SWIG:/usr/share/swig4.0/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
3095
+ /*@SWIG:/usr/local/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
3093
3096
  SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE arg)
3094
3097
  {
3095
3098
  VALUE *args = (VALUE *)arg;
@@ -3155,7 +3158,7 @@ SWIG_AsVal_bool (VALUE obj, bool *val)
3155
3158
  }
3156
3159
 
3157
3160
 
3158
- /*@SWIG:/usr/share/swig4.0/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
3161
+ /*@SWIG:/usr/local/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
3159
3162
  SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE arg)
3160
3163
  {
3161
3164
  VALUE *args = (VALUE *)arg;
@@ -3200,6 +3203,16 @@ SWIG_AsVal_unsigned_SS_int (VALUE obj, unsigned int *val)
3200
3203
  return res;
3201
3204
  }
3202
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
+
3203
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){
3204
3217
  return (self)->operator()(row, column);
3205
3218
  }
@@ -3613,13 +3626,10 @@ SWIGINTERN Matrix< double,Array2D_Dense< double > > *new_Matrix_Sl_double_Sc_Arr
3613
3626
  MatrixUtil::replace(res, replacer);
3614
3627
  return new Matrix<double, Array2D_Dense< double >, MatrixViewBase< >>(res);
3615
3628
  }else if(value && rb_respond_to(*value, id_r) && rb_respond_to(*value, id_c)){
3616
- /* "unsigned" is remove because SWIG_AsVal(unsigned int)
3617
- * can not detect less than zero in Windows Ruby devkit.
3618
- */
3619
- int r, c;
3629
+ unsigned int r, c;
3620
3630
  VALUE v_r(rb_funcall(*value, id_r, 0, 0)), v_c(rb_funcall(*value, id_c, 0, 0));
3621
- if(!SWIG_IsOK(SWIG_AsVal_int (v_r, &r)) || (r < 0)
3622
- || !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)){
3623
3633
  throw std::runtime_error(
3624
3634
  std::string("Unexpected length [")
3625
3635
  .append(inspect_str(v_r)).append(", ")
@@ -3665,6 +3675,15 @@ SWIGINTERN Matrix< double,Array2D_Dense< double > >::self_t &Matrix_Sl_double_Sc
3665
3675
  MatrixUtil::each(*self, each_func, each_which, self);
3666
3676
  return *self;
3667
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
+ }
3668
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){
3669
3688
  return (self)->operator()(row, column);
3670
3689
  }
@@ -4078,13 +4097,10 @@ SWIGINTERN Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *new_M
4078
4097
  MatrixUtil::replace(res, replacer);
4079
4098
  return new Matrix<Complex< double >, Array2D_Dense< Complex< double > >, MatrixViewBase< >>(res);
4080
4099
  }else if(value && rb_respond_to(*value, id_r) && rb_respond_to(*value, id_c)){
4081
- /* "unsigned" is remove because SWIG_AsVal(unsigned int)
4082
- * can not detect less than zero in Windows Ruby devkit.
4083
- */
4084
- int r, c;
4100
+ unsigned int r, c;
4085
4101
  VALUE v_r(rb_funcall(*value, id_r, 0, 0)), v_c(rb_funcall(*value, id_c, 0, 0));
4086
- if(!SWIG_IsOK(SWIG_AsVal_int (v_r, &r)) || (r < 0)
4087
- || !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)){
4088
4104
  throw std::runtime_error(
4089
4105
  std::string("Unexpected length [")
4090
4106
  .append(inspect_str(v_r)).append(", ")
@@ -4130,6 +4146,15 @@ SWIGINTERN Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_
4130
4146
  MatrixUtil::each(*self, each_func, each_which, self);
4131
4147
  return *self;
4132
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
+ }
4133
4158
  static swig_class SwigClassGC_VALUE;
4134
4159
 
4135
4160
  /*
@@ -6769,6 +6794,8 @@ _wrap_Matrix_FrozenD___getitem__(int argc, VALUE *argv, VALUE self) {
6769
6794
  }
6770
6795
  temp3 = static_cast< unsigned int >(val3);
6771
6796
  arg3 = &temp3;
6797
+ raise_if_lt_zero_after_asval(*arg2);
6798
+ raise_if_lt_zero_after_asval(*arg3);
6772
6799
  {
6773
6800
  try {
6774
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);
@@ -6895,6 +6922,10 @@ _wrap_Matrix_FrozenD_circular__SWIG_0(int argc, VALUE *argv, VALUE self) {
6895
6922
  }
6896
6923
  temp5 = static_cast< unsigned int >(val5);
6897
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);
6898
6929
  {
6899
6930
  try {
6900
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);
@@ -6948,6 +6979,8 @@ _wrap_Matrix_FrozenD_circular__SWIG_1(int argc, VALUE *argv, VALUE self) {
6948
6979
  }
6949
6980
  temp3 = static_cast< unsigned int >(val3);
6950
6981
  arg3 = &temp3;
6982
+ raise_if_lt_zero_after_asval(*arg2);
6983
+ raise_if_lt_zero_after_asval(*arg3);
6951
6984
  {
6952
6985
  try {
6953
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);
@@ -9043,6 +9076,10 @@ _wrap_Matrix_FrozenD_partial(int argc, VALUE *argv, VALUE self) {
9043
9076
  }
9044
9077
  temp5 = static_cast< unsigned int >(val5);
9045
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);
9046
9083
  {
9047
9084
  try {
9048
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);
@@ -9095,6 +9132,7 @@ _wrap_Matrix_FrozenD_row_vector(int argc, VALUE *argv, VALUE self) {
9095
9132
  }
9096
9133
  temp2 = static_cast< unsigned int >(val2);
9097
9134
  arg2 = &temp2;
9135
+ raise_if_lt_zero_after_asval(*arg2);
9098
9136
  {
9099
9137
  try {
9100
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);
@@ -9147,6 +9185,7 @@ _wrap_Matrix_FrozenD_column_vector(int argc, VALUE *argv, VALUE self) {
9147
9185
  }
9148
9186
  temp2 = static_cast< unsigned int >(val2);
9149
9187
  arg2 = &temp2;
9188
+ raise_if_lt_zero_after_asval(*arg2);
9150
9189
  {
9151
9190
  try {
9152
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);
@@ -9794,6 +9833,8 @@ _wrap_Matrix_FrozenD_f___getitem__(int argc, VALUE *argv, VALUE self) {
9794
9833
  }
9795
9834
  temp3 = static_cast< unsigned int >(val3);
9796
9835
  arg3 = &temp3;
9836
+ raise_if_lt_zero_after_asval(*arg2);
9837
+ raise_if_lt_zero_after_asval(*arg3);
9797
9838
  {
9798
9839
  try {
9799
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);
@@ -9920,6 +9961,10 @@ _wrap_Matrix_FrozenD_f_circular__SWIG_0(int argc, VALUE *argv, VALUE self) {
9920
9961
  }
9921
9962
  temp5 = static_cast< unsigned int >(val5);
9922
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);
9923
9968
  {
9924
9969
  try {
9925
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);
@@ -9973,6 +10018,8 @@ _wrap_Matrix_FrozenD_f_circular__SWIG_1(int argc, VALUE *argv, VALUE self) {
9973
10018
  }
9974
10019
  temp3 = static_cast< unsigned int >(val3);
9975
10020
  arg3 = &temp3;
10021
+ raise_if_lt_zero_after_asval(*arg2);
10022
+ raise_if_lt_zero_after_asval(*arg3);
9976
10023
  {
9977
10024
  try {
9978
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);
@@ -12068,6 +12115,10 @@ _wrap_Matrix_FrozenD_f_partial(int argc, VALUE *argv, VALUE self) {
12068
12115
  }
12069
12116
  temp5 = static_cast< unsigned int >(val5);
12070
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);
12071
12122
  {
12072
12123
  try {
12073
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);
@@ -12120,6 +12171,7 @@ _wrap_Matrix_FrozenD_f_row_vector(int argc, VALUE *argv, VALUE self) {
12120
12171
  }
12121
12172
  temp2 = static_cast< unsigned int >(val2);
12122
12173
  arg2 = &temp2;
12174
+ raise_if_lt_zero_after_asval(*arg2);
12123
12175
  {
12124
12176
  try {
12125
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);
@@ -12172,6 +12224,7 @@ _wrap_Matrix_FrozenD_f_column_vector(int argc, VALUE *argv, VALUE self) {
12172
12224
  }
12173
12225
  temp2 = static_cast< unsigned int >(val2);
12174
12226
  arg2 = &temp2;
12227
+ raise_if_lt_zero_after_asval(*arg2);
12175
12228
  {
12176
12229
  try {
12177
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);
@@ -12306,6 +12359,8 @@ _wrap_MatrixD_swap_rowsN___(int argc, VALUE *argv, VALUE self) {
12306
12359
  }
12307
12360
  temp3 = static_cast< unsigned int >(val3);
12308
12361
  arg3 = &temp3;
12362
+ raise_if_lt_zero_after_asval(*arg2);
12363
+ raise_if_lt_zero_after_asval(*arg3);
12309
12364
  {
12310
12365
  try {
12311
12366
  result = (Matrix< double,Array2D_Dense< double > >::self_t *) &(arg1)->swapRows((unsigned int const &)*arg2,(unsigned int const &)*arg3);
@@ -12368,6 +12423,8 @@ _wrap_MatrixD_swap_columnsN___(int argc, VALUE *argv, VALUE self) {
12368
12423
  }
12369
12424
  temp3 = static_cast< unsigned int >(val3);
12370
12425
  arg3 = &temp3;
12426
+ raise_if_lt_zero_after_asval(*arg2);
12427
+ raise_if_lt_zero_after_asval(*arg3);
12371
12428
  {
12372
12429
  try {
12373
12430
  result = (Matrix< double,Array2D_Dense< double > >::self_t *) &(arg1)->swapColumns((unsigned int const &)*arg2,(unsigned int const &)*arg3);
@@ -12428,6 +12485,8 @@ _wrap_new_MatrixD__SWIG_0(int argc, VALUE *argv, VALUE self) {
12428
12485
  {
12429
12486
  arg3 = &argv[2];
12430
12487
  }
12488
+ raise_if_lt_zero_after_asval(*arg1);
12489
+ raise_if_lt_zero_after_asval(*arg2);
12431
12490
  {
12432
12491
  try {
12433
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);
@@ -12472,6 +12531,8 @@ _wrap_new_MatrixD__SWIG_1(int argc, VALUE *argv, VALUE self) {
12472
12531
  }
12473
12532
  temp2 = static_cast< unsigned int >(val2);
12474
12533
  arg2 = &temp2;
12534
+ raise_if_lt_zero_after_asval(*arg1);
12535
+ raise_if_lt_zero_after_asval(*arg2);
12475
12536
  {
12476
12537
  try {
12477
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);
@@ -12524,6 +12585,8 @@ _wrap_new_MatrixD__SWIG_2(int argc, VALUE *argv, VALUE self) {
12524
12585
  SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "double const *","Matrix<(double,Array2D_Dense<(double)>)>", 3, argv[2] ));
12525
12586
  }
12526
12587
  arg3 = reinterpret_cast< double * >(argp3);
12588
+ raise_if_lt_zero_after_asval(*arg1);
12589
+ raise_if_lt_zero_after_asval(*arg2);
12527
12590
  {
12528
12591
  try {
12529
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);
@@ -12733,6 +12796,8 @@ _wrap_MatrixD___setitem__(int argc, VALUE *argv, VALUE self) {
12733
12796
  }
12734
12797
  temp4 = static_cast< double >(val4);
12735
12798
  arg4 = &temp4;
12799
+ raise_if_lt_zero_after_asval(*arg2);
12800
+ raise_if_lt_zero_after_asval(*arg3);
12736
12801
  {
12737
12802
  try {
12738
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);
@@ -12787,6 +12852,7 @@ _wrap_MatrixD_scalar(int argc, VALUE *argv, VALUE self) {
12787
12852
  }
12788
12853
  temp2 = static_cast< double >(val2);
12789
12854
  arg2 = &temp2;
12855
+ raise_if_lt_zero_after_asval(*arg1);
12790
12856
  {
12791
12857
  try {
12792
12858
  result = Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg__getScalar((unsigned int const &)*arg1,(double const &)*arg2);
@@ -12831,6 +12897,7 @@ _wrap_MatrixD_I(int argc, VALUE *argv, VALUE self) {
12831
12897
  }
12832
12898
  temp1 = static_cast< unsigned int >(val1);
12833
12899
  arg1 = &temp1;
12900
+ raise_if_lt_zero_after_asval(*arg1);
12834
12901
  {
12835
12902
  try {
12836
12903
  result = Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg__getI((unsigned int const &)*arg1);
@@ -13293,6 +13360,81 @@ fail:
13293
13360
  }
13294
13361
 
13295
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
+
13296
13438
  SWIGINTERN void
13297
13439
  free_Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg_(void *self) {
13298
13440
  Matrix< double,Array2D_Dense< double > > *arg1 = (Matrix< double,Array2D_Dense< double > > *)self;
@@ -13876,6 +14018,8 @@ _wrap_Matrix_FrozenComplexD___getitem__(int argc, VALUE *argv, VALUE self) {
13876
14018
  }
13877
14019
  temp3 = static_cast< unsigned int >(val3);
13878
14020
  arg3 = &temp3;
14021
+ raise_if_lt_zero_after_asval(*arg2);
14022
+ raise_if_lt_zero_after_asval(*arg3);
13879
14023
  {
13880
14024
  try {
13881
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);
@@ -14004,6 +14148,10 @@ _wrap_Matrix_FrozenComplexD_circular__SWIG_0(int argc, VALUE *argv, VALUE self)
14004
14148
  }
14005
14149
  temp5 = static_cast< unsigned int >(val5);
14006
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);
14007
14155
  {
14008
14156
  try {
14009
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);
@@ -14057,6 +14205,8 @@ _wrap_Matrix_FrozenComplexD_circular__SWIG_1(int argc, VALUE *argv, VALUE self)
14057
14205
  }
14058
14206
  temp3 = static_cast< unsigned int >(val3);
14059
14207
  arg3 = &temp3;
14208
+ raise_if_lt_zero_after_asval(*arg2);
14209
+ raise_if_lt_zero_after_asval(*arg3);
14060
14210
  {
14061
14211
  try {
14062
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);
@@ -16140,6 +16290,10 @@ _wrap_Matrix_FrozenComplexD_partial(int argc, VALUE *argv, VALUE self) {
16140
16290
  }
16141
16291
  temp5 = static_cast< unsigned int >(val5);
16142
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);
16143
16297
  {
16144
16298
  try {
16145
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);
@@ -16192,6 +16346,7 @@ _wrap_Matrix_FrozenComplexD_row_vector(int argc, VALUE *argv, VALUE self) {
16192
16346
  }
16193
16347
  temp2 = static_cast< unsigned int >(val2);
16194
16348
  arg2 = &temp2;
16349
+ raise_if_lt_zero_after_asval(*arg2);
16195
16350
  {
16196
16351
  try {
16197
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);
@@ -16244,6 +16399,7 @@ _wrap_Matrix_FrozenComplexD_column_vector(int argc, VALUE *argv, VALUE self) {
16244
16399
  }
16245
16400
  temp2 = static_cast< unsigned int >(val2);
16246
16401
  arg2 = &temp2;
16402
+ raise_if_lt_zero_after_asval(*arg2);
16247
16403
  {
16248
16404
  try {
16249
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);
@@ -16901,6 +17057,8 @@ _wrap_Matrix_FrozenComplexD_f___getitem__(int argc, VALUE *argv, VALUE self) {
16901
17057
  }
16902
17058
  temp3 = static_cast< unsigned int >(val3);
16903
17059
  arg3 = &temp3;
17060
+ raise_if_lt_zero_after_asval(*arg2);
17061
+ raise_if_lt_zero_after_asval(*arg3);
16904
17062
  {
16905
17063
  try {
16906
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);
@@ -17029,6 +17187,10 @@ _wrap_Matrix_FrozenComplexD_f_circular__SWIG_0(int argc, VALUE *argv, VALUE self
17029
17187
  }
17030
17188
  temp5 = static_cast< unsigned int >(val5);
17031
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);
17032
17194
  {
17033
17195
  try {
17034
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);
@@ -17082,6 +17244,8 @@ _wrap_Matrix_FrozenComplexD_f_circular__SWIG_1(int argc, VALUE *argv, VALUE self
17082
17244
  }
17083
17245
  temp3 = static_cast< unsigned int >(val3);
17084
17246
  arg3 = &temp3;
17247
+ raise_if_lt_zero_after_asval(*arg2);
17248
+ raise_if_lt_zero_after_asval(*arg3);
17085
17249
  {
17086
17250
  try {
17087
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);
@@ -19165,6 +19329,10 @@ _wrap_Matrix_FrozenComplexD_f_partial(int argc, VALUE *argv, VALUE self) {
19165
19329
  }
19166
19330
  temp5 = static_cast< unsigned int >(val5);
19167
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);
19168
19336
  {
19169
19337
  try {
19170
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);
@@ -19217,6 +19385,7 @@ _wrap_Matrix_FrozenComplexD_f_row_vector(int argc, VALUE *argv, VALUE self) {
19217
19385
  }
19218
19386
  temp2 = static_cast< unsigned int >(val2);
19219
19387
  arg2 = &temp2;
19388
+ raise_if_lt_zero_after_asval(*arg2);
19220
19389
  {
19221
19390
  try {
19222
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);
@@ -19269,6 +19438,7 @@ _wrap_Matrix_FrozenComplexD_f_column_vector(int argc, VALUE *argv, VALUE self) {
19269
19438
  }
19270
19439
  temp2 = static_cast< unsigned int >(val2);
19271
19440
  arg2 = &temp2;
19441
+ raise_if_lt_zero_after_asval(*arg2);
19272
19442
  {
19273
19443
  try {
19274
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);
@@ -19403,6 +19573,8 @@ _wrap_MatrixComplexD_swap_rowsN___(int argc, VALUE *argv, VALUE self) {
19403
19573
  }
19404
19574
  temp3 = static_cast< unsigned int >(val3);
19405
19575
  arg3 = &temp3;
19576
+ raise_if_lt_zero_after_asval(*arg2);
19577
+ raise_if_lt_zero_after_asval(*arg3);
19406
19578
  {
19407
19579
  try {
19408
19580
  result = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *) &(arg1)->swapRows((unsigned int const &)*arg2,(unsigned int const &)*arg3);
@@ -19465,6 +19637,8 @@ _wrap_MatrixComplexD_swap_columnsN___(int argc, VALUE *argv, VALUE self) {
19465
19637
  }
19466
19638
  temp3 = static_cast< unsigned int >(val3);
19467
19639
  arg3 = &temp3;
19640
+ raise_if_lt_zero_after_asval(*arg2);
19641
+ raise_if_lt_zero_after_asval(*arg3);
19468
19642
  {
19469
19643
  try {
19470
19644
  result = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *) &(arg1)->swapColumns((unsigned int const &)*arg2,(unsigned int const &)*arg3);
@@ -19525,6 +19699,8 @@ _wrap_new_MatrixComplexD__SWIG_0(int argc, VALUE *argv, VALUE self) {
19525
19699
  {
19526
19700
  arg3 = &argv[2];
19527
19701
  }
19702
+ raise_if_lt_zero_after_asval(*arg1);
19703
+ raise_if_lt_zero_after_asval(*arg2);
19528
19704
  {
19529
19705
  try {
19530
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);
@@ -19569,6 +19745,8 @@ _wrap_new_MatrixComplexD__SWIG_1(int argc, VALUE *argv, VALUE self) {
19569
19745
  }
19570
19746
  temp2 = static_cast< unsigned int >(val2);
19571
19747
  arg2 = &temp2;
19748
+ raise_if_lt_zero_after_asval(*arg1);
19749
+ raise_if_lt_zero_after_asval(*arg2);
19572
19750
  {
19573
19751
  try {
19574
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);
@@ -19621,6 +19799,8 @@ _wrap_new_MatrixComplexD__SWIG_2(int argc, VALUE *argv, VALUE self) {
19621
19799
  SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "Complex< double > const *","Matrix<(Complex<(double)>,Array2D_Dense<(Complex<(double)>)>)>", 3, argv[2] ));
19622
19800
  }
19623
19801
  arg3 = reinterpret_cast< Complex< double > * >(argp3);
19802
+ raise_if_lt_zero_after_asval(*arg1);
19803
+ raise_if_lt_zero_after_asval(*arg2);
19624
19804
  {
19625
19805
  try {
19626
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);
@@ -19828,6 +20008,8 @@ _wrap_MatrixComplexD___setitem__(int argc, VALUE *argv, VALUE self) {
19828
20008
  SWIG_exception(SWIG_TypeError, "in method '__setitem__', expecting type Complex< double >");
19829
20009
  }
19830
20010
  }
20011
+ raise_if_lt_zero_after_asval(*arg2);
20012
+ raise_if_lt_zero_after_asval(*arg3);
19831
20013
  {
19832
20014
  try {
19833
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);
@@ -19880,6 +20062,7 @@ _wrap_MatrixComplexD_scalar(int argc, VALUE *argv, VALUE self) {
19880
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 >");
19881
20063
  }
19882
20064
  }
20065
+ raise_if_lt_zero_after_asval(*arg1);
19883
20066
  {
19884
20067
  try {
19885
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);
@@ -19924,6 +20107,7 @@ _wrap_MatrixComplexD_I(int argc, VALUE *argv, VALUE self) {
19924
20107
  }
19925
20108
  temp1 = static_cast< unsigned int >(val1);
19926
20109
  arg1 = &temp1;
20110
+ raise_if_lt_zero_after_asval(*arg1);
19927
20111
  {
19928
20112
  try {
19929
20113
  result = Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg__getI((unsigned int const &)*arg1);
@@ -20386,6 +20570,81 @@ fail:
20386
20570
  }
20387
20571
 
20388
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
+
20389
20648
  SWIGINTERN void
20390
20649
  free_Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg_(void *self) {
20391
20650
  Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *arg1 = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *)self;
@@ -20416,6 +20675,7 @@ static swig_type_info _swigt__p_f_r_q_const__Complex__double___p_Complex__double
20416
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};
20417
20676
  static swig_type_info _swigt__p_self_t = {"_p_self_t", "self_t *", 0, 0, (void*)0, 0};
20418
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};
20419
20679
 
20420
20680
  static swig_type_info *swig_type_initial[] = {
20421
20681
  &_swigt__p_ComplexT_double_t,
@@ -20433,6 +20693,7 @@ static swig_type_info *swig_type_initial[] = {
20433
20693
  &_swigt__p_f_r_q_const__double_p_double_r_q_const__unsigned_int_r_q_const__unsigned_int__void,
20434
20694
  &_swigt__p_self_t,
20435
20695
  &_swigt__p_swig__GC_VALUE,
20696
+ &_swigt__p_unsigned_int,
20436
20697
  };
20437
20698
 
20438
20699
  static swig_cast_info _swigc__p_ComplexT_double_t[] = { {&_swigt__p_ComplexT_double_t, 0, 0, 0},{0, 0, 0, 0}};
@@ -20450,6 +20711,7 @@ static swig_cast_info _swigc__p_f_r_q_const__Complex__double___p_Complex__double
20450
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}};
20451
20712
  static swig_cast_info _swigc__p_self_t[] = { {&_swigt__p_self_t, 0, 0, 0},{0, 0, 0, 0}};
20452
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}};
20453
20715
 
20454
20716
  static swig_cast_info *swig_cast_initial[] = {
20455
20717
  _swigc__p_ComplexT_double_t,
@@ -20467,6 +20729,7 @@ static swig_cast_info *swig_cast_initial[] = {
20467
20729
  _swigc__p_f_r_q_const__double_p_double_r_q_const__unsigned_int_r_q_const__unsigned_int__void,
20468
20730
  _swigc__p_self_t,
20469
20731
  _swigc__p_swig__GC_VALUE,
20732
+ _swigc__p_unsigned_int,
20470
20733
  };
20471
20734
 
20472
20735
 
@@ -20901,6 +21164,7 @@ SWIGEXPORT void Init_SylphideMath(void) {
20901
21164
  rb_define_alias(SwigClassMatrixD.klass, "collect!", "map!");
20902
21165
  rb_define_alias(SwigClassMatrixD.klass, "map_with_index!", "map!");
20903
21166
  rb_define_alias(SwigClassMatrixD.klass, "collect_with_index!", "map!");
21167
+ rb_define_method(SwigClassMatrixD.klass, "resize!", VALUEFUNC(_wrap_MatrixD_resizeN___), -1);
20904
21168
  SwigClassMatrixD.mark = 0;
20905
21169
  SwigClassMatrixD.destroy = (void (*)(void *)) free_Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg_;
20906
21170
  SwigClassMatrixD.trackObjects = 0;
@@ -21034,6 +21298,7 @@ SWIGEXPORT void Init_SylphideMath(void) {
21034
21298
  rb_define_alias(SwigClassMatrixComplexD.klass, "collect!", "map!");
21035
21299
  rb_define_alias(SwigClassMatrixComplexD.klass, "map_with_index!", "map!");
21036
21300
  rb_define_alias(SwigClassMatrixComplexD.klass, "collect_with_index!", "map!");
21301
+ rb_define_method(SwigClassMatrixComplexD.klass, "resize!", VALUEFUNC(_wrap_MatrixComplexD_resizeN___), -1);
21037
21302
  SwigClassMatrixComplexD.mark = 0;
21038
21303
  SwigClassMatrixComplexD.destroy = (void (*)(void *)) free_Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg_;
21039
21304
  SwigClassMatrixComplexD.trackObjects = 0;