AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
Matrix.hpp File Reference
#include "axom/config.hpp"
#include "axom/core/utilities/Utilities.hpp"
#include "axom/core/memory_management.hpp"
#include "axom/fmt.hpp"
#include <cassert>
#include <cstring>
#include <iostream>

Classes

class  axom::numerics::Matrix< T >
 The Matrix class is used to represent \( M \times N \) matrices. It provides common matrix operations and allows accessing matrix elements in a more natural way, using row and column indices, regardless of the underlying flat array storage layout. More...
 
struct  axom::fmt::formatter< axom::numerics::Matrix< T > >
 Overload to format a numerics::Matrix using fmt. More...
 

Namespaces

 axom
 
 axom::numerics
 

Functions

Overloaded Matrix Operators
template<typename T >
std::ostream & axom::numerics::operator<< (std::ostream &os, const Matrix< T > &A)
 Overloaded output stream operator. Outputs the matrix coefficients in to the given output stream. More...
 
template<typename T >
bool axom::numerics::operator== (const Matrix< T > &lhs, const Matrix< T > &rhs)
 Checks if two matrices are component-wise equal. More...
 
template<typename T >
bool axom::numerics::operator!= (const Matrix< T > &lhs, const Matrix< T > &rhs)
 Checks if two matrices are not component-wise equal. More...
 
Matrix Operators
template<typename T >
Matrix< T > axom::numerics::lower_triangular (const Matrix< T > &A, bool unit_diagonal=false)
 Extracts the lower triangular part of a square matrix. More...
 
template<typename T >
Matrix< T > axom::numerics::upper_triangular (const Matrix< T > &A, bool unit_diagonal=true)
 Extract the upper triangular part of a square matrix. More...