webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Protected Member Functions | List of all members
webrtc::Matrix< T > Class Template Reference

#include <matrix.h>

Public Member Functions

 Matrix ()
 
 Matrix (size_t num_rows, size_t num_columns)
 
 Matrix (const T *data, size_t num_rows, size_t num_columns)
 
virtual ~Matrix ()
 
void CopyFrom (const Matrix &other)
 
void CopyFrom (const T *const data, size_t num_rows, size_t num_columns)
 
MatrixCopyFromColumn (const T *const *src, size_t column_index, size_t num_rows)
 
void Resize (size_t num_rows, size_t num_columns)
 
size_t num_rows () const
 
size_t num_columns () const
 
T *const * elements ()
 
const T *const * elements () const
 
T Trace ()
 
MatrixTranspose ()
 
MatrixTranspose (const Matrix &operand)
 
template<typename S >
MatrixScale (const S &scalar)
 
template<typename S >
MatrixScale (const Matrix &operand, const S &scalar)
 
MatrixAdd (const Matrix &operand)
 
MatrixAdd (const Matrix &lhs, const Matrix &rhs)
 
MatrixSubtract (const Matrix &operand)
 
MatrixSubtract (const Matrix &lhs, const Matrix &rhs)
 
MatrixPointwiseMultiply (const Matrix &operand)
 
MatrixPointwiseMultiply (const Matrix &lhs, const Matrix &rhs)
 
MatrixPointwiseDivide (const Matrix &operand)
 
MatrixPointwiseDivide (const Matrix &lhs, const Matrix &rhs)
 
MatrixPointwiseSquareRoot ()
 
MatrixPointwiseSquareRoot (const Matrix &operand)
 
MatrixPointwiseAbsoluteValue ()
 
MatrixPointwiseAbsoluteValue (const Matrix &operand)
 
MatrixPointwiseSquare ()
 
MatrixPointwiseSquare (const Matrix &operand)
 
MatrixMultiply (const Matrix &lhs, const Matrix &rhs)
 
MatrixMultiply (const Matrix &rhs)
 
std::string ToString () const
 
 Matrix ()
 
 Matrix (size_t num_rows, size_t num_columns)
 
 Matrix (const T *data, size_t num_rows, size_t num_columns)
 
virtual ~Matrix ()
 
void CopyFrom (const Matrix &other)
 
void CopyFrom (const T *const data, size_t num_rows, size_t num_columns)
 
MatrixCopyFromColumn (const T *const *src, size_t column_index, size_t num_rows)
 
void Resize (size_t num_rows, size_t num_columns)
 
size_t num_rows () const
 
size_t num_columns () const
 
T *const * elements ()
 
const T *const * elements () const
 
T Trace ()
 
MatrixTranspose ()
 
MatrixTranspose (const Matrix &operand)
 
template<typename S >
MatrixScale (const S &scalar)
 
template<typename S >
MatrixScale (const Matrix &operand, const S &scalar)
 
MatrixAdd (const Matrix &operand)
 
MatrixAdd (const Matrix &lhs, const Matrix &rhs)
 
MatrixSubtract (const Matrix &operand)
 
MatrixSubtract (const Matrix &lhs, const Matrix &rhs)
 
MatrixPointwiseMultiply (const Matrix &operand)
 
MatrixPointwiseMultiply (const Matrix &lhs, const Matrix &rhs)
 
MatrixPointwiseDivide (const Matrix &operand)
 
MatrixPointwiseDivide (const Matrix &lhs, const Matrix &rhs)
 
MatrixPointwiseSquareRoot ()
 
MatrixPointwiseSquareRoot (const Matrix &operand)
 
MatrixPointwiseAbsoluteValue ()
 
MatrixPointwiseAbsoluteValue (const Matrix &operand)
 
MatrixPointwiseSquare ()
 
MatrixPointwiseSquare (const Matrix &operand)
 
MatrixMultiply (const Matrix &lhs, const Matrix &rhs)
 
MatrixMultiply (const Matrix &rhs)
 
std::string ToString () const
 

Protected Member Functions

void SetNumRows (const size_t num_rows)
 
void SetNumColumns (const size_t num_columns)
 
Tdata ()
 
const Tdata () const
 
const T *const * scratch_elements () const
 
void Resize ()
 
void CopyDataToScratch ()
 
void SetNumRows (const size_t num_rows)
 
void SetNumColumns (const size_t num_columns)
 
Tdata ()
 
const Tdata () const
 
const T *const * scratch_elements () const
 
void Resize ()
 
void CopyDataToScratch ()
 

Constructor & Destructor Documentation

◆ Matrix() [1/6]

template<typename T>
webrtc::Matrix< T >::Matrix ( )
inline

◆ Matrix() [2/6]

template<typename T>
webrtc::Matrix< T >::Matrix ( size_t  num_rows,
size_t  num_columns 
)
inline

◆ Matrix() [3/6]

template<typename T>
webrtc::Matrix< T >::Matrix ( const T data,
size_t  num_rows,
size_t  num_columns 
)
inline

◆ ~Matrix() [1/2]

template<typename T>
virtual webrtc::Matrix< T >::~Matrix ( )
inlinevirtual

◆ Matrix() [4/6]

template<typename T>
webrtc::Matrix< T >::Matrix ( )
inline

◆ Matrix() [5/6]

template<typename T>
webrtc::Matrix< T >::Matrix ( size_t  num_rows,
size_t  num_columns 
)
inline

◆ Matrix() [6/6]

template<typename T>
webrtc::Matrix< T >::Matrix ( const T data,
size_t  num_rows,
size_t  num_columns 
)
inline

◆ ~Matrix() [2/2]

template<typename T>
virtual webrtc::Matrix< T >::~Matrix ( )
inlinevirtual

Member Function Documentation

◆ Add() [1/4]

template<typename T>
Matrix& webrtc::Matrix< T >::Add ( const Matrix< T > &  operand)
inline

◆ Add() [2/4]

template<typename T>
Matrix& webrtc::Matrix< T >::Add ( const Matrix< T > &  operand)
inline

◆ Add() [3/4]

template<typename T>
Matrix& webrtc::Matrix< T >::Add ( const Matrix< T > &  lhs,
const Matrix< T > &  rhs 
)
inline

◆ Add() [4/4]

template<typename T>
Matrix& webrtc::Matrix< T >::Add ( const Matrix< T > &  lhs,
const Matrix< T > &  rhs 
)
inline

◆ CopyDataToScratch() [1/2]

template<typename T>
void webrtc::Matrix< T >::CopyDataToScratch ( )
inlineprotected

◆ CopyDataToScratch() [2/2]

template<typename T>
void webrtc::Matrix< T >::CopyDataToScratch ( )
inlineprotected

◆ CopyFrom() [1/4]

template<typename T>
void webrtc::Matrix< T >::CopyFrom ( const Matrix< T > &  other)
inline

◆ CopyFrom() [2/4]

template<typename T>
void webrtc::Matrix< T >::CopyFrom ( const Matrix< T > &  other)
inline

◆ CopyFrom() [3/4]

template<typename T>
void webrtc::Matrix< T >::CopyFrom ( const T *const  data,
size_t  num_rows,
size_t  num_columns 
)
inline

◆ CopyFrom() [4/4]

template<typename T>
void webrtc::Matrix< T >::CopyFrom ( const T *const  data,
size_t  num_rows,
size_t  num_columns 
)
inline

◆ CopyFromColumn() [1/2]

template<typename T>
Matrix& webrtc::Matrix< T >::CopyFromColumn ( const T *const *  src,
size_t  column_index,
size_t  num_rows 
)
inline

◆ CopyFromColumn() [2/2]

template<typename T>
Matrix& webrtc::Matrix< T >::CopyFromColumn ( const T *const *  src,
size_t  column_index,
size_t  num_rows 
)
inline

◆ data() [1/4]

template<typename T>
T* webrtc::Matrix< T >::data ( )
inlineprotected

◆ data() [2/4]

template<typename T>
T* webrtc::Matrix< T >::data ( )
inlineprotected

◆ data() [3/4]

template<typename T>
const T* webrtc::Matrix< T >::data ( ) const
inlineprotected

◆ data() [4/4]

template<typename T>
const T* webrtc::Matrix< T >::data ( ) const
inlineprotected

◆ elements() [1/4]

template<typename T>
T* const* webrtc::Matrix< T >::elements ( )
inline

◆ elements() [2/4]

template<typename T>
T* const* webrtc::Matrix< T >::elements ( )
inline

◆ elements() [3/4]

template<typename T>
const T* const* webrtc::Matrix< T >::elements ( ) const
inline

◆ elements() [4/4]

template<typename T>
const T* const* webrtc::Matrix< T >::elements ( ) const
inline

◆ Multiply() [1/4]

template<typename T>
Matrix& webrtc::Matrix< T >::Multiply ( const Matrix< T > &  lhs,
const Matrix< T > &  rhs 
)
inline

◆ Multiply() [2/4]

template<typename T>
Matrix& webrtc::Matrix< T >::Multiply ( const Matrix< T > &  lhs,
const Matrix< T > &  rhs 
)
inline

◆ Multiply() [3/4]

template<typename T>
Matrix& webrtc::Matrix< T >::Multiply ( const Matrix< T > &  rhs)
inline

◆ Multiply() [4/4]

template<typename T>
Matrix& webrtc::Matrix< T >::Multiply ( const Matrix< T > &  rhs)
inline

◆ num_columns() [1/2]

template<typename T>
size_t webrtc::Matrix< T >::num_columns ( ) const
inline

◆ num_columns() [2/2]

template<typename T>
size_t webrtc::Matrix< T >::num_columns ( ) const
inline

◆ num_rows() [1/2]

template<typename T>
size_t webrtc::Matrix< T >::num_rows ( ) const
inline

◆ num_rows() [2/2]

template<typename T>
size_t webrtc::Matrix< T >::num_rows ( ) const
inline

◆ PointwiseAbsoluteValue() [1/4]

template<typename T>
Matrix& webrtc::Matrix< T >::PointwiseAbsoluteValue ( )
inline

◆ PointwiseAbsoluteValue() [2/4]

template<typename T>
Matrix& webrtc::Matrix< T >::PointwiseAbsoluteValue ( )
inline

◆ PointwiseAbsoluteValue() [3/4]

template<typename T>
Matrix& webrtc::Matrix< T >::PointwiseAbsoluteValue ( const Matrix< T > &  operand)
inline

◆ PointwiseAbsoluteValue() [4/4]

template<typename T>
Matrix& webrtc::Matrix< T >::PointwiseAbsoluteValue ( const Matrix< T > &  operand)
inline

◆ PointwiseDivide() [1/4]

template<typename T>
Matrix& webrtc::Matrix< T >::PointwiseDivide ( const Matrix< T > &  operand)
inline

◆ PointwiseDivide() [2/4]

template<typename T>
Matrix& webrtc::Matrix< T >::PointwiseDivide ( const Matrix< T > &  operand)
inline

◆ PointwiseDivide() [3/4]

template<typename T>
Matrix& webrtc::Matrix< T >::PointwiseDivide ( const Matrix< T > &  lhs,
const Matrix< T > &  rhs 
)
inline

◆ PointwiseDivide() [4/4]

template<typename T>
Matrix& webrtc::Matrix< T >::PointwiseDivide ( const Matrix< T > &  lhs,
const Matrix< T > &  rhs 
)
inline

◆ PointwiseMultiply() [1/4]

template<typename T>
Matrix& webrtc::Matrix< T >::PointwiseMultiply ( const Matrix< T > &  operand)
inline

◆ PointwiseMultiply() [2/4]

template<typename T>
Matrix& webrtc::Matrix< T >::PointwiseMultiply ( const Matrix< T > &  operand)
inline

◆ PointwiseMultiply() [3/4]

template<typename T>
Matrix& webrtc::Matrix< T >::PointwiseMultiply ( const Matrix< T > &  lhs,
const Matrix< T > &  rhs 
)
inline

◆ PointwiseMultiply() [4/4]

template<typename T>
Matrix& webrtc::Matrix< T >::PointwiseMultiply ( const Matrix< T > &  lhs,
const Matrix< T > &  rhs 
)
inline

◆ PointwiseSquare() [1/4]

template<typename T>
Matrix& webrtc::Matrix< T >::PointwiseSquare ( )
inline

◆ PointwiseSquare() [2/4]

template<typename T>
Matrix& webrtc::Matrix< T >::PointwiseSquare ( )
inline

◆ PointwiseSquare() [3/4]

template<typename T>
Matrix& webrtc::Matrix< T >::PointwiseSquare ( const Matrix< T > &  operand)
inline

◆ PointwiseSquare() [4/4]

template<typename T>
Matrix& webrtc::Matrix< T >::PointwiseSquare ( const Matrix< T > &  operand)
inline

◆ PointwiseSquareRoot() [1/4]

template<typename T>
Matrix& webrtc::Matrix< T >::PointwiseSquareRoot ( )
inline

◆ PointwiseSquareRoot() [2/4]

template<typename T>
Matrix& webrtc::Matrix< T >::PointwiseSquareRoot ( )
inline

◆ PointwiseSquareRoot() [3/4]

template<typename T>
Matrix& webrtc::Matrix< T >::PointwiseSquareRoot ( const Matrix< T > &  operand)
inline

◆ PointwiseSquareRoot() [4/4]

template<typename T>
Matrix& webrtc::Matrix< T >::PointwiseSquareRoot ( const Matrix< T > &  operand)
inline

◆ Resize() [1/4]

template<typename T>
void webrtc::Matrix< T >::Resize ( size_t  num_rows,
size_t  num_columns 
)
inline

◆ Resize() [2/4]

template<typename T>
void webrtc::Matrix< T >::Resize ( size_t  num_rows,
size_t  num_columns 
)
inline

◆ Resize() [3/4]

template<typename T>
void webrtc::Matrix< T >::Resize ( )
inlineprotected

◆ Resize() [4/4]

template<typename T>
void webrtc::Matrix< T >::Resize ( )
inlineprotected

◆ Scale() [1/4]

template<typename T>
template<typename S >
Matrix& webrtc::Matrix< T >::Scale ( const S scalar)
inline

◆ Scale() [2/4]

template<typename T>
template<typename S >
Matrix& webrtc::Matrix< T >::Scale ( const S scalar)
inline

◆ Scale() [3/4]

template<typename T>
template<typename S >
Matrix& webrtc::Matrix< T >::Scale ( const Matrix< T > &  operand,
const S scalar 
)
inline

◆ Scale() [4/4]

template<typename T>
template<typename S >
Matrix& webrtc::Matrix< T >::Scale ( const Matrix< T > &  operand,
const S scalar 
)
inline

◆ scratch_elements() [1/2]

template<typename T>
const T* const* webrtc::Matrix< T >::scratch_elements ( ) const
inlineprotected

◆ scratch_elements() [2/2]

template<typename T>
const T* const* webrtc::Matrix< T >::scratch_elements ( ) const
inlineprotected

◆ SetNumColumns() [1/2]

template<typename T>
void webrtc::Matrix< T >::SetNumColumns ( const size_t  num_columns)
inlineprotected

◆ SetNumColumns() [2/2]

template<typename T>
void webrtc::Matrix< T >::SetNumColumns ( const size_t  num_columns)
inlineprotected

◆ SetNumRows() [1/2]

template<typename T>
void webrtc::Matrix< T >::SetNumRows ( const size_t  num_rows)
inlineprotected

◆ SetNumRows() [2/2]

template<typename T>
void webrtc::Matrix< T >::SetNumRows ( const size_t  num_rows)
inlineprotected

◆ Subtract() [1/4]

template<typename T>
Matrix& webrtc::Matrix< T >::Subtract ( const Matrix< T > &  operand)
inline

◆ Subtract() [2/4]

template<typename T>
Matrix& webrtc::Matrix< T >::Subtract ( const Matrix< T > &  operand)
inline

◆ Subtract() [3/4]

template<typename T>
Matrix& webrtc::Matrix< T >::Subtract ( const Matrix< T > &  lhs,
const Matrix< T > &  rhs 
)
inline

◆ Subtract() [4/4]

template<typename T>
Matrix& webrtc::Matrix< T >::Subtract ( const Matrix< T > &  lhs,
const Matrix< T > &  rhs 
)
inline

◆ ToString() [1/2]

template<typename T>
std::string webrtc::Matrix< T >::ToString ( ) const
inline

◆ ToString() [2/2]

template<typename T>
std::string webrtc::Matrix< T >::ToString ( ) const
inline

◆ Trace() [1/2]

template<typename T>
T webrtc::Matrix< T >::Trace ( )
inline

◆ Trace() [2/2]

template<typename T>
T webrtc::Matrix< T >::Trace ( )
inline

◆ Transpose() [1/4]

template<typename T>
Matrix& webrtc::Matrix< T >::Transpose ( )
inline

◆ Transpose() [2/4]

template<typename T>
Matrix& webrtc::Matrix< T >::Transpose ( )
inline

◆ Transpose() [3/4]

template<typename T>
Matrix& webrtc::Matrix< T >::Transpose ( const Matrix< T > &  operand)
inline

◆ Transpose() [4/4]

template<typename T>
Matrix& webrtc::Matrix< T >::Transpose ( const Matrix< T > &  operand)
inline

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