Class

NumCosmoMathISet

Description [src]

final class NumCosmoMath.ISet : GObject.Object
{
  /* No available fields */
}

Index set object.

NcmISet is an object that stores a set of indexes. It is used to store the indexes of the components of a vector or matrix that are being used in a calculation.

Ancestors

Constructors

ncm_iset_new

Creates a new NcmISet object.

Functions

ncm_iset_clear

Decrease the reference count of iset by one, and sets the pointer *iset to NULL.

Instance methods

ncm_iset_add

Adds the index $i$ to the set.

ncm_iset_add_largest_subset

Adds indexes to iset using the largest values of v satisfying $v_i > \mu$ where $i \in $ complement of iset.

ncm_iset_add_range

Adds the interval $(i_i, i_f]$ to the set. Note that $i_f$ is not included.

ncm_iset_copy
No description available.

ncm_iset_del

Removes the index $i$ from the set.

ncm_iset_free

Decrease the reference count of iset by one.

ncm_iset_get_len
No description available.

ncm_iset_get_max_size
No description available.

ncm_iset_get_subarray

Construct a continuous array using the values from a and the indexes in iset. If a_dup is not null use this array to build the subarray, otherwise, allocates a new array.

ncm_iset_get_submatrix

Construct a continuous matrix square $S$ using the values from the square matrix M and the indexes in iset. If M_dup is not null use this matrix to build the submatrix, otherwise, allocates a new matrix.

ncm_iset_get_submatrix_colmajor_cols

Construct a continuous matrix rectangular $S$ using the columns from the rectangular matrix M and the indexes in iset. If M_dup is not null use this matrix to build the submatrix, otherwise, allocates a new matrix. It writes the columns in $S$ using a colmajor memory scheme. This is useful when using the output matrix into Lapack routines.

ncm_iset_get_submatrix_cols

Construct a continuous matrix rectangular $S$ using the columns from the rectangular matrix M and the indexes in iset. If M_dup is not null use this matrix to build the submatrix, otherwise, allocates a new matrix.

ncm_iset_get_subset_vec_lt

Gets the subset (out) of iset where $v_i < t$.

ncm_iset_get_subvector

Construct a continuous vector $s$ using the values from v and the indexes in iset. If v_dup is not null use this vector to build the subvector, otherwise, allocates a new vector.

ncm_iset_get_sym_submatrix

Construct a continuous symmetric matrix $S$ using the values from M and the indexes in iset. If M_dup is not null use this matrix to build the submatrix, otherwise, allocates a new matrix. If UL == ‘U’/’L’ only the Upper/Lower triangle will be copied.

ncm_iset_get_vector_inv_cmp

Computes the inverse of the relative difference between vectors u and v, namely: $$\left(\frac{u_i - v_i}{u_i}\right)^{-1},$$ for indexes $i \in $ iset.

ncm_iset_get_vector_max

Finds the maximum component of the vector v.

ncm_iset_log_vals

Logs the indexes on iset with prefix prefix.

ncm_iset_ref

Increase the reference of iset by one.

ncm_iset_remove_smallest_subset

Removes indexes of iset from target based on the values on v. The first max_remove indexes from target matching the smallest components of v are removed.

ncm_iset_remove_subset

Removes indexes of iset from target.

ncm_iset_reset

Removes all indexes from the set.

ncm_iset_set_complement

Sets cmplm as the complement of iset.

ncm_iset_set_subvector

Copies the components from sub to the indexes iset in v.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

NumCosmoMath.ISet:max-index
No description available.

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct NumCosmoMathISetClass {
  GObjectClass parent_class;
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.