DiSMEC++
test_utils.h
Go to the documentation of this file.
1 // Copyright (c) 2021, Aalto University, developed by Erik Schultheis
2 // All rights reserved.
3 //
4 // SPDX-License-Identifier: MIT
5 
6 #ifndef DISMEC_TEST_UTILS_H
7 #define DISMEC_TEST_UTILS_H
8 
9 #include "matrix_types.h"
10 
11 namespace dismec {
20  SparseFeatures make_uniform_sparse_matrix(int rows, int cols, int non_zeros_per_row);
21 }
22 
23 
24 #endif //DISMEC_TEST_UTILS_H
Main namespace in which all types, classes, and functions are defined.
Definition: app.h:15
SparseFeatures make_uniform_sparse_matrix(int rows, int cols, int non_zeros_per_row)
Creates a sparse matrix with the given number of rows and columns.
Definition: test_utils.cpp:8
types::SparseRowMajor< real_t > SparseFeatures
Sparse Feature Matrix in Row Major format.
Definition: matrix_types.h:50