LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
matrix.h File Reference

Dense matrix and non-owning view. More...

#include <cstddef>
#include <initializer_list>
#include <vector>
#include "line/num/number.h"
#include "line/util/error.h"
Include dependency graph for matrix.h:

Go to the source code of this file.

Classes

class  line::MatrixView< T >
class  line::Matrix< T >

Namespaces

namespace  line

Functions

template<class T, class S>
Matrix< T > line::matrix_from (const MatrixView< S > &v)
 Deep copy of a view into an owning matrix, converting the element type.

Detailed Description

Dense matrix and non-owning view.

API functions take MatrixView<const T> for inputs and return Matrix<T>, so a caller that already holds the data (a numpy array through pybind11, a JSON buffer, another algorithm's output) passes it without a copy. Storage is row-major with an explicit row stride so a view can also address a submatrix or a column-major buffer transposed.

Definition in file matrix.h.