Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Макаров Денис Дмитриевич
Laba_3
Commits
df009351
Commit
df009351
authored
1 year ago
by
Макаров Денис Дмитриевич
Browse files
Options
Download
Patches
Plain Diff
Заполнил файл констант дял второго пункта
parent
48f50c86
master
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.DS_Store
+0
-0
.DS_Store
source/constant.h
+22
-0
source/constant.h
with
22 additions
and
0 deletions
+22
-0
.DS_Store
+
0
−
0
View file @
df009351
No preview for this file type
This diff is collapsed.
Click to expand it.
source/constant.h
+
22
−
0
View file @
df009351
#pragma once
#include
"matrix_new.h"
#include
"graph.h"
#include
<vector>
#include
<limits>
#include
<set>
//хранит уникальные элементы в отсортированном порядке
using
node_name_t
=
unsigned
int
;
using
weight_t
=
double
;
using
matrix_t
=
linalg
::
Matrix
<
weight_t
>
;
template
<
typename
T
>
using
graph_t
=
graph
::
Graph
<
node_name_t
,
T
,
weight_t
>
using
components_t
=
std
::
set
<
std
::
set
<
node_name_t
>>
;
using
route_t
=
std
::
vector
<
node_name_t
>
const
double
INF
=
std
::
numeric_limits
<
double
>::
infinity
();
const
double
EPS
=
srd
::
numeric_limits
<
double
>::
epsilon
();
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets