MOOCHO (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions | Variables
RTOp_ROp_norms.c File Reference
#include <math.h>
#include "RTOp_ROp_norms.h"
#include "RTOp_obj_null_vtbl.h"
#include "RTOp_obj_value_vtbl.h"
#include "RTOp_reduct_sum_value.h"
#include "RTOp_reduct_max_value.h"
Include dependency graph for RTOp_ROp_norms.c:

Go to the source code of this file.

Macros

#define MY_MAX(a, b)   a > b ? a : b
 

Functions

static int RTOp_ROp_norms_apply_op_norm_1 (const struct RTOp_RTOp_vtbl_t *vtbl, const void *obj_data, const int num_vecs, const struct RTOp_SubVector vecs[], const int num_targ_vecs, const struct RTOp_MutableSubVector targ_vecs[], RTOp_ReductTarget targ_obj)
 
int RTOp_ROp_norm_1_construct (struct RTOp_RTOp *op)
 
RTOp_value_type RTOp_ROp_norm_1_val (RTOp_ReductTarget targ_obj)
 
static int RTOp_ROp_norms_apply_op_norm_2 (const struct RTOp_RTOp_vtbl_t *vtbl, const void *obj_data, const int num_vecs, const struct RTOp_SubVector vecs[], const int num_targ_vecs, const struct RTOp_MutableSubVector targ_vecs[], RTOp_ReductTarget targ_obj)
 
int RTOp_ROp_norm_2_construct (struct RTOp_RTOp *op)
 
RTOp_value_type RTOp_ROp_norm_2_val (RTOp_ReductTarget targ_obj)
 
static int RTOp_ROp_norms_apply_op_norm_inf (const struct RTOp_RTOp_vtbl_t *vtbl, const void *obj_data, const int num_vecs, const struct RTOp_SubVector vecs[], const int num_targ_vecs, const struct RTOp_MutableSubVector targ_vecs[], RTOp_ReductTarget targ_obj)
 
int RTOp_ROp_norm_inf_construct (struct RTOp_RTOp *op)
 
RTOp_value_type RTOp_ROp_norm_inf_val (RTOp_ReductTarget targ_obj)
 
int RTOp_ROp_norm_destroy (struct RTOp_RTOp *op)
 

Variables

const struct RTOp_RTOp_vtbl_t RTOp_ROp_norm_1_vtbl
 
const struct RTOp_RTOp_vtbl_t RTOp_ROp_norm_2_vtbl
 
const struct RTOp_RTOp_vtbl_t RTOp_ROp_norm_inf_vtbl
 

Macro Definition Documentation

#define MY_MAX (   a,
 
)    a > b ? a : b

Definition at line 52 of file RTOp_ROp_norms.c.

Function Documentation

static int RTOp_ROp_norms_apply_op_norm_1 ( const struct RTOp_RTOp_vtbl_t vtbl,
const void obj_data,
const int  num_vecs,
const struct RTOp_SubVector  vecs[],
const int  num_targ_vecs,
const struct RTOp_MutableSubVector  targ_vecs[],
RTOp_ReductTarget  targ_obj 
)
static

Definition at line 56 of file RTOp_ROp_norms.c.

int RTOp_ROp_norm_1_construct ( struct RTOp_RTOp op)

Definition at line 109 of file RTOp_ROp_norms.c.

RTOp_value_type RTOp_ROp_norm_1_val ( RTOp_ReductTarget  targ_obj)

Definition at line 116 of file RTOp_ROp_norms.c.

static int RTOp_ROp_norms_apply_op_norm_2 ( const struct RTOp_RTOp_vtbl_t vtbl,
const void obj_data,
const int  num_vecs,
const struct RTOp_SubVector  vecs[],
const int  num_targ_vecs,
const struct RTOp_MutableSubVector  targ_vecs[],
RTOp_ReductTarget  targ_obj 
)
static

Definition at line 126 of file RTOp_ROp_norms.c.

int RTOp_ROp_norm_2_construct ( struct RTOp_RTOp op)

Definition at line 178 of file RTOp_ROp_norms.c.

RTOp_value_type RTOp_ROp_norm_2_val ( RTOp_ReductTarget  targ_obj)

Definition at line 185 of file RTOp_ROp_norms.c.

static int RTOp_ROp_norms_apply_op_norm_inf ( const struct RTOp_RTOp_vtbl_t vtbl,
const void obj_data,
const int  num_vecs,
const struct RTOp_SubVector  vecs[],
const int  num_targ_vecs,
const struct RTOp_MutableSubVector  targ_vecs[],
RTOp_ReductTarget  targ_obj 
)
static

Definition at line 195 of file RTOp_ROp_norms.c.

int RTOp_ROp_norm_inf_construct ( struct RTOp_RTOp op)

Definition at line 247 of file RTOp_ROp_norms.c.

RTOp_value_type RTOp_ROp_norm_inf_val ( RTOp_ReductTarget  targ_obj)

Definition at line 254 of file RTOp_ROp_norms.c.

int RTOp_ROp_norm_destroy ( struct RTOp_RTOp op)

Definition at line 264 of file RTOp_ROp_norms.c.

Variable Documentation

const struct RTOp_RTOp_vtbl_t RTOp_ROp_norm_1_vtbl
Initial value:
=
{
,"RTOp_ROp_norm_1"
,NULL
}
static int RTOp_ROp_norms_apply_op_norm_1(const struct RTOp_RTOp_vtbl_t *vtbl, const void *obj_data, const int num_vecs, const struct RTOp_SubVector vecs[], const int num_targ_vecs, const struct RTOp_MutableSubVector targ_vecs[], RTOp_ReductTarget targ_obj)
int RTOp_reduct_sum_value(const struct RTOp_RTOp_vtbl_t *vtbl, const void *obj_data, RTOp_ReductTarget in_targ_obj, RTOp_ReductTarget inout_targ_obj)
const struct RTOp_obj_type_vtbl_t RTOp_obj_null_vtbl
const struct RTOp_obj_type_vtbl_t RTOp_obj_value_vtbl
int RTOp_get_reduct_sum_value_op(const struct RTOp_RTOp_vtbl_t *vtbl, const void *obj_data, RTOp_reduct_op_func_ptr_t *reduct_op_func_ptr)

Definition at line 98 of file RTOp_ROp_norms.c.

const struct RTOp_RTOp_vtbl_t RTOp_ROp_norm_2_vtbl
Initial value:
=
{
,"RTOp_ROp_norm_2"
,NULL
}
int RTOp_reduct_sum_value(const struct RTOp_RTOp_vtbl_t *vtbl, const void *obj_data, RTOp_ReductTarget in_targ_obj, RTOp_ReductTarget inout_targ_obj)
static int RTOp_ROp_norms_apply_op_norm_2(const struct RTOp_RTOp_vtbl_t *vtbl, const void *obj_data, const int num_vecs, const struct RTOp_SubVector vecs[], const int num_targ_vecs, const struct RTOp_MutableSubVector targ_vecs[], RTOp_ReductTarget targ_obj)
const struct RTOp_obj_type_vtbl_t RTOp_obj_null_vtbl
const struct RTOp_obj_type_vtbl_t RTOp_obj_value_vtbl
int RTOp_get_reduct_sum_value_op(const struct RTOp_RTOp_vtbl_t *vtbl, const void *obj_data, RTOp_reduct_op_func_ptr_t *reduct_op_func_ptr)

Definition at line 167 of file RTOp_ROp_norms.c.

const struct RTOp_RTOp_vtbl_t RTOp_ROp_norm_inf_vtbl
Initial value:
=
{
,"RTOp_ROp_norm_inf"
,NULL
}
static int RTOp_ROp_norms_apply_op_norm_inf(const struct RTOp_RTOp_vtbl_t *vtbl, const void *obj_data, const int num_vecs, const struct RTOp_SubVector vecs[], const int num_targ_vecs, const struct RTOp_MutableSubVector targ_vecs[], RTOp_ReductTarget targ_obj)
int RTOp_get_reduct_max_value_op(const struct RTOp_RTOp_vtbl_t *vtbl, const void *obj_data, RTOp_reduct_op_func_ptr_t *reduct_op_func_ptr)
const struct RTOp_obj_type_vtbl_t RTOp_obj_null_vtbl
int RTOp_reduct_max_value(const struct RTOp_RTOp_vtbl_t *vtbl, const void *obj_data, RTOp_ReductTarget in_targ_obj, RTOp_ReductTarget inout_targ_obj)
const struct RTOp_obj_type_vtbl_t RTOp_obj_value_vtbl

Definition at line 236 of file RTOp_ROp_norms.c.