HIBF
1.0.0-rc.1
Toggle main menu visibility
Main Page
Cookbook
About
Changelog
Copyright
Code of Conduct
Contributing
API Reference
API Reference (details)
Concept List
Class List
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
~
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
~
Variables
a
b
d
e
f
h
i
k
m
n
o
p
r
s
t
u
v
Typedefs
Related Symbols
File List
File List
File Members
All
Macros
▼
HIBF
Cookbook
►
About
►
API Reference
▼
API Reference (details)
►
Concept List
►
Class List
▼
File List
▼
File List
▼
hibf
►
build
►
cereal
▼
layout
compute_fpr_correction.hpp
compute_layout.hpp
compute_relaxed_fpr_correction.hpp
data_store.hpp
►
graph.hpp
hierarchical_binning.hpp
layout.hpp
prefixes.hpp
print_matrix.hpp
simple_binning.hpp
►
misc
►
sketch
all.hpp
config.hpp
hierarchical_interleaved_bloom_filter.hpp
►
interleaved_bloom_filter.hpp
►
platform.hpp
►
version.hpp
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Friends
Macros
Modules
Pages
Concepts
Loading...
Searching...
No Matches
print_matrix.hpp
1
// SPDX-FileCopyrightText: 2006-2025, Knut Reinert & Freie Universität Berlin
2
// SPDX-FileCopyrightText: 2016-2025, Knut Reinert & MPI für molekulare Genetik
3
// SPDX-License-Identifier: BSD-3-Clause
4
5
#pragma once
6
7
#include <
iostream
>
8
9
#include <
hibf/platform.hpp
>
10
11
namespace
seqan::hibf::layout
12
{
13
17
template
<
typename
matrix_type,
typename
matrix_value_type>
18
void
print_matrix
(matrix_type
const
& matrix,
19
size_t
const
row_bound,
20
size_t
const
column_bound,
21
matrix_value_type
const
inf)
22
{
23
for
(
size_t
i = 0; i < row_bound; ++i)
24
{
25
for
(
size_t
j = 0; j < column_bound; ++j)
26
{
27
if
(matrix[i][j] == inf)
28
std::cerr
<<
"inf\t"
;
29
else
30
std::cerr
<< matrix[i][j] <<
'\t'
;
31
}
32
std::cerr
<<
'\n'
;
33
}
34
std::cerr
<<
'\n'
;
35
}
18
void
print_matrix
(matrix_type
const
& matrix, {
…
}
36
37
}
// namespace seqan::hibf::layout
std::cerr
seqan::hibf::layout::print_matrix
void print_matrix(matrix_type const &matrix, size_t const row_bound, size_t const column_bound, matrix_value_type const inf)
Helper function to print a matrix when debugging.
Definition
print_matrix.hpp:18
iostream
platform.hpp
Provides platform and dependency checks.
hibf
layout
print_matrix.hpp
Generated on Mon Mar 17 2025 14:41:03 for HIBF by
1.10.0