gps_pvt 0.3.0 → 0.4.1

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.
@@ -3653,27 +3653,30 @@ SWIGINTERN Matrix< double,Array2D_Dense< double > > Matrix_Sl_double_Sc_Array2D_
3653
3653
  return Matrix<double, Array2D_Dense<double> >(
3654
3654
  Matrix_Frozen<double, Array2D_Dense< double >, MatrixViewBase< >>::getI(size));
3655
3655
  }
3656
- SWIGINTERN Matrix< double,Array2D_Dense< double > >::self_t &Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg__replace_Sl_T_Sc_Array2D_Dense_Sl_T_Sg__Sc_MatViewBase_Sg___SWIG_1(Matrix< double,Array2D_Dense< double > > *self,Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewBase< > > const &matrix){
3657
- return self->replace(matrix);
3656
+ SWIGINTERN void Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg__swap_rows(Matrix< double,Array2D_Dense< double > > *self,Matrix< double,Array2D_Dense< double > >::self_t *self_p,unsigned int const &r1,unsigned int const &r2){
3657
+ self->swapRows(r1, r2);
3658
3658
  }
3659
- SWIGINTERN Matrix< double,Array2D_Dense< double > >::self_t &Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg__replace_Sl_T_Sc_Array2D_Dense_Sl_T_Sg__Sc_MatView_f_Sg___SWIG_2(Matrix< double,Array2D_Dense< double > > *self,Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewFilter< MatrixViewBase< > > > const &matrix){
3660
- return self->replace(matrix);
3659
+ SWIGINTERN void Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg__swap_columns(Matrix< double,Array2D_Dense< double > > *self,Matrix< double,Array2D_Dense< double > >::self_t *self_p,unsigned int const &c1,unsigned int const &c2){
3660
+ self->swapColumns(c1, c2);
3661
3661
  }
3662
- SWIGINTERN Matrix< double,Array2D_Dense< double > >::self_t &Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg__replace__SWIG_3(Matrix< double,Array2D_Dense< double > > *self,void const *replacer=NULL){
3662
+ SWIGINTERN void Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg__replace_Sl_T_Sc_Array2D_Dense_Sl_T_Sg__Sc_MatViewBase_Sg___SWIG_1(Matrix< double,Array2D_Dense< double > > *self,Matrix< double,Array2D_Dense< double > >::self_t *self_p,Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewBase< > > const &matrix){
3663
+ self->replace(matrix);
3664
+ }
3665
+ SWIGINTERN void Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg__replace_Sl_T_Sc_Array2D_Dense_Sl_T_Sg__Sc_MatView_f_Sg___SWIG_2(Matrix< double,Array2D_Dense< double > > *self,Matrix< double,Array2D_Dense< double > >::self_t *self_p,Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewFilter< MatrixViewBase< > > > const &matrix){
3666
+ self->replace(matrix);
3667
+ }
3668
+ SWIGINTERN void Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg__replace__SWIG_3(Matrix< double,Array2D_Dense< double > > *self,Matrix< double,Array2D_Dense< double > >::self_t *self_p,void const *replacer=NULL){
3663
3669
  if(!MatrixUtil::replace(*self, replacer)){
3664
3670
  throw std::runtime_error("Unsupported replacement");
3665
3671
  }
3666
- return *self;
3667
3672
  }
3668
- SWIGINTERN Matrix< double,Array2D_Dense< double > >::self_t &Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg__replace__SWIG_5(Matrix< double,Array2D_Dense< double > > *self,double const *serialized){
3673
+ SWIGINTERN void Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg__replace__SWIG_5(Matrix< double,Array2D_Dense< double > > *self,Matrix< double,Array2D_Dense< double > >::self_t *self_p,double const *serialized){
3669
3674
  if(!MatrixUtil::replace(*self, serialized)){
3670
3675
  throw std::runtime_error("Unsupported replacement");
3671
3676
  }
3672
- return *self;
3673
3677
  }
3674
- SWIGINTERN Matrix< double,Array2D_Dense< double > >::self_t &Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg__map_bang__SWIG_0(Matrix< double,Array2D_Dense< double > > *self,void (*each_func)(double const &,double *,unsigned int const &,unsigned int const &),MatrixUtil::each_which_t const &each_which=MatrixUtil::EACH_ALL){
3678
+ SWIGINTERN void Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg__map_bang__SWIG_0(Matrix< double,Array2D_Dense< double > > *self,Matrix< double,Array2D_Dense< double > >::self_t *self_p,void (*each_func)(double const &,double *,unsigned int const &,unsigned int const &),MatrixUtil::each_which_t const &each_which=MatrixUtil::EACH_ALL){
3675
3679
  MatrixUtil::each(*self, each_func, each_which, self);
3676
- return *self;
3677
3680
  }
3678
3681
  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
3682
  unsigned int r(r_p ? *r_p : self->rows()), c(c_p ? *c_p : self->columns());
@@ -4124,27 +4127,30 @@ SWIGINTERN Matrix< Complex< double >,Array2D_Dense< Complex< double > > > Matrix
4124
4127
  return Matrix<Complex< double >, Array2D_Dense<Complex< double >> >(
4125
4128
  Matrix_Frozen<Complex< double >, Array2D_Dense< Complex< double > >, MatrixViewBase< >>::getI(size));
4126
4129
  }
4127
- SWIGINTERN Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t &Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg__replace_Sl_T_Sc_Array2D_Dense_Sl_T_Sg__Sc_MatViewBase_Sg___SWIG_1(Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *self,Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewBase< > > const &matrix){
4128
- return self->replace(matrix);
4130
+ SWIGINTERN void Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg__swap_rows(Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *self,Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *self_p,unsigned int const &r1,unsigned int const &r2){
4131
+ self->swapRows(r1, r2);
4132
+ }
4133
+ SWIGINTERN void Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg__swap_columns(Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *self,Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *self_p,unsigned int const &c1,unsigned int const &c2){
4134
+ self->swapColumns(c1, c2);
4129
4135
  }
4130
- SWIGINTERN Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t &Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg__replace_Sl_T_Sc_Array2D_Dense_Sl_T_Sg__Sc_MatView_f_Sg___SWIG_2(Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *self,Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewFilter< MatrixViewBase< > > > const &matrix){
4131
- return self->replace(matrix);
4136
+ SWIGINTERN void Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg__replace_Sl_T_Sc_Array2D_Dense_Sl_T_Sg__Sc_MatViewBase_Sg___SWIG_1(Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *self,Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *self_p,Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewBase< > > const &matrix){
4137
+ self->replace(matrix);
4132
4138
  }
4133
- SWIGINTERN Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t &Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg__replace__SWIG_3(Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *self,void const *replacer=NULL){
4139
+ SWIGINTERN void Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg__replace_Sl_T_Sc_Array2D_Dense_Sl_T_Sg__Sc_MatView_f_Sg___SWIG_2(Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *self,Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *self_p,Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewFilter< MatrixViewBase< > > > const &matrix){
4140
+ self->replace(matrix);
4141
+ }
4142
+ SWIGINTERN void Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg__replace__SWIG_3(Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *self,Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *self_p,void const *replacer=NULL){
4134
4143
  if(!MatrixUtil::replace(*self, replacer)){
4135
4144
  throw std::runtime_error("Unsupported replacement");
4136
4145
  }
4137
- return *self;
4138
4146
  }
4139
- SWIGINTERN Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t &Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg__replace__SWIG_5(Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *self,Complex< double > const *serialized){
4147
+ SWIGINTERN void Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg__replace__SWIG_5(Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *self,Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *self_p,Complex< double > const *serialized){
4140
4148
  if(!MatrixUtil::replace(*self, serialized)){
4141
4149
  throw std::runtime_error("Unsupported replacement");
4142
4150
  }
4143
- return *self;
4144
4151
  }
4145
- SWIGINTERN Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t &Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg__map_bang__SWIG_0(Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *self,void (*each_func)(Complex< double > const &,Complex< double > *,unsigned int const &,unsigned int const &),MatrixUtil::each_which_t const &each_which=MatrixUtil::EACH_ALL){
4152
+ SWIGINTERN void Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg__map_bang__SWIG_0(Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *self,Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *self_p,void (*each_func)(Complex< double > const &,Complex< double > *,unsigned int const &,unsigned int const &),MatrixUtil::each_which_t const &each_which=MatrixUtil::EACH_ALL){
4146
4153
  MatrixUtil::each(*self, each_func, each_which, self);
4147
- return *self;
4148
4154
  }
4149
4155
  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
4156
  unsigned int r(r_p ? *r_p : self->rows()), c(c_p ? *c_p : self->columns());
@@ -12314,134 +12320,6 @@ free_Matrix_Frozen_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sc_MatView_f_Sg_(voi
12314
12320
  */
12315
12321
  static swig_class SwigClassMatrixD;
12316
12322
 
12317
- /*
12318
- Document-method: GPS_PVT::SylphideMath::MatrixD.swap_rows
12319
-
12320
- call-seq:
12321
- swap_rows(unsigned int const & row1, unsigned int const & row2) -> MatrixD
12322
-
12323
- An instance method.
12324
-
12325
- */
12326
- SWIGINTERN VALUE
12327
- _wrap_MatrixD_swap_rowsN___(int argc, VALUE *argv, VALUE self) {
12328
- Matrix< double,Array2D_Dense< double > > *arg1 = (Matrix< double,Array2D_Dense< double > > *) 0 ;
12329
- unsigned int *arg2 = 0 ;
12330
- unsigned int *arg3 = 0 ;
12331
- void *argp1 = 0 ;
12332
- int res1 = 0 ;
12333
- unsigned int temp2 ;
12334
- unsigned int val2 ;
12335
- int ecode2 = 0 ;
12336
- unsigned int temp3 ;
12337
- unsigned int val3 ;
12338
- int ecode3 = 0 ;
12339
- Matrix< double,Array2D_Dense< double > >::self_t *result = 0 ;
12340
- VALUE vresult = Qnil;
12341
-
12342
- if ((argc < 2) || (argc > 2)) {
12343
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
12344
- }
12345
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_MatrixT_double_Array2D_DenseT_double_t_MatrixViewBaseT_t_t, 0 | 0 );
12346
- if (!SWIG_IsOK(res1)) {
12347
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Matrix< double,Array2D_Dense< double > > *","swapRows", 1, self ));
12348
- }
12349
- arg1 = reinterpret_cast< Matrix< double,Array2D_Dense< double > > * >(argp1);
12350
- ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
12351
- if (!SWIG_IsOK(ecode2)) {
12352
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","swapRows", 2, argv[0] ));
12353
- }
12354
- temp2 = static_cast< unsigned int >(val2);
12355
- arg2 = &temp2;
12356
- ecode3 = SWIG_AsVal_unsigned_SS_int(argv[1], &val3);
12357
- if (!SWIG_IsOK(ecode3)) {
12358
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","swapRows", 3, argv[1] ));
12359
- }
12360
- temp3 = static_cast< unsigned int >(val3);
12361
- arg3 = &temp3;
12362
- raise_if_lt_zero_after_asval(*arg2);
12363
- raise_if_lt_zero_after_asval(*arg3);
12364
- {
12365
- try {
12366
- result = (Matrix< double,Array2D_Dense< double > >::self_t *) &(arg1)->swapRows((unsigned int const &)*arg2,(unsigned int const &)*arg3);
12367
- } catch (const native_exception &e) {
12368
- e.regenerate();
12369
- SWIG_fail;
12370
- } catch (const std::exception& e) {
12371
- SWIG_exception_fail(SWIG_RuntimeError, e.what());
12372
- }
12373
- }
12374
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MatrixT_double_Array2D_DenseT_double_t_MatrixViewBaseT_t_t, 0 | 0 );
12375
- return vresult;
12376
- fail:
12377
- return Qnil;
12378
- }
12379
-
12380
-
12381
- /*
12382
- Document-method: GPS_PVT::SylphideMath::MatrixD.swap_columns
12383
-
12384
- call-seq:
12385
- swap_columns(unsigned int const & column1, unsigned int const & column2) -> MatrixD
12386
-
12387
- An instance method.
12388
-
12389
- */
12390
- SWIGINTERN VALUE
12391
- _wrap_MatrixD_swap_columnsN___(int argc, VALUE *argv, VALUE self) {
12392
- Matrix< double,Array2D_Dense< double > > *arg1 = (Matrix< double,Array2D_Dense< double > > *) 0 ;
12393
- unsigned int *arg2 = 0 ;
12394
- unsigned int *arg3 = 0 ;
12395
- void *argp1 = 0 ;
12396
- int res1 = 0 ;
12397
- unsigned int temp2 ;
12398
- unsigned int val2 ;
12399
- int ecode2 = 0 ;
12400
- unsigned int temp3 ;
12401
- unsigned int val3 ;
12402
- int ecode3 = 0 ;
12403
- Matrix< double,Array2D_Dense< double > >::self_t *result = 0 ;
12404
- VALUE vresult = Qnil;
12405
-
12406
- if ((argc < 2) || (argc > 2)) {
12407
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
12408
- }
12409
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_MatrixT_double_Array2D_DenseT_double_t_MatrixViewBaseT_t_t, 0 | 0 );
12410
- if (!SWIG_IsOK(res1)) {
12411
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Matrix< double,Array2D_Dense< double > > *","swapColumns", 1, self ));
12412
- }
12413
- arg1 = reinterpret_cast< Matrix< double,Array2D_Dense< double > > * >(argp1);
12414
- ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
12415
- if (!SWIG_IsOK(ecode2)) {
12416
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","swapColumns", 2, argv[0] ));
12417
- }
12418
- temp2 = static_cast< unsigned int >(val2);
12419
- arg2 = &temp2;
12420
- ecode3 = SWIG_AsVal_unsigned_SS_int(argv[1], &val3);
12421
- if (!SWIG_IsOK(ecode3)) {
12422
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","swapColumns", 3, argv[1] ));
12423
- }
12424
- temp3 = static_cast< unsigned int >(val3);
12425
- arg3 = &temp3;
12426
- raise_if_lt_zero_after_asval(*arg2);
12427
- raise_if_lt_zero_after_asval(*arg3);
12428
- {
12429
- try {
12430
- result = (Matrix< double,Array2D_Dense< double > >::self_t *) &(arg1)->swapColumns((unsigned int const &)*arg2,(unsigned int const &)*arg3);
12431
- } catch (const native_exception &e) {
12432
- e.regenerate();
12433
- SWIG_fail;
12434
- } catch (const std::exception& e) {
12435
- SWIG_exception_fail(SWIG_RuntimeError, e.what());
12436
- }
12437
- }
12438
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MatrixT_double_Array2D_DenseT_double_t_MatrixViewBaseT_t_t, 0 | 0 );
12439
- return vresult;
12440
- fail:
12441
- return Qnil;
12442
- }
12443
-
12444
-
12445
12323
  /*
12446
12324
  Document-method: GPS_PVT::SylphideMath::MatrixD.new
12447
12325
 
@@ -12916,47 +12794,56 @@ fail:
12916
12794
 
12917
12795
 
12918
12796
  /*
12919
- Document-method: GPS_PVT::SylphideMath::MatrixD.replace!
12797
+ Document-method: GPS_PVT::SylphideMath::MatrixD.swap_rows
12920
12798
 
12921
12799
  call-seq:
12922
- replace!(matrix) -> MatrixD
12923
- replace!(matrix) -> MatrixD
12924
- replace!(replacer=nil) -> MatrixD
12925
- replace! -> MatrixD
12926
- replace!(serialized) -> MatrixD
12800
+ swap_rows(unsigned int const & r1, unsigned int const & r2)
12801
+
12802
+ An instance method.
12927
12803
 
12928
- Replace all or a portion of the MatrixD.
12929
12804
  */
12930
12805
  SWIGINTERN VALUE
12931
- _wrap_MatrixD_replaceN_____SWIG_1(int argc, VALUE *argv, VALUE self) {
12806
+ _wrap_MatrixD_swap_rowsN___(int argc, VALUE *argv, VALUE self) {
12932
12807
  Matrix< double,Array2D_Dense< double > > *arg1 = (Matrix< double,Array2D_Dense< double > > *) 0 ;
12933
- Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewBase< > > *arg2 = 0 ;
12808
+ Matrix< double,Array2D_Dense< double > >::self_t *arg2 = (Matrix< double,Array2D_Dense< double > >::self_t *) 0 ;
12809
+ unsigned int *arg3 = 0 ;
12810
+ unsigned int *arg4 = 0 ;
12934
12811
  void *argp1 = 0 ;
12935
12812
  int res1 = 0 ;
12936
- void *argp2 ;
12937
- int res2 = 0 ;
12938
- Matrix< double,Array2D_Dense< double > >::self_t *result = 0 ;
12813
+ unsigned int temp3 ;
12814
+ unsigned int val3 ;
12815
+ int ecode3 = 0 ;
12816
+ unsigned int temp4 ;
12817
+ unsigned int val4 ;
12818
+ int ecode4 = 0 ;
12939
12819
  VALUE vresult = Qnil;
12940
12820
 
12941
- if ((argc < 1) || (argc > 1)) {
12942
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
12821
+
12822
+ if ((argc < 2) || (argc > 2)) {
12823
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
12943
12824
  }
12944
12825
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_MatrixT_double_Array2D_DenseT_double_t_MatrixViewBaseT_t_t, 0 | 0 );
12945
12826
  if (!SWIG_IsOK(res1)) {
12946
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Matrix< double,Array2D_Dense< double > > *","replace<(T,Array2D_Dense<(T)>,MatViewBase)>", 1, self ));
12827
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Matrix< double,Array2D_Dense< double > > *","swap_rows", 1, self ));
12947
12828
  }
12948
12829
  arg1 = reinterpret_cast< Matrix< double,Array2D_Dense< double > > * >(argp1);
12949
- res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Matrix_FrozenT_double_Array2D_DenseT_double_t_MatrixViewBaseT_t_t, 0 );
12950
- if (!SWIG_IsOK(res2)) {
12951
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewBase< > > const &","replace<(T,Array2D_Dense<(T)>,MatViewBase)>", 2, argv[0] ));
12952
- }
12953
- if (!argp2) {
12954
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewBase< > > const &","replace<(T,Array2D_Dense<(T)>,MatViewBase)>", 2, argv[0]));
12955
- }
12956
- arg2 = reinterpret_cast< Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewBase< > > * >(argp2);
12830
+ ecode3 = SWIG_AsVal_unsigned_SS_int(argv[0], &val3);
12831
+ if (!SWIG_IsOK(ecode3)) {
12832
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","swap_rows", 3, argv[0] ));
12833
+ }
12834
+ temp3 = static_cast< unsigned int >(val3);
12835
+ arg3 = &temp3;
12836
+ ecode4 = SWIG_AsVal_unsigned_SS_int(argv[1], &val4);
12837
+ if (!SWIG_IsOK(ecode4)) {
12838
+ SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","swap_rows", 4, argv[1] ));
12839
+ }
12840
+ temp4 = static_cast< unsigned int >(val4);
12841
+ arg4 = &temp4;
12842
+ raise_if_lt_zero_after_asval(*arg3);
12843
+ raise_if_lt_zero_after_asval(*arg4);
12957
12844
  {
12958
12845
  try {
12959
- result = (Matrix< double,Array2D_Dense< double > >::self_t *) &Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg__replace_Sl_T_Sc_Array2D_Dense_Sl_T_Sg__Sc_MatViewBase_Sg___SWIG_1(arg1,(Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewBase< > > const &)*arg2);
12846
+ Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg__swap_rows(arg1,arg2,(unsigned int const &)*arg3,(unsigned int const &)*arg4);
12960
12847
  } catch (const native_exception &e) {
12961
12848
  e.regenerate();
12962
12849
  SWIG_fail;
@@ -12971,36 +12858,57 @@ fail:
12971
12858
  }
12972
12859
 
12973
12860
 
12861
+ /*
12862
+ Document-method: GPS_PVT::SylphideMath::MatrixD.swap_columns
12863
+
12864
+ call-seq:
12865
+ swap_columns(unsigned int const & c1, unsigned int const & c2)
12866
+
12867
+ An instance method.
12868
+
12869
+ */
12974
12870
  SWIGINTERN VALUE
12975
- _wrap_MatrixD_replaceN_____SWIG_2(int argc, VALUE *argv, VALUE self) {
12871
+ _wrap_MatrixD_swap_columnsN___(int argc, VALUE *argv, VALUE self) {
12976
12872
  Matrix< double,Array2D_Dense< double > > *arg1 = (Matrix< double,Array2D_Dense< double > > *) 0 ;
12977
- Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewFilter< MatrixViewBase< > > > *arg2 = 0 ;
12873
+ Matrix< double,Array2D_Dense< double > >::self_t *arg2 = (Matrix< double,Array2D_Dense< double > >::self_t *) 0 ;
12874
+ unsigned int *arg3 = 0 ;
12875
+ unsigned int *arg4 = 0 ;
12978
12876
  void *argp1 = 0 ;
12979
12877
  int res1 = 0 ;
12980
- void *argp2 ;
12981
- int res2 = 0 ;
12982
- Matrix< double,Array2D_Dense< double > >::self_t *result = 0 ;
12878
+ unsigned int temp3 ;
12879
+ unsigned int val3 ;
12880
+ int ecode3 = 0 ;
12881
+ unsigned int temp4 ;
12882
+ unsigned int val4 ;
12883
+ int ecode4 = 0 ;
12983
12884
  VALUE vresult = Qnil;
12984
12885
 
12985
- if ((argc < 1) || (argc > 1)) {
12986
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
12886
+
12887
+ if ((argc < 2) || (argc > 2)) {
12888
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
12987
12889
  }
12988
12890
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_MatrixT_double_Array2D_DenseT_double_t_MatrixViewBaseT_t_t, 0 | 0 );
12989
12891
  if (!SWIG_IsOK(res1)) {
12990
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Matrix< double,Array2D_Dense< double > > *","replace<(T,Array2D_Dense<(T)>,MatView_f)>", 1, self ));
12892
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Matrix< double,Array2D_Dense< double > > *","swap_columns", 1, self ));
12991
12893
  }
12992
12894
  arg1 = reinterpret_cast< Matrix< double,Array2D_Dense< double > > * >(argp1);
12993
- res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Matrix_FrozenT_double_Array2D_DenseT_double_t_MatrixViewFilterT_MatrixViewBaseT_t_t_t, 0 );
12994
- if (!SWIG_IsOK(res2)) {
12995
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewFilter< MatrixViewBase< > > > const &","replace<(T,Array2D_Dense<(T)>,MatView_f)>", 2, argv[0] ));
12996
- }
12997
- if (!argp2) {
12998
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewFilter< MatrixViewBase< > > > const &","replace<(T,Array2D_Dense<(T)>,MatView_f)>", 2, argv[0]));
12999
- }
13000
- arg2 = reinterpret_cast< Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewFilter< MatrixViewBase< > > > * >(argp2);
12895
+ ecode3 = SWIG_AsVal_unsigned_SS_int(argv[0], &val3);
12896
+ if (!SWIG_IsOK(ecode3)) {
12897
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","swap_columns", 3, argv[0] ));
12898
+ }
12899
+ temp3 = static_cast< unsigned int >(val3);
12900
+ arg3 = &temp3;
12901
+ ecode4 = SWIG_AsVal_unsigned_SS_int(argv[1], &val4);
12902
+ if (!SWIG_IsOK(ecode4)) {
12903
+ SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","swap_columns", 4, argv[1] ));
12904
+ }
12905
+ temp4 = static_cast< unsigned int >(val4);
12906
+ arg4 = &temp4;
12907
+ raise_if_lt_zero_after_asval(*arg3);
12908
+ raise_if_lt_zero_after_asval(*arg4);
13001
12909
  {
13002
12910
  try {
13003
- result = (Matrix< double,Array2D_Dense< double > >::self_t *) &Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg__replace_Sl_T_Sc_Array2D_Dense_Sl_T_Sg__Sc_MatView_f_Sg___SWIG_2(arg1,(Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewFilter< MatrixViewBase< > > > const &)*arg2);
12911
+ Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg__swap_columns(arg1,arg2,(unsigned int const &)*arg3,(unsigned int const &)*arg4);
13004
12912
  } catch (const native_exception &e) {
13005
12913
  e.regenerate();
13006
12914
  SWIG_fail;
@@ -13015,29 +12923,49 @@ fail:
13015
12923
  }
13016
12924
 
13017
12925
 
12926
+ /*
12927
+ Document-method: GPS_PVT::SylphideMath::MatrixD.replace!
12928
+
12929
+ call-seq:
12930
+ replace!(matrix)
12931
+ replace!(matrix)
12932
+ replace!(replacer=nil)
12933
+ replace!
12934
+ replace!(serialized)
12935
+
12936
+ Replace all or a portion of the MatrixD.
12937
+ */
13018
12938
  SWIGINTERN VALUE
13019
- _wrap_MatrixD_replaceN_____SWIG_3(int argc, VALUE *argv, VALUE self) {
12939
+ _wrap_MatrixD_replaceN_____SWIG_1(int argc, VALUE *argv, VALUE self) {
13020
12940
  Matrix< double,Array2D_Dense< double > > *arg1 = (Matrix< double,Array2D_Dense< double > > *) 0 ;
13021
- void *arg2 = (void *) 0 ;
12941
+ Matrix< double,Array2D_Dense< double > >::self_t *arg2 = (Matrix< double,Array2D_Dense< double > >::self_t *) 0 ;
12942
+ Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewBase< > > *arg3 = 0 ;
13022
12943
  void *argp1 = 0 ;
13023
12944
  int res1 = 0 ;
13024
- Matrix< double,Array2D_Dense< double > >::self_t *result = 0 ;
12945
+ void *argp3 ;
12946
+ int res3 = 0 ;
13025
12947
  VALUE vresult = Qnil;
13026
12948
 
12949
+
13027
12950
  if ((argc < 1) || (argc > 1)) {
13028
12951
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
13029
12952
  }
13030
12953
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_MatrixT_double_Array2D_DenseT_double_t_MatrixViewBaseT_t_t, 0 | 0 );
13031
12954
  if (!SWIG_IsOK(res1)) {
13032
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Matrix< double,Array2D_Dense< double > > *","replace", 1, self ));
12955
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Matrix< double,Array2D_Dense< double > > *","replace<(T,Array2D_Dense<(T)>,MatViewBase)>", 1, self ));
13033
12956
  }
13034
12957
  arg1 = reinterpret_cast< Matrix< double,Array2D_Dense< double > > * >(argp1);
13035
- {
13036
- arg2 = &argv[0];
12958
+ res3 = SWIG_ConvertPtr(argv[0], &argp3, SWIGTYPE_p_Matrix_FrozenT_double_Array2D_DenseT_double_t_MatrixViewBaseT_t_t, 0 );
12959
+ if (!SWIG_IsOK(res3)) {
12960
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewBase< > > const &","replace<(T,Array2D_Dense<(T)>,MatViewBase)>", 3, argv[0] ));
13037
12961
  }
12962
+ if (!argp3) {
12963
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewBase< > > const &","replace<(T,Array2D_Dense<(T)>,MatViewBase)>", 3, argv[0]));
12964
+ }
12965
+ arg3 = reinterpret_cast< Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewBase< > > * >(argp3);
13038
12966
  {
13039
12967
  try {
13040
- result = (Matrix< double,Array2D_Dense< double > >::self_t *) &Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg__replace__SWIG_3(arg1,(void const *)arg2);
12968
+ Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg__replace_Sl_T_Sc_Array2D_Dense_Sl_T_Sg__Sc_MatViewBase_Sg___SWIG_1(arg1,arg2,(Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewBase< > > const &)*arg3);
13041
12969
  } catch (const native_exception &e) {
13042
12970
  e.regenerate();
13043
12971
  SWIG_fail;
@@ -13053,24 +12981,36 @@ fail:
13053
12981
 
13054
12982
 
13055
12983
  SWIGINTERN VALUE
13056
- _wrap_MatrixD_replaceN_____SWIG_4(int argc, VALUE *argv, VALUE self) {
12984
+ _wrap_MatrixD_replaceN_____SWIG_2(int argc, VALUE *argv, VALUE self) {
13057
12985
  Matrix< double,Array2D_Dense< double > > *arg1 = (Matrix< double,Array2D_Dense< double > > *) 0 ;
12986
+ Matrix< double,Array2D_Dense< double > >::self_t *arg2 = (Matrix< double,Array2D_Dense< double > >::self_t *) 0 ;
12987
+ Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewFilter< MatrixViewBase< > > > *arg3 = 0 ;
13058
12988
  void *argp1 = 0 ;
13059
12989
  int res1 = 0 ;
13060
- Matrix< double,Array2D_Dense< double > >::self_t *result = 0 ;
12990
+ void *argp3 ;
12991
+ int res3 = 0 ;
13061
12992
  VALUE vresult = Qnil;
13062
12993
 
13063
- if ((argc < 0) || (argc > 0)) {
13064
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
12994
+
12995
+ if ((argc < 1) || (argc > 1)) {
12996
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
13065
12997
  }
13066
12998
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_MatrixT_double_Array2D_DenseT_double_t_MatrixViewBaseT_t_t, 0 | 0 );
13067
12999
  if (!SWIG_IsOK(res1)) {
13068
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Matrix< double,Array2D_Dense< double > > *","replace", 1, self ));
13000
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Matrix< double,Array2D_Dense< double > > *","replace<(T,Array2D_Dense<(T)>,MatView_f)>", 1, self ));
13069
13001
  }
13070
13002
  arg1 = reinterpret_cast< Matrix< double,Array2D_Dense< double > > * >(argp1);
13003
+ res3 = SWIG_ConvertPtr(argv[0], &argp3, SWIGTYPE_p_Matrix_FrozenT_double_Array2D_DenseT_double_t_MatrixViewFilterT_MatrixViewBaseT_t_t_t, 0 );
13004
+ if (!SWIG_IsOK(res3)) {
13005
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewFilter< MatrixViewBase< > > > const &","replace<(T,Array2D_Dense<(T)>,MatView_f)>", 3, argv[0] ));
13006
+ }
13007
+ if (!argp3) {
13008
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewFilter< MatrixViewBase< > > > const &","replace<(T,Array2D_Dense<(T)>,MatView_f)>", 3, argv[0]));
13009
+ }
13010
+ arg3 = reinterpret_cast< Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewFilter< MatrixViewBase< > > > * >(argp3);
13071
13011
  {
13072
13012
  try {
13073
- result = (Matrix< double,Array2D_Dense< double > >::self_t *) &Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg__replace__SWIG_3(arg1);
13013
+ Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg__replace_Sl_T_Sc_Array2D_Dense_Sl_T_Sg__Sc_MatView_f_Sg___SWIG_2(arg1,arg2,(Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewFilter< MatrixViewBase< > > > const &)*arg3);
13074
13014
  } catch (const native_exception &e) {
13075
13015
  e.regenerate();
13076
13016
  SWIG_fail;
@@ -13086,16 +13026,15 @@ fail:
13086
13026
 
13087
13027
 
13088
13028
  SWIGINTERN VALUE
13089
- _wrap_MatrixD_replaceN_____SWIG_5(int argc, VALUE *argv, VALUE self) {
13029
+ _wrap_MatrixD_replaceN_____SWIG_3(int argc, VALUE *argv, VALUE self) {
13090
13030
  Matrix< double,Array2D_Dense< double > > *arg1 = (Matrix< double,Array2D_Dense< double > > *) 0 ;
13091
- double *arg2 = (double *) 0 ;
13031
+ Matrix< double,Array2D_Dense< double > >::self_t *arg2 = (Matrix< double,Array2D_Dense< double > >::self_t *) 0 ;
13032
+ void *arg3 = (void *) 0 ;
13092
13033
  void *argp1 = 0 ;
13093
13034
  int res1 = 0 ;
13094
- void *argp2 = 0 ;
13095
- int res2 = 0 ;
13096
- Matrix< double,Array2D_Dense< double > >::self_t *result = 0 ;
13097
13035
  VALUE vresult = Qnil;
13098
13036
 
13037
+
13099
13038
  if ((argc < 1) || (argc > 1)) {
13100
13039
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
13101
13040
  }
@@ -13104,14 +13043,12 @@ _wrap_MatrixD_replaceN_____SWIG_5(int argc, VALUE *argv, VALUE self) {
13104
13043
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Matrix< double,Array2D_Dense< double > > *","replace", 1, self ));
13105
13044
  }
13106
13045
  arg1 = reinterpret_cast< Matrix< double,Array2D_Dense< double > > * >(argp1);
13107
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_double, 0 | 0 );
13108
- if (!SWIG_IsOK(res2)) {
13109
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "double const *","replace", 2, argv[0] ));
13046
+ {
13047
+ arg3 = &argv[0];
13110
13048
  }
13111
- arg2 = reinterpret_cast< double * >(argp2);
13112
13049
  {
13113
13050
  try {
13114
- result = (Matrix< double,Array2D_Dense< double > >::self_t *) &Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg__replace__SWIG_5(arg1,(double const *)arg2);
13051
+ Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg__replace__SWIG_3(arg1,arg2,(void const *)arg3);
13115
13052
  } catch (const native_exception &e) {
13116
13053
  e.regenerate();
13117
13054
  SWIG_fail;
@@ -13126,12 +13063,88 @@ fail:
13126
13063
  }
13127
13064
 
13128
13065
 
13129
- SWIGINTERN VALUE _wrap_MatrixD_replaceN___(int nargs, VALUE *args, VALUE self) {
13130
- int argc;
13131
- VALUE argv[3];
13132
- int ii;
13066
+ SWIGINTERN VALUE
13067
+ _wrap_MatrixD_replaceN_____SWIG_4(int argc, VALUE *argv, VALUE self) {
13068
+ Matrix< double,Array2D_Dense< double > > *arg1 = (Matrix< double,Array2D_Dense< double > > *) 0 ;
13069
+ Matrix< double,Array2D_Dense< double > >::self_t *arg2 = (Matrix< double,Array2D_Dense< double > >::self_t *) 0 ;
13070
+ void *argp1 = 0 ;
13071
+ int res1 = 0 ;
13072
+ VALUE vresult = Qnil;
13133
13073
 
13134
- argc = nargs + 1;
13074
+
13075
+ if ((argc < 0) || (argc > 0)) {
13076
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
13077
+ }
13078
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_MatrixT_double_Array2D_DenseT_double_t_MatrixViewBaseT_t_t, 0 | 0 );
13079
+ if (!SWIG_IsOK(res1)) {
13080
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Matrix< double,Array2D_Dense< double > > *","replace", 1, self ));
13081
+ }
13082
+ arg1 = reinterpret_cast< Matrix< double,Array2D_Dense< double > > * >(argp1);
13083
+ {
13084
+ try {
13085
+ Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg__replace__SWIG_3(arg1,arg2);
13086
+ } catch (const native_exception &e) {
13087
+ e.regenerate();
13088
+ SWIG_fail;
13089
+ } catch (const std::exception& e) {
13090
+ SWIG_exception_fail(SWIG_RuntimeError, e.what());
13091
+ }
13092
+ }
13093
+ vresult = self;
13094
+ return vresult;
13095
+ fail:
13096
+ return Qnil;
13097
+ }
13098
+
13099
+
13100
+ SWIGINTERN VALUE
13101
+ _wrap_MatrixD_replaceN_____SWIG_5(int argc, VALUE *argv, VALUE self) {
13102
+ Matrix< double,Array2D_Dense< double > > *arg1 = (Matrix< double,Array2D_Dense< double > > *) 0 ;
13103
+ Matrix< double,Array2D_Dense< double > >::self_t *arg2 = (Matrix< double,Array2D_Dense< double > >::self_t *) 0 ;
13104
+ double *arg3 = (double *) 0 ;
13105
+ void *argp1 = 0 ;
13106
+ int res1 = 0 ;
13107
+ void *argp3 = 0 ;
13108
+ int res3 = 0 ;
13109
+ VALUE vresult = Qnil;
13110
+
13111
+
13112
+ if ((argc < 1) || (argc > 1)) {
13113
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
13114
+ }
13115
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_MatrixT_double_Array2D_DenseT_double_t_MatrixViewBaseT_t_t, 0 | 0 );
13116
+ if (!SWIG_IsOK(res1)) {
13117
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Matrix< double,Array2D_Dense< double > > *","replace", 1, self ));
13118
+ }
13119
+ arg1 = reinterpret_cast< Matrix< double,Array2D_Dense< double > > * >(argp1);
13120
+ res3 = SWIG_ConvertPtr(argv[0], &argp3,SWIGTYPE_p_double, 0 | 0 );
13121
+ if (!SWIG_IsOK(res3)) {
13122
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "double const *","replace", 3, argv[0] ));
13123
+ }
13124
+ arg3 = reinterpret_cast< double * >(argp3);
13125
+ {
13126
+ try {
13127
+ Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg__replace__SWIG_5(arg1,arg2,(double const *)arg3);
13128
+ } catch (const native_exception &e) {
13129
+ e.regenerate();
13130
+ SWIG_fail;
13131
+ } catch (const std::exception& e) {
13132
+ SWIG_exception_fail(SWIG_RuntimeError, e.what());
13133
+ }
13134
+ }
13135
+ vresult = self;
13136
+ return vresult;
13137
+ fail:
13138
+ return Qnil;
13139
+ }
13140
+
13141
+
13142
+ SWIGINTERN VALUE _wrap_MatrixD_replaceN___(int nargs, VALUE *args, VALUE self) {
13143
+ int argc;
13144
+ VALUE argv[3];
13145
+ int ii;
13146
+
13147
+ argc = nargs + 1;
13135
13148
  argv[0] = self;
13136
13149
  if (argc > 3) SWIG_fail;
13137
13150
  for (ii = 1; (ii < argc); ++ii) {
@@ -13208,11 +13221,11 @@ SWIGINTERN VALUE _wrap_MatrixD_replaceN___(int nargs, VALUE *args, VALUE self) {
13208
13221
 
13209
13222
  fail:
13210
13223
  Ruby_Format_OverloadedError( argc, 3, "replace!",
13211
- " Matrix< double,Array2D_Dense< double > >::self_t replace!(Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewBase< > > const &matrix)\n"
13212
- " Matrix< double,Array2D_Dense< double > >::self_t replace!(Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewFilter< MatrixViewBase< > > > const &matrix)\n"
13213
- " Matrix< double,Array2D_Dense< double > >::self_t replace!(void const *replacer)\n"
13214
- " Matrix< double,Array2D_Dense< double > >::self_t replace!()\n"
13215
- " Matrix< double,Array2D_Dense< double > >::self_t & replace!(double const *serialized)\n");
13224
+ " void replace!(Matrix< double,Array2D_Dense< double > >::self_t *self_p, Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewBase< > > const &matrix)\n"
13225
+ " void replace!(Matrix< double,Array2D_Dense< double > >::self_t *self_p, Matrix_Frozen< double,Array2D_Dense< double >,MatrixViewFilter< MatrixViewBase< > > > const &matrix)\n"
13226
+ " void replace!(Matrix< double,Array2D_Dense< double > >::self_t *self_p, void const *replacer)\n"
13227
+ " void replace!(Matrix< double,Array2D_Dense< double > >::self_t *self_p)\n"
13228
+ " void replace!(Matrix< double,Array2D_Dense< double > >::self_t *self_p, double const *serialized)\n");
13216
13229
 
13217
13230
  return Qnil;
13218
13231
  }
@@ -13222,8 +13235,8 @@ fail:
13222
13235
  Document-method: GPS_PVT::SylphideMath::MatrixD.map!
13223
13236
 
13224
13237
  call-seq:
13225
- map!(MatrixUtil::each_which_t const & each_which=MatrixUtil::EACH_ALL) -> MatrixD
13226
- map! -> MatrixD
13238
+ map!(MatrixUtil::each_which_t const & each_which=MatrixUtil::EACH_ALL)
13239
+ map!
13227
13240
 
13228
13241
  An instance method.
13229
13242
 
@@ -13231,18 +13244,19 @@ An instance method.
13231
13244
  SWIGINTERN VALUE
13232
13245
  _wrap_MatrixD_mapN_____SWIG_0(int argc, VALUE *argv, VALUE self) {
13233
13246
  Matrix< double,Array2D_Dense< double > > *arg1 = (Matrix< double,Array2D_Dense< double > > *) 0 ;
13234
- void (*arg2)(double const &,double *,unsigned int const &,unsigned int const &) = (void (*)(double const &,double *,unsigned int const &,unsigned int const &)) 0 ;
13235
- MatrixUtil::each_which_t *arg3 = 0 ;
13247
+ Matrix< double,Array2D_Dense< double > >::self_t *arg2 = (Matrix< double,Array2D_Dense< double > >::self_t *) 0 ;
13248
+ void (*arg3)(double const &,double *,unsigned int const &,unsigned int const &) = (void (*)(double const &,double *,unsigned int const &,unsigned int const &)) 0 ;
13249
+ MatrixUtil::each_which_t *arg4 = 0 ;
13236
13250
  void *argp1 = 0 ;
13237
13251
  int res1 = 0 ;
13238
- Matrix< double,Array2D_Dense< double > >::self_t *result = 0 ;
13239
13252
  VALUE vresult = Qnil;
13240
13253
 
13254
+
13241
13255
  {
13242
13256
  if(!rb_block_given_p()){
13243
13257
  return rb_enumeratorize(self, ID2SYM(rb_frame_callee()), argc, argv);
13244
13258
  }
13245
- arg2 = matrix_each((const double *)0);
13259
+ arg3 = matrix_each((const double *)0);
13246
13260
  }
13247
13261
  if ((argc < 1) || (argc > 1)) {
13248
13262
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
@@ -13254,14 +13268,14 @@ _wrap_MatrixD_mapN_____SWIG_0(int argc, VALUE *argv, VALUE self) {
13254
13268
  arg1 = reinterpret_cast< Matrix< double,Array2D_Dense< double > > * >(argp1);
13255
13269
  {
13256
13270
  try{
13257
- arg3 = &const_cast<typename MatrixUtil::each_which_t &>(MatrixUtil::sym2each_which(argv[0]));
13271
+ arg4 = &const_cast<typename MatrixUtil::each_which_t &>(MatrixUtil::sym2each_which(argv[0]));
13258
13272
  }catch(std::runtime_error &e){
13259
13273
  SWIG_exception(SWIG_TypeError, e.what());
13260
13274
  }
13261
13275
  }
13262
13276
  {
13263
13277
  try {
13264
- result = (Matrix< double,Array2D_Dense< double > >::self_t *) &Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg__map_bang__SWIG_0(arg1,arg2,(MatrixUtil::each_which_t const &)*arg3);
13278
+ Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg__map_bang__SWIG_0(arg1,arg2,arg3,(MatrixUtil::each_which_t const &)*arg4);
13265
13279
  } catch (const native_exception &e) {
13266
13280
  e.regenerate();
13267
13281
  SWIG_fail;
@@ -13279,17 +13293,18 @@ fail:
13279
13293
  SWIGINTERN VALUE
13280
13294
  _wrap_MatrixD_mapN_____SWIG_1(int argc, VALUE *argv, VALUE self) {
13281
13295
  Matrix< double,Array2D_Dense< double > > *arg1 = (Matrix< double,Array2D_Dense< double > > *) 0 ;
13282
- void (*arg2)(double const &,double *,unsigned int const &,unsigned int const &) = (void (*)(double const &,double *,unsigned int const &,unsigned int const &)) 0 ;
13296
+ Matrix< double,Array2D_Dense< double > >::self_t *arg2 = (Matrix< double,Array2D_Dense< double > >::self_t *) 0 ;
13297
+ void (*arg3)(double const &,double *,unsigned int const &,unsigned int const &) = (void (*)(double const &,double *,unsigned int const &,unsigned int const &)) 0 ;
13283
13298
  void *argp1 = 0 ;
13284
13299
  int res1 = 0 ;
13285
- Matrix< double,Array2D_Dense< double > >::self_t *result = 0 ;
13286
13300
  VALUE vresult = Qnil;
13287
13301
 
13302
+
13288
13303
  {
13289
13304
  if(!rb_block_given_p()){
13290
13305
  return rb_enumeratorize(self, ID2SYM(rb_frame_callee()), argc, argv);
13291
13306
  }
13292
- arg2 = matrix_each((const double *)0);
13307
+ arg3 = matrix_each((const double *)0);
13293
13308
  }
13294
13309
  if ((argc < 0) || (argc > 0)) {
13295
13310
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
@@ -13301,7 +13316,7 @@ _wrap_MatrixD_mapN_____SWIG_1(int argc, VALUE *argv, VALUE self) {
13301
13316
  arg1 = reinterpret_cast< Matrix< double,Array2D_Dense< double > > * >(argp1);
13302
13317
  {
13303
13318
  try {
13304
- result = (Matrix< double,Array2D_Dense< double > >::self_t *) &Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg__map_bang__SWIG_0(arg1,arg2);
13319
+ Matrix_Sl_double_Sc_Array2D_Dense_Sl_double_Sg__Sg__map_bang__SWIG_0(arg1,arg2,arg3);
13305
13320
  } catch (const native_exception &e) {
13306
13321
  e.regenerate();
13307
13322
  SWIG_fail;
@@ -13353,8 +13368,8 @@ SWIGINTERN VALUE _wrap_MatrixD_mapN___(int nargs, VALUE *args, VALUE self) {
13353
13368
 
13354
13369
  fail:
13355
13370
  Ruby_Format_OverloadedError( argc, 3, "map!",
13356
- " Matrix< double,Array2D_Dense< double > >::self_t map!(void (*each_func)(double const &,double *,unsigned int const &,unsigned int const &), MatrixUtil::each_which_t const &each_which)\n"
13357
- " Matrix< double,Array2D_Dense< double > >::self_t & map!(void (*each_func)(double const &,double *,unsigned int const &,unsigned int const &))\n");
13371
+ " void map!(Matrix< double,Array2D_Dense< double > >::self_t *self_p, void (*each_func)(double const &,double *,unsigned int const &,unsigned int const &), MatrixUtil::each_which_t const &each_which)\n"
13372
+ " void map!(Matrix< double,Array2D_Dense< double > >::self_t *self_p, void (*each_func)(double const &,double *,unsigned int const &,unsigned int const &))\n");
13358
13373
 
13359
13374
  return Qnil;
13360
13375
  }
@@ -19528,134 +19543,6 @@ free_Matrix_Frozen_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_doubl
19528
19543
  */
19529
19544
  static swig_class SwigClassMatrixComplexD;
19530
19545
 
19531
- /*
19532
- Document-method: GPS_PVT::SylphideMath::MatrixComplexD.swap_rows
19533
-
19534
- call-seq:
19535
- swap_rows(unsigned int const & row1, unsigned int const & row2) -> MatrixComplexD
19536
-
19537
- An instance method.
19538
-
19539
- */
19540
- SWIGINTERN VALUE
19541
- _wrap_MatrixComplexD_swap_rowsN___(int argc, VALUE *argv, VALUE self) {
19542
- Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *arg1 = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *) 0 ;
19543
- unsigned int *arg2 = 0 ;
19544
- unsigned int *arg3 = 0 ;
19545
- void *argp1 = 0 ;
19546
- int res1 = 0 ;
19547
- unsigned int temp2 ;
19548
- unsigned int val2 ;
19549
- int ecode2 = 0 ;
19550
- unsigned int temp3 ;
19551
- unsigned int val3 ;
19552
- int ecode3 = 0 ;
19553
- Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *result = 0 ;
19554
- VALUE vresult = Qnil;
19555
-
19556
- if ((argc < 2) || (argc > 2)) {
19557
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
19558
- }
19559
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_MatrixT_ComplexT_double_t_Array2D_DenseT_ComplexT_double_t_t_MatrixViewBaseT_t_t, 0 | 0 );
19560
- if (!SWIG_IsOK(res1)) {
19561
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *","swapRows", 1, self ));
19562
- }
19563
- arg1 = reinterpret_cast< Matrix< Complex< double >,Array2D_Dense< Complex< double > > > * >(argp1);
19564
- ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
19565
- if (!SWIG_IsOK(ecode2)) {
19566
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","swapRows", 2, argv[0] ));
19567
- }
19568
- temp2 = static_cast< unsigned int >(val2);
19569
- arg2 = &temp2;
19570
- ecode3 = SWIG_AsVal_unsigned_SS_int(argv[1], &val3);
19571
- if (!SWIG_IsOK(ecode3)) {
19572
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","swapRows", 3, argv[1] ));
19573
- }
19574
- temp3 = static_cast< unsigned int >(val3);
19575
- arg3 = &temp3;
19576
- raise_if_lt_zero_after_asval(*arg2);
19577
- raise_if_lt_zero_after_asval(*arg3);
19578
- {
19579
- try {
19580
- result = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *) &(arg1)->swapRows((unsigned int const &)*arg2,(unsigned int const &)*arg3);
19581
- } catch (const native_exception &e) {
19582
- e.regenerate();
19583
- SWIG_fail;
19584
- } catch (const std::exception& e) {
19585
- SWIG_exception_fail(SWIG_RuntimeError, e.what());
19586
- }
19587
- }
19588
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MatrixT_ComplexT_double_t_Array2D_DenseT_ComplexT_double_t_t_MatrixViewBaseT_t_t, 0 | 0 );
19589
- return vresult;
19590
- fail:
19591
- return Qnil;
19592
- }
19593
-
19594
-
19595
- /*
19596
- Document-method: GPS_PVT::SylphideMath::MatrixComplexD.swap_columns
19597
-
19598
- call-seq:
19599
- swap_columns(unsigned int const & column1, unsigned int const & column2) -> MatrixComplexD
19600
-
19601
- An instance method.
19602
-
19603
- */
19604
- SWIGINTERN VALUE
19605
- _wrap_MatrixComplexD_swap_columnsN___(int argc, VALUE *argv, VALUE self) {
19606
- Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *arg1 = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *) 0 ;
19607
- unsigned int *arg2 = 0 ;
19608
- unsigned int *arg3 = 0 ;
19609
- void *argp1 = 0 ;
19610
- int res1 = 0 ;
19611
- unsigned int temp2 ;
19612
- unsigned int val2 ;
19613
- int ecode2 = 0 ;
19614
- unsigned int temp3 ;
19615
- unsigned int val3 ;
19616
- int ecode3 = 0 ;
19617
- Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *result = 0 ;
19618
- VALUE vresult = Qnil;
19619
-
19620
- if ((argc < 2) || (argc > 2)) {
19621
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
19622
- }
19623
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_MatrixT_ComplexT_double_t_Array2D_DenseT_ComplexT_double_t_t_MatrixViewBaseT_t_t, 0 | 0 );
19624
- if (!SWIG_IsOK(res1)) {
19625
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *","swapColumns", 1, self ));
19626
- }
19627
- arg1 = reinterpret_cast< Matrix< Complex< double >,Array2D_Dense< Complex< double > > > * >(argp1);
19628
- ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
19629
- if (!SWIG_IsOK(ecode2)) {
19630
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","swapColumns", 2, argv[0] ));
19631
- }
19632
- temp2 = static_cast< unsigned int >(val2);
19633
- arg2 = &temp2;
19634
- ecode3 = SWIG_AsVal_unsigned_SS_int(argv[1], &val3);
19635
- if (!SWIG_IsOK(ecode3)) {
19636
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","swapColumns", 3, argv[1] ));
19637
- }
19638
- temp3 = static_cast< unsigned int >(val3);
19639
- arg3 = &temp3;
19640
- raise_if_lt_zero_after_asval(*arg2);
19641
- raise_if_lt_zero_after_asval(*arg3);
19642
- {
19643
- try {
19644
- result = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *) &(arg1)->swapColumns((unsigned int const &)*arg2,(unsigned int const &)*arg3);
19645
- } catch (const native_exception &e) {
19646
- e.regenerate();
19647
- SWIG_fail;
19648
- } catch (const std::exception& e) {
19649
- SWIG_exception_fail(SWIG_RuntimeError, e.what());
19650
- }
19651
- }
19652
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MatrixT_ComplexT_double_t_Array2D_DenseT_ComplexT_double_t_t_MatrixViewBaseT_t_t, 0 | 0 );
19653
- return vresult;
19654
- fail:
19655
- return Qnil;
19656
- }
19657
-
19658
-
19659
19546
  /*
19660
19547
  Document-method: GPS_PVT::SylphideMath::MatrixComplexD.new
19661
19548
 
@@ -20125,29 +20012,160 @@ fail:
20125
20012
  }
20126
20013
 
20127
20014
 
20015
+ /*
20016
+ Document-method: GPS_PVT::SylphideMath::MatrixComplexD.swap_rows
20017
+
20018
+ call-seq:
20019
+ swap_rows(unsigned int const & r1, unsigned int const & r2)
20020
+
20021
+ An instance method.
20022
+
20023
+ */
20024
+ SWIGINTERN VALUE
20025
+ _wrap_MatrixComplexD_swap_rowsN___(int argc, VALUE *argv, VALUE self) {
20026
+ Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *arg1 = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *) 0 ;
20027
+ Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *arg2 = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *) 0 ;
20028
+ unsigned int *arg3 = 0 ;
20029
+ unsigned int *arg4 = 0 ;
20030
+ void *argp1 = 0 ;
20031
+ int res1 = 0 ;
20032
+ unsigned int temp3 ;
20033
+ unsigned int val3 ;
20034
+ int ecode3 = 0 ;
20035
+ unsigned int temp4 ;
20036
+ unsigned int val4 ;
20037
+ int ecode4 = 0 ;
20038
+ VALUE vresult = Qnil;
20039
+
20040
+
20041
+ if ((argc < 2) || (argc > 2)) {
20042
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
20043
+ }
20044
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_MatrixT_ComplexT_double_t_Array2D_DenseT_ComplexT_double_t_t_MatrixViewBaseT_t_t, 0 | 0 );
20045
+ if (!SWIG_IsOK(res1)) {
20046
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *","swap_rows", 1, self ));
20047
+ }
20048
+ arg1 = reinterpret_cast< Matrix< Complex< double >,Array2D_Dense< Complex< double > > > * >(argp1);
20049
+ ecode3 = SWIG_AsVal_unsigned_SS_int(argv[0], &val3);
20050
+ if (!SWIG_IsOK(ecode3)) {
20051
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","swap_rows", 3, argv[0] ));
20052
+ }
20053
+ temp3 = static_cast< unsigned int >(val3);
20054
+ arg3 = &temp3;
20055
+ ecode4 = SWIG_AsVal_unsigned_SS_int(argv[1], &val4);
20056
+ if (!SWIG_IsOK(ecode4)) {
20057
+ SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","swap_rows", 4, argv[1] ));
20058
+ }
20059
+ temp4 = static_cast< unsigned int >(val4);
20060
+ arg4 = &temp4;
20061
+ raise_if_lt_zero_after_asval(*arg3);
20062
+ raise_if_lt_zero_after_asval(*arg4);
20063
+ {
20064
+ try {
20065
+ Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg__swap_rows(arg1,arg2,(unsigned int const &)*arg3,(unsigned int const &)*arg4);
20066
+ } catch (const native_exception &e) {
20067
+ e.regenerate();
20068
+ SWIG_fail;
20069
+ } catch (const std::exception& e) {
20070
+ SWIG_exception_fail(SWIG_RuntimeError, e.what());
20071
+ }
20072
+ }
20073
+ vresult = self;
20074
+ return vresult;
20075
+ fail:
20076
+ return Qnil;
20077
+ }
20078
+
20079
+
20080
+ /*
20081
+ Document-method: GPS_PVT::SylphideMath::MatrixComplexD.swap_columns
20082
+
20083
+ call-seq:
20084
+ swap_columns(unsigned int const & c1, unsigned int const & c2)
20085
+
20086
+ An instance method.
20087
+
20088
+ */
20089
+ SWIGINTERN VALUE
20090
+ _wrap_MatrixComplexD_swap_columnsN___(int argc, VALUE *argv, VALUE self) {
20091
+ Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *arg1 = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *) 0 ;
20092
+ Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *arg2 = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *) 0 ;
20093
+ unsigned int *arg3 = 0 ;
20094
+ unsigned int *arg4 = 0 ;
20095
+ void *argp1 = 0 ;
20096
+ int res1 = 0 ;
20097
+ unsigned int temp3 ;
20098
+ unsigned int val3 ;
20099
+ int ecode3 = 0 ;
20100
+ unsigned int temp4 ;
20101
+ unsigned int val4 ;
20102
+ int ecode4 = 0 ;
20103
+ VALUE vresult = Qnil;
20104
+
20105
+
20106
+ if ((argc < 2) || (argc > 2)) {
20107
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
20108
+ }
20109
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_MatrixT_ComplexT_double_t_Array2D_DenseT_ComplexT_double_t_t_MatrixViewBaseT_t_t, 0 | 0 );
20110
+ if (!SWIG_IsOK(res1)) {
20111
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *","swap_columns", 1, self ));
20112
+ }
20113
+ arg1 = reinterpret_cast< Matrix< Complex< double >,Array2D_Dense< Complex< double > > > * >(argp1);
20114
+ ecode3 = SWIG_AsVal_unsigned_SS_int(argv[0], &val3);
20115
+ if (!SWIG_IsOK(ecode3)) {
20116
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","swap_columns", 3, argv[0] ));
20117
+ }
20118
+ temp3 = static_cast< unsigned int >(val3);
20119
+ arg3 = &temp3;
20120
+ ecode4 = SWIG_AsVal_unsigned_SS_int(argv[1], &val4);
20121
+ if (!SWIG_IsOK(ecode4)) {
20122
+ SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","swap_columns", 4, argv[1] ));
20123
+ }
20124
+ temp4 = static_cast< unsigned int >(val4);
20125
+ arg4 = &temp4;
20126
+ raise_if_lt_zero_after_asval(*arg3);
20127
+ raise_if_lt_zero_after_asval(*arg4);
20128
+ {
20129
+ try {
20130
+ Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg__swap_columns(arg1,arg2,(unsigned int const &)*arg3,(unsigned int const &)*arg4);
20131
+ } catch (const native_exception &e) {
20132
+ e.regenerate();
20133
+ SWIG_fail;
20134
+ } catch (const std::exception& e) {
20135
+ SWIG_exception_fail(SWIG_RuntimeError, e.what());
20136
+ }
20137
+ }
20138
+ vresult = self;
20139
+ return vresult;
20140
+ fail:
20141
+ return Qnil;
20142
+ }
20143
+
20144
+
20128
20145
  /*
20129
20146
  Document-method: GPS_PVT::SylphideMath::MatrixComplexD.replace!
20130
20147
 
20131
20148
  call-seq:
20132
- replace!(matrix) -> MatrixComplexD
20133
- replace!(matrix) -> MatrixComplexD
20134
- replace!(replacer=nil) -> MatrixComplexD
20135
- replace! -> MatrixComplexD
20136
- replace!(serialized) -> MatrixComplexD
20149
+ replace!(matrix)
20150
+ replace!(matrix)
20151
+ replace!(replacer=nil)
20152
+ replace!
20153
+ replace!(serialized)
20137
20154
 
20138
20155
  Replace all or a portion of the MatrixComplexD.
20139
20156
  */
20140
20157
  SWIGINTERN VALUE
20141
20158
  _wrap_MatrixComplexD_replaceN_____SWIG_1(int argc, VALUE *argv, VALUE self) {
20142
20159
  Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *arg1 = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *) 0 ;
20143
- Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewBase< > > *arg2 = 0 ;
20160
+ Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *arg2 = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *) 0 ;
20161
+ Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewBase< > > *arg3 = 0 ;
20144
20162
  void *argp1 = 0 ;
20145
20163
  int res1 = 0 ;
20146
- void *argp2 ;
20147
- int res2 = 0 ;
20148
- Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *result = 0 ;
20164
+ void *argp3 ;
20165
+ int res3 = 0 ;
20149
20166
  VALUE vresult = Qnil;
20150
20167
 
20168
+
20151
20169
  if ((argc < 1) || (argc > 1)) {
20152
20170
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
20153
20171
  }
@@ -20156,17 +20174,17 @@ _wrap_MatrixComplexD_replaceN_____SWIG_1(int argc, VALUE *argv, VALUE self) {
20156
20174
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *","replace<(T,Array2D_Dense<(T)>,MatViewBase)>", 1, self ));
20157
20175
  }
20158
20176
  arg1 = reinterpret_cast< Matrix< Complex< double >,Array2D_Dense< Complex< double > > > * >(argp1);
20159
- res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Matrix_FrozenT_ComplexT_double_t_Array2D_DenseT_ComplexT_double_t_t_MatrixViewBaseT_t_t, 0 );
20160
- if (!SWIG_IsOK(res2)) {
20161
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewBase< > > const &","replace<(T,Array2D_Dense<(T)>,MatViewBase)>", 2, argv[0] ));
20177
+ res3 = SWIG_ConvertPtr(argv[0], &argp3, SWIGTYPE_p_Matrix_FrozenT_ComplexT_double_t_Array2D_DenseT_ComplexT_double_t_t_MatrixViewBaseT_t_t, 0 );
20178
+ if (!SWIG_IsOK(res3)) {
20179
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewBase< > > const &","replace<(T,Array2D_Dense<(T)>,MatViewBase)>", 3, argv[0] ));
20162
20180
  }
20163
- if (!argp2) {
20164
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewBase< > > const &","replace<(T,Array2D_Dense<(T)>,MatViewBase)>", 2, argv[0]));
20181
+ if (!argp3) {
20182
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewBase< > > const &","replace<(T,Array2D_Dense<(T)>,MatViewBase)>", 3, argv[0]));
20165
20183
  }
20166
- arg2 = reinterpret_cast< Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewBase< > > * >(argp2);
20184
+ arg3 = reinterpret_cast< Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewBase< > > * >(argp3);
20167
20185
  {
20168
20186
  try {
20169
- result = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *) &Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg__replace_Sl_T_Sc_Array2D_Dense_Sl_T_Sg__Sc_MatViewBase_Sg___SWIG_1(arg1,(Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewBase< > > const &)*arg2);
20187
+ Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg__replace_Sl_T_Sc_Array2D_Dense_Sl_T_Sg__Sc_MatViewBase_Sg___SWIG_1(arg1,arg2,(Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewBase< > > const &)*arg3);
20170
20188
  } catch (const native_exception &e) {
20171
20189
  e.regenerate();
20172
20190
  SWIG_fail;
@@ -20184,14 +20202,15 @@ fail:
20184
20202
  SWIGINTERN VALUE
20185
20203
  _wrap_MatrixComplexD_replaceN_____SWIG_2(int argc, VALUE *argv, VALUE self) {
20186
20204
  Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *arg1 = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *) 0 ;
20187
- Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewFilter< MatrixViewBase< > > > *arg2 = 0 ;
20205
+ Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *arg2 = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *) 0 ;
20206
+ Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewFilter< MatrixViewBase< > > > *arg3 = 0 ;
20188
20207
  void *argp1 = 0 ;
20189
20208
  int res1 = 0 ;
20190
- void *argp2 ;
20191
- int res2 = 0 ;
20192
- Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *result = 0 ;
20209
+ void *argp3 ;
20210
+ int res3 = 0 ;
20193
20211
  VALUE vresult = Qnil;
20194
20212
 
20213
+
20195
20214
  if ((argc < 1) || (argc > 1)) {
20196
20215
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
20197
20216
  }
@@ -20200,17 +20219,17 @@ _wrap_MatrixComplexD_replaceN_____SWIG_2(int argc, VALUE *argv, VALUE self) {
20200
20219
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *","replace<(T,Array2D_Dense<(T)>,MatView_f)>", 1, self ));
20201
20220
  }
20202
20221
  arg1 = reinterpret_cast< Matrix< Complex< double >,Array2D_Dense< Complex< double > > > * >(argp1);
20203
- res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Matrix_FrozenT_ComplexT_double_t_Array2D_DenseT_ComplexT_double_t_t_MatrixViewFilterT_MatrixViewBaseT_t_t_t, 0 );
20204
- if (!SWIG_IsOK(res2)) {
20205
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewFilter< MatrixViewBase< > > > const &","replace<(T,Array2D_Dense<(T)>,MatView_f)>", 2, argv[0] ));
20222
+ res3 = SWIG_ConvertPtr(argv[0], &argp3, SWIGTYPE_p_Matrix_FrozenT_ComplexT_double_t_Array2D_DenseT_ComplexT_double_t_t_MatrixViewFilterT_MatrixViewBaseT_t_t_t, 0 );
20223
+ if (!SWIG_IsOK(res3)) {
20224
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewFilter< MatrixViewBase< > > > const &","replace<(T,Array2D_Dense<(T)>,MatView_f)>", 3, argv[0] ));
20206
20225
  }
20207
- if (!argp2) {
20208
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewFilter< MatrixViewBase< > > > const &","replace<(T,Array2D_Dense<(T)>,MatView_f)>", 2, argv[0]));
20226
+ if (!argp3) {
20227
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewFilter< MatrixViewBase< > > > const &","replace<(T,Array2D_Dense<(T)>,MatView_f)>", 3, argv[0]));
20209
20228
  }
20210
- arg2 = reinterpret_cast< Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewFilter< MatrixViewBase< > > > * >(argp2);
20229
+ arg3 = reinterpret_cast< Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewFilter< MatrixViewBase< > > > * >(argp3);
20211
20230
  {
20212
20231
  try {
20213
- result = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *) &Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg__replace_Sl_T_Sc_Array2D_Dense_Sl_T_Sg__Sc_MatView_f_Sg___SWIG_2(arg1,(Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewFilter< MatrixViewBase< > > > const &)*arg2);
20232
+ Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg__replace_Sl_T_Sc_Array2D_Dense_Sl_T_Sg__Sc_MatView_f_Sg___SWIG_2(arg1,arg2,(Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewFilter< MatrixViewBase< > > > const &)*arg3);
20214
20233
  } catch (const native_exception &e) {
20215
20234
  e.regenerate();
20216
20235
  SWIG_fail;
@@ -20228,12 +20247,13 @@ fail:
20228
20247
  SWIGINTERN VALUE
20229
20248
  _wrap_MatrixComplexD_replaceN_____SWIG_3(int argc, VALUE *argv, VALUE self) {
20230
20249
  Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *arg1 = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *) 0 ;
20231
- void *arg2 = (void *) 0 ;
20250
+ Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *arg2 = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *) 0 ;
20251
+ void *arg3 = (void *) 0 ;
20232
20252
  void *argp1 = 0 ;
20233
20253
  int res1 = 0 ;
20234
- Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *result = 0 ;
20235
20254
  VALUE vresult = Qnil;
20236
20255
 
20256
+
20237
20257
  if ((argc < 1) || (argc > 1)) {
20238
20258
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
20239
20259
  }
@@ -20243,11 +20263,11 @@ _wrap_MatrixComplexD_replaceN_____SWIG_3(int argc, VALUE *argv, VALUE self) {
20243
20263
  }
20244
20264
  arg1 = reinterpret_cast< Matrix< Complex< double >,Array2D_Dense< Complex< double > > > * >(argp1);
20245
20265
  {
20246
- arg2 = &argv[0];
20266
+ arg3 = &argv[0];
20247
20267
  }
20248
20268
  {
20249
20269
  try {
20250
- result = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *) &Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg__replace__SWIG_3(arg1,(void const *)arg2);
20270
+ Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg__replace__SWIG_3(arg1,arg2,(void const *)arg3);
20251
20271
  } catch (const native_exception &e) {
20252
20272
  e.regenerate();
20253
20273
  SWIG_fail;
@@ -20265,11 +20285,12 @@ fail:
20265
20285
  SWIGINTERN VALUE
20266
20286
  _wrap_MatrixComplexD_replaceN_____SWIG_4(int argc, VALUE *argv, VALUE self) {
20267
20287
  Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *arg1 = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *) 0 ;
20288
+ Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *arg2 = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *) 0 ;
20268
20289
  void *argp1 = 0 ;
20269
20290
  int res1 = 0 ;
20270
- Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *result = 0 ;
20271
20291
  VALUE vresult = Qnil;
20272
20292
 
20293
+
20273
20294
  if ((argc < 0) || (argc > 0)) {
20274
20295
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
20275
20296
  }
@@ -20280,7 +20301,7 @@ _wrap_MatrixComplexD_replaceN_____SWIG_4(int argc, VALUE *argv, VALUE self) {
20280
20301
  arg1 = reinterpret_cast< Matrix< Complex< double >,Array2D_Dense< Complex< double > > > * >(argp1);
20281
20302
  {
20282
20303
  try {
20283
- result = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *) &Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg__replace__SWIG_3(arg1);
20304
+ Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg__replace__SWIG_3(arg1,arg2);
20284
20305
  } catch (const native_exception &e) {
20285
20306
  e.regenerate();
20286
20307
  SWIG_fail;
@@ -20298,14 +20319,15 @@ fail:
20298
20319
  SWIGINTERN VALUE
20299
20320
  _wrap_MatrixComplexD_replaceN_____SWIG_5(int argc, VALUE *argv, VALUE self) {
20300
20321
  Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *arg1 = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *) 0 ;
20301
- Complex< double > *arg2 = (Complex< double > *) 0 ;
20322
+ Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *arg2 = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *) 0 ;
20323
+ Complex< double > *arg3 = (Complex< double > *) 0 ;
20302
20324
  void *argp1 = 0 ;
20303
20325
  int res1 = 0 ;
20304
- void *argp2 = 0 ;
20305
- int res2 = 0 ;
20306
- Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *result = 0 ;
20326
+ void *argp3 = 0 ;
20327
+ int res3 = 0 ;
20307
20328
  VALUE vresult = Qnil;
20308
20329
 
20330
+
20309
20331
  if ((argc < 1) || (argc > 1)) {
20310
20332
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
20311
20333
  }
@@ -20314,14 +20336,14 @@ _wrap_MatrixComplexD_replaceN_____SWIG_5(int argc, VALUE *argv, VALUE self) {
20314
20336
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *","replace", 1, self ));
20315
20337
  }
20316
20338
  arg1 = reinterpret_cast< Matrix< Complex< double >,Array2D_Dense< Complex< double > > > * >(argp1);
20317
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_ComplexT_double_t, 0 | 0 );
20318
- if (!SWIG_IsOK(res2)) {
20319
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Complex< double > const *","replace", 2, argv[0] ));
20339
+ res3 = SWIG_ConvertPtr(argv[0], &argp3,SWIGTYPE_p_ComplexT_double_t, 0 | 0 );
20340
+ if (!SWIG_IsOK(res3)) {
20341
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "Complex< double > const *","replace", 3, argv[0] ));
20320
20342
  }
20321
- arg2 = reinterpret_cast< Complex< double > * >(argp2);
20343
+ arg3 = reinterpret_cast< Complex< double > * >(argp3);
20322
20344
  {
20323
20345
  try {
20324
- result = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *) &Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg__replace__SWIG_5(arg1,(Complex< double > const *)arg2);
20346
+ Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg__replace__SWIG_5(arg1,arg2,(Complex< double > const *)arg3);
20325
20347
  } catch (const native_exception &e) {
20326
20348
  e.regenerate();
20327
20349
  SWIG_fail;
@@ -20418,11 +20440,11 @@ SWIGINTERN VALUE _wrap_MatrixComplexD_replaceN___(int nargs, VALUE *args, VALUE
20418
20440
 
20419
20441
  fail:
20420
20442
  Ruby_Format_OverloadedError( argc, 3, "replace!",
20421
- " Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t replace!(Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewBase< > > const &matrix)\n"
20422
- " Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t replace!(Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewFilter< MatrixViewBase< > > > const &matrix)\n"
20423
- " Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t replace!(void const *replacer)\n"
20424
- " Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t replace!()\n"
20425
- " Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t & replace!(Complex< double > const *serialized)\n");
20443
+ " void replace!(Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *self_p, Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewBase< > > const &matrix)\n"
20444
+ " void replace!(Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *self_p, Matrix_Frozen< Complex< double >,Array2D_Dense< Complex< double > >,MatrixViewFilter< MatrixViewBase< > > > const &matrix)\n"
20445
+ " void replace!(Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *self_p, void const *replacer)\n"
20446
+ " void replace!(Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *self_p)\n"
20447
+ " void replace!(Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *self_p, Complex< double > const *serialized)\n");
20426
20448
 
20427
20449
  return Qnil;
20428
20450
  }
@@ -20432,8 +20454,8 @@ fail:
20432
20454
  Document-method: GPS_PVT::SylphideMath::MatrixComplexD.map!
20433
20455
 
20434
20456
  call-seq:
20435
- map!(MatrixUtil::each_which_t const & each_which=MatrixUtil::EACH_ALL) -> MatrixComplexD
20436
- map! -> MatrixComplexD
20457
+ map!(MatrixUtil::each_which_t const & each_which=MatrixUtil::EACH_ALL)
20458
+ map!
20437
20459
 
20438
20460
  An instance method.
20439
20461
 
@@ -20441,18 +20463,19 @@ An instance method.
20441
20463
  SWIGINTERN VALUE
20442
20464
  _wrap_MatrixComplexD_mapN_____SWIG_0(int argc, VALUE *argv, VALUE self) {
20443
20465
  Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *arg1 = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *) 0 ;
20444
- void (*arg2)(Complex< double > const &,Complex< double > *,unsigned int const &,unsigned int const &) = (void (*)(Complex< double > const &,Complex< double > *,unsigned int const &,unsigned int const &)) 0 ;
20445
- MatrixUtil::each_which_t *arg3 = 0 ;
20466
+ Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *arg2 = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *) 0 ;
20467
+ void (*arg3)(Complex< double > const &,Complex< double > *,unsigned int const &,unsigned int const &) = (void (*)(Complex< double > const &,Complex< double > *,unsigned int const &,unsigned int const &)) 0 ;
20468
+ MatrixUtil::each_which_t *arg4 = 0 ;
20446
20469
  void *argp1 = 0 ;
20447
20470
  int res1 = 0 ;
20448
- Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *result = 0 ;
20449
20471
  VALUE vresult = Qnil;
20450
20472
 
20473
+
20451
20474
  {
20452
20475
  if(!rb_block_given_p()){
20453
20476
  return rb_enumeratorize(self, ID2SYM(rb_frame_callee()), argc, argv);
20454
20477
  }
20455
- arg2 = matrix_each((const Complex< double > *)0);
20478
+ arg3 = matrix_each((const Complex< double > *)0);
20456
20479
  }
20457
20480
  if ((argc < 1) || (argc > 1)) {
20458
20481
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
@@ -20464,14 +20487,14 @@ _wrap_MatrixComplexD_mapN_____SWIG_0(int argc, VALUE *argv, VALUE self) {
20464
20487
  arg1 = reinterpret_cast< Matrix< Complex< double >,Array2D_Dense< Complex< double > > > * >(argp1);
20465
20488
  {
20466
20489
  try{
20467
- arg3 = &const_cast<typename MatrixUtil::each_which_t &>(MatrixUtil::sym2each_which(argv[0]));
20490
+ arg4 = &const_cast<typename MatrixUtil::each_which_t &>(MatrixUtil::sym2each_which(argv[0]));
20468
20491
  }catch(std::runtime_error &e){
20469
20492
  SWIG_exception(SWIG_TypeError, e.what());
20470
20493
  }
20471
20494
  }
20472
20495
  {
20473
20496
  try {
20474
- result = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *) &Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg__map_bang__SWIG_0(arg1,arg2,(MatrixUtil::each_which_t const &)*arg3);
20497
+ Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg__map_bang__SWIG_0(arg1,arg2,arg3,(MatrixUtil::each_which_t const &)*arg4);
20475
20498
  } catch (const native_exception &e) {
20476
20499
  e.regenerate();
20477
20500
  SWIG_fail;
@@ -20489,17 +20512,18 @@ fail:
20489
20512
  SWIGINTERN VALUE
20490
20513
  _wrap_MatrixComplexD_mapN_____SWIG_1(int argc, VALUE *argv, VALUE self) {
20491
20514
  Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *arg1 = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > > *) 0 ;
20492
- void (*arg2)(Complex< double > const &,Complex< double > *,unsigned int const &,unsigned int const &) = (void (*)(Complex< double > const &,Complex< double > *,unsigned int const &,unsigned int const &)) 0 ;
20515
+ Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *arg2 = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *) 0 ;
20516
+ void (*arg3)(Complex< double > const &,Complex< double > *,unsigned int const &,unsigned int const &) = (void (*)(Complex< double > const &,Complex< double > *,unsigned int const &,unsigned int const &)) 0 ;
20493
20517
  void *argp1 = 0 ;
20494
20518
  int res1 = 0 ;
20495
- Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *result = 0 ;
20496
20519
  VALUE vresult = Qnil;
20497
20520
 
20521
+
20498
20522
  {
20499
20523
  if(!rb_block_given_p()){
20500
20524
  return rb_enumeratorize(self, ID2SYM(rb_frame_callee()), argc, argv);
20501
20525
  }
20502
- arg2 = matrix_each((const Complex< double > *)0);
20526
+ arg3 = matrix_each((const Complex< double > *)0);
20503
20527
  }
20504
20528
  if ((argc < 0) || (argc > 0)) {
20505
20529
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
@@ -20511,7 +20535,7 @@ _wrap_MatrixComplexD_mapN_____SWIG_1(int argc, VALUE *argv, VALUE self) {
20511
20535
  arg1 = reinterpret_cast< Matrix< Complex< double >,Array2D_Dense< Complex< double > > > * >(argp1);
20512
20536
  {
20513
20537
  try {
20514
- result = (Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *) &Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg__map_bang__SWIG_0(arg1,arg2);
20538
+ Matrix_Sl_Complex_Sl_double_Sg__Sc_Array2D_Dense_Sl_Complex_Sl_double_Sg__Sg__Sg__map_bang__SWIG_0(arg1,arg2,arg3);
20515
20539
  } catch (const native_exception &e) {
20516
20540
  e.regenerate();
20517
20541
  SWIG_fail;
@@ -20563,8 +20587,8 @@ SWIGINTERN VALUE _wrap_MatrixComplexD_mapN___(int nargs, VALUE *args, VALUE self
20563
20587
 
20564
20588
  fail:
20565
20589
  Ruby_Format_OverloadedError( argc, 3, "map!",
20566
- " Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t map!(void (*each_func)(Complex< double > const &,Complex< double > *,unsigned int const &,unsigned int const &), MatrixUtil::each_which_t const &each_which)\n"
20567
- " Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t & map!(void (*each_func)(Complex< double > const &,Complex< double > *,unsigned int const &,unsigned int const &))\n");
20590
+ " void map!(Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *self_p, void (*each_func)(Complex< double > const &,Complex< double > *,unsigned int const &,unsigned int const &), MatrixUtil::each_which_t const &each_which)\n"
20591
+ " void map!(Matrix< Complex< double >,Array2D_Dense< Complex< double > > >::self_t *self_p, void (*each_func)(Complex< double > const &,Complex< double > *,unsigned int const &,unsigned int const &))\n");
20568
20592
 
20569
20593
  return Qnil;
20570
20594
  }
@@ -21154,11 +21178,11 @@ SWIGEXPORT void Init_SylphideMath(void) {
21154
21178
  SWIG_TypeClientData(SWIGTYPE_p_MatrixT_double_Array2D_DenseT_double_t_MatrixViewBaseT_t_t, (void *) &SwigClassMatrixD);
21155
21179
  rb_define_alloc_func(SwigClassMatrixD.klass, _wrap_MatrixD_allocate);
21156
21180
  rb_define_method(SwigClassMatrixD.klass, "initialize", VALUEFUNC(_wrap_new_MatrixD), -1);
21157
- rb_define_method(SwigClassMatrixD.klass, "swap_rows!", VALUEFUNC(_wrap_MatrixD_swap_rowsN___), -1);
21158
- rb_define_method(SwigClassMatrixD.klass, "swap_columns!", VALUEFUNC(_wrap_MatrixD_swap_columnsN___), -1);
21159
21181
  rb_define_method(SwigClassMatrixD.klass, "[]=", VALUEFUNC(_wrap_MatrixD___setitem__), -1);
21160
21182
  rb_define_singleton_method(SwigClassMatrixD.klass, "scalar", VALUEFUNC(_wrap_MatrixD_scalar), -1);
21161
21183
  rb_define_singleton_method(SwigClassMatrixD.klass, "I", VALUEFUNC(_wrap_MatrixD_I), -1);
21184
+ rb_define_method(SwigClassMatrixD.klass, "swap_rows!", VALUEFUNC(_wrap_MatrixD_swap_rowsN___), -1);
21185
+ rb_define_method(SwigClassMatrixD.klass, "swap_columns!", VALUEFUNC(_wrap_MatrixD_swap_columnsN___), -1);
21162
21186
  rb_define_method(SwigClassMatrixD.klass, "replace!", VALUEFUNC(_wrap_MatrixD_replaceN___), -1);
21163
21187
  rb_define_method(SwigClassMatrixD.klass, "map!", VALUEFUNC(_wrap_MatrixD_mapN___), -1);
21164
21188
  rb_define_alias(SwigClassMatrixD.klass, "collect!", "map!");
@@ -21288,11 +21312,11 @@ SWIGEXPORT void Init_SylphideMath(void) {
21288
21312
  SWIG_TypeClientData(SWIGTYPE_p_MatrixT_ComplexT_double_t_Array2D_DenseT_ComplexT_double_t_t_MatrixViewBaseT_t_t, (void *) &SwigClassMatrixComplexD);
21289
21313
  rb_define_alloc_func(SwigClassMatrixComplexD.klass, _wrap_MatrixComplexD_allocate);
21290
21314
  rb_define_method(SwigClassMatrixComplexD.klass, "initialize", VALUEFUNC(_wrap_new_MatrixComplexD), -1);
21291
- rb_define_method(SwigClassMatrixComplexD.klass, "swap_rows!", VALUEFUNC(_wrap_MatrixComplexD_swap_rowsN___), -1);
21292
- rb_define_method(SwigClassMatrixComplexD.klass, "swap_columns!", VALUEFUNC(_wrap_MatrixComplexD_swap_columnsN___), -1);
21293
21315
  rb_define_method(SwigClassMatrixComplexD.klass, "[]=", VALUEFUNC(_wrap_MatrixComplexD___setitem__), -1);
21294
21316
  rb_define_singleton_method(SwigClassMatrixComplexD.klass, "scalar", VALUEFUNC(_wrap_MatrixComplexD_scalar), -1);
21295
21317
  rb_define_singleton_method(SwigClassMatrixComplexD.klass, "I", VALUEFUNC(_wrap_MatrixComplexD_I), -1);
21318
+ rb_define_method(SwigClassMatrixComplexD.klass, "swap_rows!", VALUEFUNC(_wrap_MatrixComplexD_swap_rowsN___), -1);
21319
+ rb_define_method(SwigClassMatrixComplexD.klass, "swap_columns!", VALUEFUNC(_wrap_MatrixComplexD_swap_columnsN___), -1);
21296
21320
  rb_define_method(SwigClassMatrixComplexD.klass, "replace!", VALUEFUNC(_wrap_MatrixComplexD_replaceN___), -1);
21297
21321
  rb_define_method(SwigClassMatrixComplexD.klass, "map!", VALUEFUNC(_wrap_MatrixComplexD_mapN___), -1);
21298
21322
  rb_define_alias(SwigClassMatrixComplexD.klass, "collect!", "map!");