Module: Numo::DFloat::Math

Defined in:
ext/numo/narray/types/dfloat.c

Class Method Summary collapse

Class Method Details

.acos(x) ⇒ Numo::DFloat

Calculate acos(x).

Parameters:

Returns:



5867
5868
5869
5870
5871
5872
5873
5874
5875
# File 'ext/numo/narray/types/dfloat.c', line 5867

static VALUE
numo_dfloat_acos(VALUE mod, VALUE a1)
{
    ndfunc_arg_in_t ain[1] = {{cT,0}};
    ndfunc_arg_out_t aout[1] = {{cT,0}};
    ndfunc_t ndf = { iter_dfloat_acos, FULL_LOOP, 1, 1, ain, aout };

    return na_ndloop(&ndf, 1, a1);
}

.acosh(x) ⇒ Numo::DFloat

Calculate acosh(x).

Parameters:

Returns:



6233
6234
6235
6236
6237
6238
6239
6240
6241
# File 'ext/numo/narray/types/dfloat.c', line 6233

static VALUE
numo_dfloat_acosh(VALUE mod, VALUE a1)
{
    ndfunc_arg_in_t ain[1] = {{cT,0}};
    ndfunc_arg_out_t aout[1] = {{cT,0}};
    ndfunc_t ndf = { iter_dfloat_acosh, FULL_LOOP, 1, 1, ain, aout };

    return na_ndloop(&ndf, 1, a1);
}

.asin(x) ⇒ Numo::DFloat

Calculate asin(x).

Parameters:

Returns:



5806
5807
5808
5809
5810
5811
5812
5813
5814
# File 'ext/numo/narray/types/dfloat.c', line 5806

static VALUE
numo_dfloat_asin(VALUE mod, VALUE a1)
{
    ndfunc_arg_in_t ain[1] = {{cT,0}};
    ndfunc_arg_out_t aout[1] = {{cT,0}};
    ndfunc_t ndf = { iter_dfloat_asin, FULL_LOOP, 1, 1, ain, aout };

    return na_ndloop(&ndf, 1, a1);
}

.asinh(x) ⇒ Numo::DFloat

Calculate asinh(x).

Parameters:

Returns:



6172
6173
6174
6175
6176
6177
6178
6179
6180
# File 'ext/numo/narray/types/dfloat.c', line 6172

static VALUE
numo_dfloat_asinh(VALUE mod, VALUE a1)
{
    ndfunc_arg_in_t ain[1] = {{cT,0}};
    ndfunc_arg_out_t aout[1] = {{cT,0}};
    ndfunc_t ndf = { iter_dfloat_asinh, FULL_LOOP, 1, 1, ain, aout };

    return na_ndloop(&ndf, 1, a1);
}

.atan(x) ⇒ Numo::DFloat

Calculate atan(x).

Parameters:

Returns:



5928
5929
5930
5931
5932
5933
5934
5935
5936
# File 'ext/numo/narray/types/dfloat.c', line 5928

static VALUE
numo_dfloat_atan(VALUE mod, VALUE a1)
{
    ndfunc_arg_in_t ain[1] = {{cT,0}};
    ndfunc_arg_out_t aout[1] = {{cT,0}};
    ndfunc_t ndf = { iter_dfloat_atan, FULL_LOOP, 1, 1, ain, aout };

    return na_ndloop(&ndf, 1, a1);
}

.atan2(a1, a2) ⇒ Numo::DFloat

Calculate atan2(a1,a2).

Parameters:

Returns:



6333
6334
6335
6336
6337
6338
6339
6340
# File 'ext/numo/narray/types/dfloat.c', line 6333

static VALUE
numo_dfloat_atan2(VALUE mod, VALUE a1, VALUE a2)
{
    ndfunc_arg_in_t ain[2] = {{cT,0},{cT,0}};
    ndfunc_arg_out_t aout[1] = {{cT,0}};
    ndfunc_t ndf = { iter_dfloat_atan2, STRIDE_LOOP, 2, 1, ain, aout };
    return na_ndloop(&ndf, 2, a1, a2);
}

.atanh(x) ⇒ Numo::DFloat

Calculate atanh(x).

Parameters:

Returns:



6294
6295
6296
6297
6298
6299
6300
6301
6302
# File 'ext/numo/narray/types/dfloat.c', line 6294

static VALUE
numo_dfloat_atanh(VALUE mod, VALUE a1)
{
    ndfunc_arg_in_t ain[1] = {{cT,0}};
    ndfunc_arg_out_t aout[1] = {{cT,0}};
    ndfunc_t ndf = { iter_dfloat_atanh, FULL_LOOP, 1, 1, ain, aout };

    return na_ndloop(&ndf, 1, a1);
}

.cbrt(x) ⇒ Numo::DFloat

Calculate cbrt(x).

Parameters:

Returns:



5196
5197
5198
5199
5200
5201
5202
5203
5204
# File 'ext/numo/narray/types/dfloat.c', line 5196

static VALUE
numo_dfloat_cbrt(VALUE mod, VALUE a1)
{
    ndfunc_arg_in_t ain[1] = {{cT,0}};
    ndfunc_arg_out_t aout[1] = {{cT,0}};
    ndfunc_t ndf = { iter_dfloat_cbrt, FULL_LOOP, 1, 1, ain, aout };

    return na_ndloop(&ndf, 1, a1);
}

.cos(x) ⇒ Numo::DFloat

Calculate cos(x).

Parameters:

Returns:



5684
5685
5686
5687
5688
5689
5690
5691
5692
# File 'ext/numo/narray/types/dfloat.c', line 5684

static VALUE
numo_dfloat_cos(VALUE mod, VALUE a1)
{
    ndfunc_arg_in_t ain[1] = {{cT,0}};
    ndfunc_arg_out_t aout[1] = {{cT,0}};
    ndfunc_t ndf = { iter_dfloat_cos, FULL_LOOP, 1, 1, ain, aout };

    return na_ndloop(&ndf, 1, a1);
}

.cosh(x) ⇒ Numo::DFloat

Calculate cosh(x).

Parameters:

Returns:



6050
6051
6052
6053
6054
6055
6056
6057
6058
# File 'ext/numo/narray/types/dfloat.c', line 6050

static VALUE
numo_dfloat_cosh(VALUE mod, VALUE a1)
{
    ndfunc_arg_in_t ain[1] = {{cT,0}};
    ndfunc_arg_out_t aout[1] = {{cT,0}};
    ndfunc_t ndf = { iter_dfloat_cosh, FULL_LOOP, 1, 1, ain, aout };

    return na_ndloop(&ndf, 1, a1);
}

.erf(x) ⇒ Numo::DFloat

Calculate erf(x).

Parameters:

Returns:



6431
6432
6433
6434
6435
6436
6437
6438
6439
# File 'ext/numo/narray/types/dfloat.c', line 6431

static VALUE
numo_dfloat_erf(VALUE mod, VALUE a1)
{
    ndfunc_arg_in_t ain[1] = {{cT,0}};
    ndfunc_arg_out_t aout[1] = {{cT,0}};
    ndfunc_t ndf = { iter_dfloat_erf, FULL_LOOP, 1, 1, ain, aout };

    return na_ndloop(&ndf, 1, a1);
}

.erfc(x) ⇒ Numo::DFloat

Calculate erfc(x).

Parameters:

Returns:



6492
6493
6494
6495
6496
6497
6498
6499
6500
# File 'ext/numo/narray/types/dfloat.c', line 6492

static VALUE
numo_dfloat_erfc(VALUE mod, VALUE a1)
{
    ndfunc_arg_in_t ain[1] = {{cT,0}};
    ndfunc_arg_out_t aout[1] = {{cT,0}};
    ndfunc_t ndf = { iter_dfloat_erfc, FULL_LOOP, 1, 1, ain, aout };

    return na_ndloop(&ndf, 1, a1);
}

.exp(x) ⇒ Numo::DFloat

Calculate exp(x).

Parameters:

Returns:



5440
5441
5442
5443
5444
5445
5446
5447
5448
# File 'ext/numo/narray/types/dfloat.c', line 5440

static VALUE
numo_dfloat_exp(VALUE mod, VALUE a1)
{
    ndfunc_arg_in_t ain[1] = {{cT,0}};
    ndfunc_arg_out_t aout[1] = {{cT,0}};
    ndfunc_t ndf = { iter_dfloat_exp, FULL_LOOP, 1, 1, ain, aout };

    return na_ndloop(&ndf, 1, a1);
}

.exp10(x) ⇒ Numo::DFloat

Calculate exp10(x).

Parameters:

Returns:



5562
5563
5564
5565
5566
5567
5568
5569
5570
# File 'ext/numo/narray/types/dfloat.c', line 5562

static VALUE
numo_dfloat_exp10(VALUE mod, VALUE a1)
{
    ndfunc_arg_in_t ain[1] = {{cT,0}};
    ndfunc_arg_out_t aout[1] = {{cT,0}};
    ndfunc_t ndf = { iter_dfloat_exp10, FULL_LOOP, 1, 1, ain, aout };

    return na_ndloop(&ndf, 1, a1);
}

.exp2(x) ⇒ Numo::DFloat

Calculate exp2(x).

Parameters:

Returns:



5501
5502
5503
5504
5505
5506
5507
5508
5509
# File 'ext/numo/narray/types/dfloat.c', line 5501

static VALUE
numo_dfloat_exp2(VALUE mod, VALUE a1)
{
    ndfunc_arg_in_t ain[1] = {{cT,0}};
    ndfunc_arg_out_t aout[1] = {{cT,0}};
    ndfunc_t ndf = { iter_dfloat_exp2, FULL_LOOP, 1, 1, ain, aout };

    return na_ndloop(&ndf, 1, a1);
}

.hypot(a1, a2) ⇒ Numo::DFloat

Calculate hypot(a1,a2).

Parameters:

Returns:



6371
6372
6373
6374
6375
6376
6377
6378
# File 'ext/numo/narray/types/dfloat.c', line 6371

static VALUE
numo_dfloat_hypot(VALUE mod, VALUE a1, VALUE a2)
{
    ndfunc_arg_in_t ain[2] = {{cT,0},{cT,0}};
    ndfunc_arg_out_t aout[1] = {{cT,0}};
    ndfunc_t ndf = { iter_dfloat_hypot, STRIDE_LOOP, 2, 1, ain, aout };
    return na_ndloop(&ndf, 2, a1, a2);
}

.ldexp(a1, a2) ⇒ Numo::DFloat

Calculate ldexp(a1,a2).

Parameters:

Returns:



6531
6532
6533
6534
6535
6536
6537
6538
# File 'ext/numo/narray/types/dfloat.c', line 6531

static VALUE
numo_dfloat_ldexp(VALUE mod, VALUE a1, VALUE a2)
{
    ndfunc_arg_in_t ain[2] = {{cT,0},{cT,0}};
    ndfunc_arg_out_t aout[1] = {{cT,0}};
    ndfunc_t ndf = { iter_dfloat_ldexp, STRIDE_LOOP, 2, 1, ain, aout };
    return na_ndloop(&ndf, 2, a1, a2);
}

.log(x) ⇒ Numo::DFloat

Calculate log(x).

Parameters:

Returns:



5257
5258
5259
5260
5261
5262
5263
5264
5265
# File 'ext/numo/narray/types/dfloat.c', line 5257

static VALUE
numo_dfloat_log(VALUE mod, VALUE a1)
{
    ndfunc_arg_in_t ain[1] = {{cT,0}};
    ndfunc_arg_out_t aout[1] = {{cT,0}};
    ndfunc_t ndf = { iter_dfloat_log, FULL_LOOP, 1, 1, ain, aout };

    return na_ndloop(&ndf, 1, a1);
}

.log10(x) ⇒ Numo::DFloat

Calculate log10(x).

Parameters:

Returns:



5379
5380
5381
5382
5383
5384
5385
5386
5387
# File 'ext/numo/narray/types/dfloat.c', line 5379

static VALUE
numo_dfloat_log10(VALUE mod, VALUE a1)
{
    ndfunc_arg_in_t ain[1] = {{cT,0}};
    ndfunc_arg_out_t aout[1] = {{cT,0}};
    ndfunc_t ndf = { iter_dfloat_log10, FULL_LOOP, 1, 1, ain, aout };

    return na_ndloop(&ndf, 1, a1);
}

.log2(x) ⇒ Numo::DFloat

Calculate log2(x).

Parameters:

Returns:



5318
5319
5320
5321
5322
5323
5324
5325
5326
# File 'ext/numo/narray/types/dfloat.c', line 5318

static VALUE
numo_dfloat_log2(VALUE mod, VALUE a1)
{
    ndfunc_arg_in_t ain[1] = {{cT,0}};
    ndfunc_arg_out_t aout[1] = {{cT,0}};
    ndfunc_t ndf = { iter_dfloat_log2, FULL_LOOP, 1, 1, ain, aout };

    return na_ndloop(&ndf, 1, a1);
}

.sin(x) ⇒ Numo::DFloat

Calculate sin(x).

Parameters:

Returns:



5623
5624
5625
5626
5627
5628
5629
5630
5631
# File 'ext/numo/narray/types/dfloat.c', line 5623

static VALUE
numo_dfloat_sin(VALUE mod, VALUE a1)
{
    ndfunc_arg_in_t ain[1] = {{cT,0}};
    ndfunc_arg_out_t aout[1] = {{cT,0}};
    ndfunc_t ndf = { iter_dfloat_sin, FULL_LOOP, 1, 1, ain, aout };

    return na_ndloop(&ndf, 1, a1);
}

.sinh(x) ⇒ Numo::DFloat

Calculate sinh(x).

Parameters:

Returns:



5989
5990
5991
5992
5993
5994
5995
5996
5997
# File 'ext/numo/narray/types/dfloat.c', line 5989

static VALUE
numo_dfloat_sinh(VALUE mod, VALUE a1)
{
    ndfunc_arg_in_t ain[1] = {{cT,0}};
    ndfunc_arg_out_t aout[1] = {{cT,0}};
    ndfunc_t ndf = { iter_dfloat_sinh, FULL_LOOP, 1, 1, ain, aout };

    return na_ndloop(&ndf, 1, a1);
}

.sqrt(x) ⇒ Numo::DFloat

Calculate sqrt(x).

Parameters:

Returns:



5135
5136
5137
5138
5139
5140
5141
5142
5143
# File 'ext/numo/narray/types/dfloat.c', line 5135

static VALUE
numo_dfloat_sqrt(VALUE mod, VALUE a1)
{
    ndfunc_arg_in_t ain[1] = {{cT,0}};
    ndfunc_arg_out_t aout[1] = {{cT,0}};
    ndfunc_t ndf = { iter_dfloat_sqrt, FULL_LOOP, 1, 1, ain, aout };

    return na_ndloop(&ndf, 1, a1);
}

.tan(x) ⇒ Numo::DFloat

Calculate tan(x).

Parameters:

Returns:



5745
5746
5747
5748
5749
5750
5751
5752
5753
# File 'ext/numo/narray/types/dfloat.c', line 5745

static VALUE
numo_dfloat_tan(VALUE mod, VALUE a1)
{
    ndfunc_arg_in_t ain[1] = {{cT,0}};
    ndfunc_arg_out_t aout[1] = {{cT,0}};
    ndfunc_t ndf = { iter_dfloat_tan, FULL_LOOP, 1, 1, ain, aout };

    return na_ndloop(&ndf, 1, a1);
}

.tanh(x) ⇒ Numo::DFloat

Calculate tanh(x).

Parameters:

Returns:



6111
6112
6113
6114
6115
6116
6117
6118
6119
# File 'ext/numo/narray/types/dfloat.c', line 6111

static VALUE
numo_dfloat_tanh(VALUE mod, VALUE a1)
{
    ndfunc_arg_in_t ain[1] = {{cT,0}};
    ndfunc_arg_out_t aout[1] = {{cT,0}};
    ndfunc_t ndf = { iter_dfloat_tanh, FULL_LOOP, 1, 1, ain, aout };

    return na_ndloop(&ndf, 1, a1);
}