Class Matrix
A simple n-dimensional matrix type.

Defined in <seqan/align.h>
Signature template <typename TValue[, unsigned DIMENSION]> class Matrix;

Template Parameters

TValue Type of matrix entries.
DIMENSION Dimension of the matrix. Use 0 for n-dimensional, values > 0 for a matrix with DIMENSION dimensions. Defaults to 0.

Member Function Overview

Interface Function Overview

Member Functions Detail

TMatrix Matrix::operator+(lhs, rhs);

Sum operator for the Matrix type.

Parameters

lhs First summand.
rhs Second summand.

Returns

TMatrix The resulting matrix of same type as lhs and rhs.

Data Races

Thread safety unknown!

Interface Functions Detail

void resize(matrix[, val]);

Resize the matrix and fill it with a given value or zeroes.

Parameters

matrix The Matrix to fill.
val The optional value to fill the matrix with.

Data Races

Thread safety unknown!

TMatrix transpose(matrix);

Tranpose a 2D Matrix.

Parameters

matrix The matrix to tranpose.

Returns

TMatrix The resulting tranposed matrix.

Data Races

Thread safety unknown!