-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProblem-bsfTypes.h
More file actions
35 lines (31 loc) · 1.16 KB
/
Copy pathProblem-bsfTypes.h
File metadata and controls
35 lines (31 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*==============================================================================
Project: Bulk Synchronous Farm (BSF)
Theme: BSF Cimmino
Module: Problem-bsfTypes.h (Predefined Problem-depended BSF Types)
Prefix: PT_bsf
Author: Leonid B. Sokolinsky
This source code is a part of BSF Skeleton (https://github.com/leonid-sokolinsky/BSF-skeleton)
==============================================================================*/
#pragma once
#include "Problem-Types.h" // Problem Types
//=========================== BSF Types =========================
struct PT_bsf_parameter_T {
PT_vector_T x; // Current approximation
};
struct PT_bsf_mapElem_T {
PT_vector_T a; // Left side of the equation a[0]*x_1+...+a[n-1]*x_n = b
PT_float_T b; // Right side of the equation a[0]*x_1+...+a[n-1]*x_n = b
PT_float_T normSquare; // normSquare = a[0]*a[0]+...+a[n-1]*a[n-1]
};
struct PT_bsf_reduceElem_T {
PT_vector_T projection; // ProjectionVector of point onto hyperplane
};
struct PT_bsf_reduceElem_T_1 {
// optional filling
};
struct PT_bsf_reduceElem_T_2 {
// optional filling
};
struct PT_bsf_reduceElem_T_3 {
// optional filling
};