38 #ifndef Foam_simpleMatrix_H 39 #define Foam_simpleMatrix_H 50 template<
class Type>
Ostream& operator<<(Ostream&, const simpleMatrix<Type>&);
115 friend Ostream& operator<< <Type>
simpleMatrix(const label n)
Construct given size.
Field< Type > & source() noexcept
Return access to the source.
void operator=(const simpleMatrix< Type > &)
Copy assignment.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
label n() const noexcept
The number of columns.
Field< Type > LUsolve() const
Solve the matrix using LU decomposition with pivoting and return the solution.
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
A simple square matrix solver with scalar coefficients.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Field< Type > solve() const
Solve the matrix using Gaussian elimination with pivoting and return the solution.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...