Sha256: e5623e7be6dda8a0b0e5183d8c21a59b5e1d2bac4c2726c85c5b595792f91f0e

Contents?: true

Size: 1.34 KB

Versions: 12

Compression:

Stored size: 1.34 KB

Contents

o:$YARD::CodeObjects::MethodObject:@scope:
instance:@visibility:public:
@pathI"Complex#*:EF:@parameters[:@files[[I"complex.c;T0:@current_file_has_commentsF:
@name:*:@source_type:c:
@tags[:@docstringIC:YARD::Docstring"Performs multiplication.;F:@objectIu:YARD::StubProxyComplex#*;F:
@summary0:@ref_tags[;[o:YARD::Tags::OverloadTag
:@tag_nameI"
overload;F:
@text0;;:@types0:@signatureI"*(numeric);F;IC;";F;Iu;Complex#*;F;0;[;[:	@allI";F;[[:numeric0;Iu;Complex#*;F;I"4Performs multiplication.


@overload *(numeric);F:@namespaceIu;Complex;F:@docstring_extra0:@sourceI"Î/*
 * call-seq:
 *    cmp * numeric  ->  complex
 *
 * Performs multiplication.
 */
static VALUE
nucomp_mul(VALUE self, VALUE other)
{
    if (k_complex_p(other)) {
    VALUE real, imag;

    get_dat2(self, other);

    real = f_sub(f_mul(adat->real, bdat->real),
             f_mul(adat->imag, bdat->imag));
    imag = f_add(f_mul(adat->real, bdat->imag),
             f_mul(adat->imag, bdat->real));

    return f_complex_new2(CLASS_OF(self), real, imag);
    }
    if (k_numeric_p(other) && f_real_p(other)) {
    get_dat1(self);

    return f_complex_new2(CLASS_OF(self),
                  f_mul(dat->real, other),
                  f_mul(dat->imag, other));
    }
    return rb_num_coerce_bin(self, other, '*');
};F

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
pry-doc-0.4.4 lib/pry-doc/core_docs_19/objects/Complex/_2A_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_19/objects/Complex/_2A_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_19/objects/Complex/_2A_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_19/objects/Complex/_2A_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_19/objects/Complex/_2A_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_19/objects/Complex/_2A_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_19/objects/Complex/_2A_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_19/objects/Complex/_2A_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_19/objects/Complex/_2A_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_19/objects/Complex/_2A_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_19/objects/Complex/_2A_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_19/objects/Complex/_2A_i.dat