38# ifndef __BITPIT_MATRIX_UTILITIES_HPP__
39# define __BITPIT_MATRIX_UTILITIES_HPP__
52# include "bitpit_operators.hpp"
59namespace linearalgebra{
65 std::vector< std::vector< T > > &
68template <
class T,
size_t m,
size_t n>
71 std::array< std::array< T, n >, m > &
113 std::vector< std::vector< T > > &,
114 std::vector< std::vector< T > > &
117template <
class T,
size_t m,
size_t n>
121 std::array< std::array< T, n >, m > &,
122 std::array< std::array<T, n-1>, m-1> &
159 std::vector< std::vector < T > > &,
164template <
class T,
size_t m,
size_t n>
166 std::array< std::array < T, n >, m > &
171 std::vector< std::vector < T > > &,
176template <
class T,
size_t m,
size_t n>
178 std::array< std::array < T, n >, m > &
183 std::vector< std::vector < T > > &,
188template <
class T,
size_t m,
size_t n>
190 std::array< std::array < T, n >, m > &
196 std::vector< std::vector< T > > &
201 std::array< std::array < T, 1 >, 1 > &
204template <
class T,
size_t m,
size_t n>
206 std::array< std::array < T, n >, m > &
216# include "matrix_utilities.tpp"
int linearIndexRowMajor(int row, int col, int nRows, int nCols)
void complement(int, int, std::vector< std::vector< T > > &, std::vector< std::vector< T > > &)
int linearIndexColMajorSymmetric(int row, int col, int nRows, int nCols, char uplo)
int linearIndexRowMajorSymmetric(int row, int col, int nRows, int nCols, char uplo)
int linearIndexColMajor(int row, int col, int nRows, int nCols)
void displayColMajorSymmetric(std::ostream &out, T *A, int nRows, int nCols, char uplo)
void displayColMajor(std::ostream &out, T *A, int nRows, int nCols)
void display(std::ostream &, std::vector< std::vector< T > > &)
void displayRowMajorSymmetric(std::ostream &out, T *A, int nRows, int nCols, char uplo)
void displayRowMajor(std::ostream &out, T *A, int nRows, int nCols)
T det(std::vector< std::vector< T > > &)
void zeros(std::vector< std::vector< T > > &, int, int)
void ones(std::vector< std::vector< T > > &, int, int)
void eye(std::vector< std::vector< T > > &, int, int)