AgsComplex

AgsComplex — Boxed type of complex

Functions

Object Hierarchy

    GBoxed
    ╰── AgsComplex

Includes

#include <ags/lib/ags_complex.h>

Description

GBoxed of complex data type.

Functions

ags_complex_alloc ()

AgsComplex *
ags_complex_alloc ();

Allocate AgsComplex

Returns

a new AgsComplex

Since: 0.7.1


ags_complex_copy ()

gpointer
ags_complex_copy (AgsComplex *ptr);

Create a copy of ptr .

Parameters

ptr

the original AgsCopy

 

Returns

a pointer of the new AgsComplex

Since: 0.7.1


ags_complex_free ()

void
ags_complex_free (AgsComplex *ptr);

Frees the memory of ptr .

Parameters

ptr

the AgsComplex

 

Since: 0.7.1


ags_complex_get ()

complex
ags_complex_get (AgsComplex *ptr);

Get complex number.

Parameters

ptr

the AgsComplex

 

Returns

number as complex data type

Since: 0.7.1


ags_complex_set ()

void
ags_complex_set (AgsComplex *ptr,
                 complex z);

Set complex number.

Parameters

ptr

the AgsComplex

 

z

the complex data to set

 

Since: 0.7.1

Types and Values