Class: GPS_PVT::SylphideMath::ComplexD

Inherits:
Object
  • Object
show all
Defined in:
ext/gps_pvt/SylphideMath/SylphideMath_wrap.cxx,
ext/gps_pvt/SylphideMath/SylphideMath_wrap.cxx

Overview

Proxy of C++ GPS_PVT::SylphideMath::ComplexD class

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args, self) ⇒ Object



5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
# File 'ext/gps_pvt/SylphideMath/SylphideMath_wrap.cxx', line 5957

SWIGINTERN VALUE _wrap_new_ComplexD(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 0) {
    return _wrap_new_ComplexD__SWIG_2(nargs, args, self);
  }
  if (argc == 1) {
    int _v;
    {
      _v = swig::check<Complex< double > * >(argv[0]) || swig::check<Complex< double > >(argv[0]);
    }
    if (_v) {
      return _wrap_new_ComplexD__SWIG_3(nargs, args, self);
    }
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_ComplexD__SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_ComplexD__SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "ComplexD.new", 
    "    ComplexD.new(double const &real, double const &imaginary)\n"
    "    ComplexD.new(double const &real)\n"
    "    ComplexD.new()\n"
    "    ComplexD.new(Complex< double > const &other)\n");
  
  return Qnil;
}

Class Method Details

.exp(*args, self) ⇒ Object

call-seq:

exp(double const & imaginary) -> ComplexD
exp(double const & real, double const & imaginary) -> ComplexD
exp(ComplexD complex) -> ComplexD

A class method.



5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
# File 'ext/gps_pvt/SylphideMath/SylphideMath_wrap.cxx', line 5544

SWIGINTERN VALUE _wrap_ComplexD_exp(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    {
      _v = swig::check<Complex< double > * >(argv[0]) || swig::check<Complex< double > >(argv[0]);
    }
    if (_v) {
      return _wrap_ComplexD_exp__SWIG_2(nargs, args, self);
    }
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_ComplexD_exp__SWIG_0(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_ComplexD_exp__SWIG_1(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "ComplexD.exp", 
    "    Complex< double > ComplexD.exp(double const &imaginary)\n"
    "    Complex< double > ComplexD.exp(double const &real, double const &imaginary)\n"
    "    Complex< double > ComplexD.exp(Complex< double > const &complex)\n");
  
  return Qnil;
}

.polar(*args, self) ⇒ Object

call-seq:

polar(double const & r, double const & theta=double(0)) -> ComplexD
polar(double const & r) -> ComplexD

A class method.



4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
# File 'ext/gps_pvt/SylphideMath/SylphideMath_wrap.cxx', line 4485

SWIGINTERN VALUE _wrap_ComplexD_polar(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_ComplexD_polar__SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_ComplexD_polar__SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "ComplexD.polar", 
    "    Complex< double > ComplexD.polar(double const &r, double const &theta)\n"
    "    Complex< double > ComplexD.polar(double const &r)\n");
  
  return Qnil;
}

.rectangular(*args, self) ⇒ Object

call-seq:

rectangular(double const & r, double const & i=double(0)) -> ComplexD
rectangular(double const & r) -> ComplexD

A class method.



5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
# File 'ext/gps_pvt/SylphideMath/SylphideMath_wrap.cxx', line 5676

SWIGINTERN VALUE _wrap_ComplexD_rectangular(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_ComplexD_rectangular__SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_double(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_ComplexD_rectangular__SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "rectangular", 
    "    Complex< double > rectangular(double const &r, double const &i)\n"
    "    Complex< double > rectangular(double const &r)\n");
  
  return Qnil;
}

Instance Method Details

#*(*args, self) ⇒ Object

call-seq: (double const & scalar) -> ComplexD (ComplexD complex) -> ComplexD

An instance method.



5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
# File 'ext/gps_pvt/SylphideMath/SylphideMath_wrap.cxx', line 5297

SWIGINTERN VALUE _wrap_ComplexD___mul__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs + 1;
  argv[0] = self;
  if (argc > 3) SWIG_fail;
  for (ii = 1; (ii < argc); ++ii) {
    argv[ii] = args[ii-1];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ComplexT_double_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = swig::check<Complex< double > * >(argv[1]) || swig::check<Complex< double > >(argv[1]);
      }
      if (_v) {
        return _wrap_ComplexD___mul____SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ComplexT_double_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_ComplexD___mul____SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "ComplexD.__mul__", 
    "    Complex< double > ComplexD.__mul__(double const &scalar)\n"
    "    Complex< double > ComplexD.__mul__(Complex< double > const &complex)\n");
  
  return Qnil;
}

#+(*args, self) ⇒ Object

call-seq:

+(scalar) -> ComplexD
+(complex) -> ComplexD

Add operator.



5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
# File 'ext/gps_pvt/SylphideMath/SylphideMath_wrap.cxx', line 5110

SWIGINTERN VALUE _wrap_ComplexD___add__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs + 1;
  argv[0] = self;
  if (argc > 3) SWIG_fail;
  for (ii = 1; (ii < argc); ++ii) {
    argv[ii] = args[ii-1];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ComplexT_double_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = swig::check<Complex< double > * >(argv[1]) || swig::check<Complex< double > >(argv[1]);
      }
      if (_v) {
        return _wrap_ComplexD___add____SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ComplexT_double_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_ComplexD___add____SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "ComplexD.__add__", 
    "    Complex< double > ComplexD.__add__(double const &scalar)\n"
    "    Complex< double > ComplexD.__add__(Complex< double > const &complex)\n");
  
  return Qnil;
}

#-(*args, self) ⇒ Object

call-seq:

-(scalar) -> ComplexD
-(complex) -> ComplexD

Substraction operator.



5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
# File 'ext/gps_pvt/SylphideMath/SylphideMath_wrap.cxx', line 5203

SWIGINTERN VALUE _wrap_ComplexD___sub__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs + 1;
  argv[0] = self;
  if (argc > 3) SWIG_fail;
  for (ii = 1; (ii < argc); ++ii) {
    argv[ii] = args[ii-1];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ComplexT_double_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = swig::check<Complex< double > * >(argv[1]) || swig::check<Complex< double > >(argv[1]);
      }
      if (_v) {
        return _wrap_ComplexD___sub____SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ComplexT_double_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_ComplexD___sub____SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "ComplexD.__sub__", 
    "    Complex< double > ComplexD.__sub__(double const &scalar)\n"
    "    Complex< double > ComplexD.__sub__(Complex< double > const &complex)\n");
  
  return Qnil;
}

#-@(*args) ⇒ Object

call-seq:

-@ -> ComplexD

Substraction operator.



5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
# File 'ext/gps_pvt/SylphideMath/SylphideMath_wrap.cxx', line 5041

SWIGINTERN VALUE
_wrap_ComplexD___neg__(int argc, VALUE *argv, VALUE self) {
  Complex< double > *arg1 = (Complex< double > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Complex< double > result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_ComplexT_double_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Complex< double > const *","operator -", 1, self )); 
  }
  arg1 = reinterpret_cast< Complex< double > * >(argp1);
  result = ((Complex< double > const *)arg1)->operator -();
  {
    vresult = swig::from(result);
  }
  return vresult;
fail:
  return Qnil;
}

#/(*args, self) ⇒ Object Also known as: fdiv

call-seq:

/(double const & scalar) -> ComplexD
/(ComplexD complex) -> ComplexD

An instance method.



5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
# File 'ext/gps_pvt/SylphideMath/SylphideMath_wrap.cxx', line 5391

SWIGINTERN VALUE _wrap_ComplexD___div__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs + 1;
  argv[0] = self;
  if (argc > 3) SWIG_fail;
  for (ii = 1; (ii < argc); ++ii) {
    argv[ii] = args[ii-1];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ComplexT_double_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = swig::check<Complex< double > * >(argv[1]) || swig::check<Complex< double > >(argv[1]);
      }
      if (_v) {
        return _wrap_ComplexD___div____SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ComplexT_double_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_double(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_ComplexD___div____SWIG_0(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "ComplexD.__div__", 
    "    Complex< double > ComplexD.__div__(double const &scalar)\n"
    "    Complex< double > ComplexD.__div__(Complex< double > const &complex)\n");
  
  return Qnil;
}

#==(*args) ⇒ Object

call-seq:

==(complex) -> bool

Equality comparison operator.



4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
# File 'ext/gps_pvt/SylphideMath/SylphideMath_wrap.cxx', line 4819

SWIGINTERN VALUE
_wrap_ComplexD___eq__(int argc, VALUE *argv, VALUE self) {
  Complex< double > *arg1 = (Complex< double > *) 0 ;
  Complex< double > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Complex< double > temp2 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_ComplexT_double_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Complex< double > const *","operator ==", 1, self )); 
  }
  arg1 = reinterpret_cast< Complex< double > * >(argp1);
  {
    if((!SWIG_IsOK(swig::asptr(argv[0], &arg2)))
      && (!SWIG_IsOK(swig::asval(argv[0], (arg2 = &temp2))))){
      SWIG_exception(SWIG_TypeError, "in method 'operator ==', expecting type Complex< double >");
    }
  }
  result = (bool)((Complex< double > const *)arg1)->operator ==((Complex< double > const &)*arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}

#abs(*args) ⇒ Object Also known as: magnitude

call-seq:

abs -> double

An instance method.



4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
# File 'ext/gps_pvt/SylphideMath/SylphideMath_wrap.cxx', line 4639

SWIGINTERN VALUE
_wrap_ComplexD_abs(int argc, VALUE *argv, VALUE self) {
  Complex< double > *arg1 = (Complex< double > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_ComplexT_double_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Complex< double > const *","abs", 1, self )); 
  }
  arg1 = reinterpret_cast< Complex< double > * >(argp1);
  result = (double)((Complex< double > const *)arg1)->abs();
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#abs2(*args) ⇒ Object

call-seq:

abs2 -> double

An instance method.



4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
# File 'ext/gps_pvt/SylphideMath/SylphideMath_wrap.cxx', line 4606

SWIGINTERN VALUE
_wrap_ComplexD_abs2(int argc, VALUE *argv, VALUE self) {
  Complex< double > *arg1 = (Complex< double > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_ComplexT_double_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Complex< double > const *","abs2", 1, self )); 
  }
  arg1 = reinterpret_cast< Complex< double > * >(argp1);
  result = (double)((Complex< double > const *)arg1)->abs2();
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#arg(*args) ⇒ Object Also known as: angle, phase

call-seq:

arg -> double

An instance method.



4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
# File 'ext/gps_pvt/SylphideMath/SylphideMath_wrap.cxx', line 4672

SWIGINTERN VALUE
_wrap_ComplexD_arg(int argc, VALUE *argv, VALUE self) {
  Complex< double > *arg1 = (Complex< double > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_ComplexT_double_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Complex< double > const *","arg", 1, self )); 
  }
  arg1 = reinterpret_cast< Complex< double > * >(argp1);
  result = (double)((Complex< double > const *)arg1)->arg();
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#conjugate(*args) ⇒ Object Also known as: conj

call-seq:

conjugate -> ComplexD

An instance method.



4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
# File 'ext/gps_pvt/SylphideMath/SylphideMath_wrap.cxx', line 4785

SWIGINTERN VALUE
_wrap_ComplexD_conjugate(int argc, VALUE *argv, VALUE self) {
  Complex< double > *arg1 = (Complex< double > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Complex< double > result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_ComplexT_double_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Complex< double > const *","conjugate", 1, self )); 
  }
  arg1 = reinterpret_cast< Complex< double > * >(argp1);
  result = ((Complex< double > const *)arg1)->conjugate();
  {
    vresult = swig::from(result);
  }
  return vresult;
fail:
  return Qnil;
}

#finite?(*args) ⇒ Boolean

call-seq:

finite? -> bool

An instance method.

Returns:

  • (Boolean)


4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
# File 'ext/gps_pvt/SylphideMath/SylphideMath_wrap.cxx', line 4573

SWIGINTERN VALUE
_wrap_ComplexD_finiteq___(int argc, VALUE *argv, VALUE self) {
  Complex< double > *arg1 = (Complex< double > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_ComplexT_double_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Complex< double > const *","isfinite", 1, self )); 
  }
  arg1 = reinterpret_cast< Complex< double > * >(argp1);
  result = (bool)((Complex< double > const *)arg1)->isfinite();
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}

#imaginary(*args) ⇒ Object Also known as: imag

call-seq:

imaginary -> double

An instance method.



5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
# File 'ext/gps_pvt/SylphideMath/SylphideMath_wrap.cxx', line 5850

SWIGINTERN VALUE
_wrap_ComplexD_imaginary(int argc, VALUE *argv, VALUE self) {
  Complex< double > *arg1 = (Complex< double > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_ComplexT_double_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Complex< double > *","get_imaginary", 1, self )); 
  }
  arg1 = reinterpret_cast< Complex< double > * >(argp1);
  result = (double)Complex_Sl_double_Sg__get_imaginary(arg1);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#imaginary=(*args) ⇒ Object Also known as: imag=

call-seq:

imaginary=(double const & v) -> double

An instance method.



5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
# File 'ext/gps_pvt/SylphideMath/SylphideMath_wrap.cxx', line 5807

SWIGINTERN VALUE
_wrap_ComplexD_imaginarye___(int argc, VALUE *argv, VALUE self) {
  Complex< double > *arg1 = (Complex< double > *) 0 ;
  double *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double temp2 ;
  double val2 ;
  int ecode2 = 0 ;
  double result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_ComplexT_double_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Complex< double > *","set_imaginary", 1, self )); 
  }
  arg1 = reinterpret_cast< Complex< double > * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","set_imaginary", 2, argv[0] ));
  } 
  temp2 = static_cast< double >(val2);
  arg2 = &temp2;
  result = (double)Complex_Sl_double_Sg__set_imaginary(arg1,(double const &)*arg2);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#infinite?(*args) ⇒ Boolean

call-seq:

infinite? -> bool

An instance method.

Returns:

  • (Boolean)


4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
# File 'ext/gps_pvt/SylphideMath/SylphideMath_wrap.cxx', line 4540

SWIGINTERN VALUE
_wrap_ComplexD_infiniteq___(int argc, VALUE *argv, VALUE self) {
  Complex< double > *arg1 = (Complex< double > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_ComplexT_double_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Complex< double > const *","isinf", 1, self )); 
  }
  arg1 = reinterpret_cast< Complex< double > * >(argp1);
  result = (bool)((Complex< double > const *)arg1)->isinf();
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}

#power(*args) ⇒ Object Also known as: **

call-seq:

power(double const & factor) -> ComplexD

An instance method.



4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
# File 'ext/gps_pvt/SylphideMath/SylphideMath_wrap.cxx', line 4705

SWIGINTERN VALUE
_wrap_ComplexD_power(int argc, VALUE *argv, VALUE self) {
  Complex< double > *arg1 = (Complex< double > *) 0 ;
  double *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double temp2 ;
  double val2 ;
  int ecode2 = 0 ;
  Complex< double > result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_ComplexT_double_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Complex< double > const *","power", 1, self )); 
  }
  arg1 = reinterpret_cast< Complex< double > * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","power", 2, argv[0] ));
  } 
  temp2 = static_cast< double >(val2);
  arg2 = &temp2;
  result = ((Complex< double > const *)arg1)->power((double const &)*arg2);
  {
    vresult = swig::from(result);
  }
  return vresult;
fail:
  return Qnil;
}

#real(*args) ⇒ Object

call-seq:

real -> double

An instance method.



5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
# File 'ext/gps_pvt/SylphideMath/SylphideMath_wrap.cxx', line 5774

SWIGINTERN VALUE
_wrap_ComplexD_real(int argc, VALUE *argv, VALUE self) {
  Complex< double > *arg1 = (Complex< double > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_ComplexT_double_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Complex< double > *","get_real", 1, self )); 
  }
  arg1 = reinterpret_cast< Complex< double > * >(argp1);
  result = (double)Complex_Sl_double_Sg__get_real(arg1);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#real=(*args) ⇒ Object

call-seq:

real=(double const & v) -> double

An instance method.



5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
# File 'ext/gps_pvt/SylphideMath/SylphideMath_wrap.cxx', line 5731

SWIGINTERN VALUE
_wrap_ComplexD_reale___(int argc, VALUE *argv, VALUE self) {
  Complex< double > *arg1 = (Complex< double > *) 0 ;
  double *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double temp2 ;
  double val2 ;
  int ecode2 = 0 ;
  double result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_ComplexT_double_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Complex< double > *","set_real", 1, self )); 
  }
  arg1 = reinterpret_cast< Complex< double > * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","set_real", 2, argv[0] ));
  } 
  temp2 = static_cast< double >(val2);
  arg2 = &temp2;
  result = (double)Complex_Sl_double_Sg__set_real(arg1,(double const &)*arg2);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#sqrt(*args) ⇒ Object

call-seq:

sqrt -> ComplexD

An instance method.



4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
# File 'ext/gps_pvt/SylphideMath/SylphideMath_wrap.cxx', line 4750

SWIGINTERN VALUE
_wrap_ComplexD_sqrt(int argc, VALUE *argv, VALUE self) {
  Complex< double > *arg1 = (Complex< double > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Complex< double > result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_ComplexT_double_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Complex< double > const *","sqrt", 1, self )); 
  }
  arg1 = reinterpret_cast< Complex< double > * >(argp1);
  result = ((Complex< double > const *)arg1)->sqrt();
  {
    vresult = swig::from(result);
  }
  return vresult;
fail:
  return Qnil;
}

#to_s(*args) ⇒ Object

call-seq:

to_s -> std::string

An instance method.



5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
# File 'ext/gps_pvt/SylphideMath/SylphideMath_wrap.cxx', line 5883

SWIGINTERN VALUE
_wrap_ComplexD___str__(int argc, VALUE *argv, VALUE self) {
  Complex< double > *arg1 = (Complex< double > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::string result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_ComplexT_double_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Complex< double > const *","__str__", 1, self )); 
  }
  arg1 = reinterpret_cast< Complex< double > * >(argp1);
  result = Complex_Sl_double_Sg____str__((Complex< double > const *)arg1);
  vresult = SWIG_From_std_string(static_cast< std::string >(result));
  return vresult;
fail:
  return Qnil;
}