Graphviz
14.0.2~dev.20251015.0935
Loading...
Searching...
No Matches
sgd.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <stddef.h>
4
#include <
util/api.h
>
5
#include <
util/bitarray.h
>
6
7
#ifdef __cplusplus
8
extern
"C"
{
9
#endif
10
11
typedef
struct
{
12
int
i
, j;
13
float
d
, w;
14
}
term_sgd
;
15
16
typedef
struct
graph_sgd
{
17
size_t
n
;
// number of nodes
18
size_t
*
sources
;
// index of first edge in *targets for each node (length n+1)
19
bitarray_t
pinneds
;
// whether a node is fixed or not
20
21
size_t
*
targets
;
// index of targets for each node (length sources[n])
22
float
*
weights
;
// weights of edges (length sources[n])
23
}
graph_sgd
;
24
25
PRIVATE
void
sgd
(
graph_t
*,
int
);
26
27
#ifdef __cplusplus
28
}
29
#endif
api.h
macro for API hiding/exposing
PRIVATE
#define PRIVATE
Definition
api.h:16
bitarray.h
API for compacted arrays of booleans.
sgd
PRIVATE void sgd(graph_t *, int)
Definition
sgd.c:140
Agraph_s
graph or subgraph
Definition
cgraph.h:424
bitarray_t
Definition
bitarray.h:38
graph_sgd
Definition
sgd.h:16
graph_sgd::targets
size_t * targets
Definition
sgd.h:21
graph_sgd::n
size_t n
Definition
sgd.h:17
graph_sgd::pinneds
bitarray_t pinneds
Definition
sgd.h:19
graph_sgd::weights
float * weights
Definition
sgd.h:22
graph_sgd::sources
size_t * sources
Definition
sgd.h:18
term_sgd
Definition
sgd.h:11
term_sgd::d
float d
Definition
sgd.h:13
term_sgd::i
int i
Definition
sgd.h:12
lib
neatogen
sgd.h
Generated by
1.9.8