|
Algorithms_in_C++
1.0.0
Set of algorithms implemented in C++.
|
LU decomposition of a square matrix More...
#include <ctime>#include <iomanip>#include <iostream>#include <vector>Functions | |
| int | lu_decomposition (const std::vector< std::vector< double >> &A, std::vector< std::vector< double >> *L, std::vector< std::vector< double >> *U) |
| template<typename T > | |
| std::ostream & | operator<< (std::ostream &out, std::vector< std::vector< T >> const &v) |
| int | main (int argc, char **argv) |
LU decomposition of a square matrix
| int lu_decomposition | ( | const std::vector< std::vector< double >> & | A, |
| std::vector< std::vector< double >> * | L, | ||
| std::vector< std::vector< double >> * | U | ||
| ) |
Perform LU decomposition on matrix
| [in] | A | matrix to decompose |
| [out] | L | output L matrix |
| [out] | U | output U matrix |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Main function
| std::ostream& operator<< | ( | std::ostream & | out, |
| std::vector< std::vector< T >> const & | v | ||
| ) |
operator to print a matrix