XX CMake Package
Loading...
Searching...
No Matches
XX::Linalg::Matrix Class Reference

NxM martix. More...

#include <XXLinalgMatrix.h>

Detailed Description

NxM martix.

Classes

struct  Cell

Public Member Functions

 Matrix (const size_t &rowCount=0, const size_t &columnCount=0)
bool operator== (const Matrix &other) const
bool operator!= (const Matrix &other) const
Matrix operator+ (const Matrix &other) const
Matrix operator- (const Matrix &other) const
Matrix operator* (const Matrix &other) const
Matrix operator* (const double &value) const
Matrix operator/ (const double &value) const
Matrixoperator+= (const Matrix &other)
Matrixoperator-= (const Matrix &other)
Matrixoperator*= (const double &value)
Matrixoperator/= (const double &value)
const double & operator() (const size_t &rowIndex, const size_t &columnIndex) const
double & operator() (const size_t &rowIndex, const size_t &columnIndex)
double getValue (const size_t &rowIndex, const size_t &columnIndex) const
void setValue (const size_t &rowIndex, const size_t &columnIndex, const double &value)
void setValues (const Cell::List &cellList)
bool sizeMatch (const Matrix &other) const
bool isNull () const
size_t getRowCount () const
size_t getColumnCount () const
Matrix transpose () const
double determinant () const
Matrix inverse () const
Matrix cofactor () const

Friends

QDebug operator<< (QDebug stream, const Matrix &matrix)
QTextStream & operator>> (QTextStream &stream, Matrix &matrix)
QTextStream & operator<< (QTextStream &stream, const Matrix &matrix)

Constructor & Destructor Documentation

◆ Matrix()

XX::Linalg::Matrix::Matrix ( const size_t & rowCount = 0,
const size_t & columnCount = 0 )

Member Function Documentation

◆ cofactor()

Matrix XX::Linalg::Matrix::cofactor ( ) const

◆ determinant()

double XX::Linalg::Matrix::determinant ( ) const

◆ getColumnCount()

size_t XX::Linalg::Matrix::getColumnCount ( ) const

◆ getRowCount()

size_t XX::Linalg::Matrix::getRowCount ( ) const

◆ getValue()

double XX::Linalg::Matrix::getValue ( const size_t & rowIndex,
const size_t & columnIndex ) const

◆ inverse()

Matrix XX::Linalg::Matrix::inverse ( ) const

◆ isNull()

bool XX::Linalg::Matrix::isNull ( ) const

◆ operator!=()

bool XX::Linalg::Matrix::operator!= ( const Matrix & other) const

◆ operator()() [1/2]

double & XX::Linalg::Matrix::operator() ( const size_t & rowIndex,
const size_t & columnIndex )

◆ operator()() [2/2]

const double & XX::Linalg::Matrix::operator() ( const size_t & rowIndex,
const size_t & columnIndex ) const

◆ operator*() [1/2]

Matrix XX::Linalg::Matrix::operator* ( const double & value) const

◆ operator*() [2/2]

Matrix XX::Linalg::Matrix::operator* ( const Matrix & other) const

◆ operator*=()

Matrix & XX::Linalg::Matrix::operator*= ( const double & value)

◆ operator+()

Matrix XX::Linalg::Matrix::operator+ ( const Matrix & other) const

◆ operator+=()

Matrix & XX::Linalg::Matrix::operator+= ( const Matrix & other)

◆ operator-()

Matrix XX::Linalg::Matrix::operator- ( const Matrix & other) const

◆ operator-=()

Matrix & XX::Linalg::Matrix::operator-= ( const Matrix & other)

◆ operator/()

Matrix XX::Linalg::Matrix::operator/ ( const double & value) const

◆ operator/=()

Matrix & XX::Linalg::Matrix::operator/= ( const double & value)

◆ operator==()

bool XX::Linalg::Matrix::operator== ( const Matrix & other) const

◆ setValue()

void XX::Linalg::Matrix::setValue ( const size_t & rowIndex,
const size_t & columnIndex,
const double & value )

◆ setValues()

void XX::Linalg::Matrix::setValues ( const Cell::List & cellList)

◆ sizeMatch()

bool XX::Linalg::Matrix::sizeMatch ( const Matrix & other) const

◆ transpose()

Matrix XX::Linalg::Matrix::transpose ( ) const

◆ operator<< [1/2]

QDebug operator<< ( QDebug stream,
const Matrix & matrix )
friend

◆ operator<< [2/2]

QTextStream & operator<< ( QTextStream & stream,
const Matrix & matrix )
friend

◆ operator>>

QTextStream & operator>> ( QTextStream & stream,
Matrix & matrix )
friend

The documentation for this class was generated from the following file: