RDKit: RDNumeric::SquareMatrix< TYPE > Class Template Reference

| RDKit Open-source cheminformatics and machine learning.

- Main Page
- Namespaces
- Classes
- Files

- Class List
- Class Hierarchy
- Class Members

Public Member Functions | List of all members
RDNumeric::SquareMatrix< TYPE > Class Template Reference

`#include <SquareMatrix.h>`

Inheritance diagram for RDNumeric::SquareMatrix< TYPE >:

## Public Member Functions
| SquareMatrix ()
| brief Square matrix of size N More...
| SquareMatrix (unsigned int N)
| SquareMatrix (unsigned int N, TYPE val)
| SquareMatrix (unsigned int N, typename Matrix< TYPE >::DATA_SPTR data)
virtual SquareMatrix< TYPE > & | operator*= (TYPE scale)
| Multiplication by a scalar. More...
virtual SquareMatrix< TYPE > & | operator*= (const SquareMatrix< TYPE > &B)
| In place matrix multiplication. More...
virtual SquareMatrix< TYPE > & | transposeInplace ()
| In place matrix transpose. More...
Public Member Functions inherited from RDNumeric::Matrix< TYPE >
| Matrix (unsigned int nRows, unsigned int nCols)
| Initialize with a size. More...
| Matrix (unsigned int nRows, unsigned int nCols, TYPE val)
| Initialize with a size and default value. More...
| Matrix (unsigned int nRows, unsigned int nCols, DATA_SPTR data)
| Initialize from a pointer. More...
| Matrix (const Matrix< TYPE > &other)
| copy constructor More...
virtual | ~Matrix ()
unsigned int | numRows () const
| returns the number of rows More...
unsigned int | numCols () const
| returns the number of columns More...
unsigned int | getDataSize () const
virtual TYPE | getVal (unsigned int i, unsigned int j) const
| returns a particular element of the matrix More...
virtual void | setVal (unsigned int i, unsigned int j, TYPE val)
| sets a particular element of the matrix More...
virtual void | getRow (unsigned int i, Vector< TYPE > &row) const
| returns a copy of a row of the matrix More...
virtual void | getCol (unsigned int i, Vector< TYPE > &col) const
| returns a copy of a column of the matrix More...
TYPE * | getData ()
| returns a pointer to our data array More...
const TYPE * | getData () const
| returns a const pointer to our data array More...
Matrix< TYPE > & | assign (const Matrix< TYPE > &other)
| Copy operator. More...
virtual Matrix< TYPE > & | operator+= (const Matrix< TYPE > &other)
| Matrix addition. More...
virtual Matrix< TYPE > & | operator-= (const Matrix< TYPE > &other)
| Matrix subtraction. More...
virtual Matrix< TYPE > & | operator/= (TYPE scale)
| division by a scalar More...
virtual Matrix< TYPE > & | transpose (Matrix< TYPE > &transpose) const
| copies the transpose of this Matrix into another, returns the result More...

## Additional Inherited Members
Public Types inherited from RDNumeric::Matrix< TYPE >
typedef boost::shared_array< TYPE > | DATA_SPTR
Protected Member Functions inherited from RDNumeric::Matrix< TYPE >
| Matrix ()
Protected Attributes inherited from RDNumeric::Matrix< TYPE >
unsigned int | d_nRows
unsigned int | d_nCols
unsigned int | d_dataSize
DATA_SPTR | d_data

## Detailed Description

### template<typename TYPE>
class RDNumeric::SquareMatrix< TYPE >

Definition at line 17 of file SquareMatrix.h.

## Constructor & Destructor Documentation

template<typename TYPE>

RDNumeric::SquareMatrix< TYPE >::SquareMatrix | ( |  | ) |
| inline

brief Square matrix of size N

Definition at line 20 of file SquareMatrix.h.

template<typename TYPE>

RDNumeric::SquareMatrix< TYPE >::SquareMatrix | ( | unsigned int | N | ) |
| inlineexplicit

Definition at line 22 of file SquareMatrix.h.

template<typename TYPE>

RDNumeric::SquareMatrix< TYPE >::SquareMatrix | ( | unsigned int | N,
|  | TYPE | val
| ) |  |
| inline

Definition at line 24 of file SquareMatrix.h.

template<typename TYPE>

RDNumeric::SquareMatrix< TYPE >::SquareMatrix | ( | unsigned int | N,
|  | typename Matrix< TYPE >::DATA_SPTR | data
| ) |  |
| inline

Definition at line 26 of file SquareMatrix.h.

## Member Function Documentation

template<typename TYPE>

virtual SquareMatrix<TYPE>& RDNumeric::SquareMatrix< TYPE >::operator*= | ( | TYPE | scale | ) |
| inlinevirtual

Multiplication by a scalar.

Reimplemented from RDNumeric::Matrix< TYPE >.

Definition at line 33 of file SquareMatrix.h.

template<typename TYPE>

virtual SquareMatrix<TYPE>& RDNumeric::SquareMatrix< TYPE >::operator*= | ( | const SquareMatrix< TYPE > & | B | ) |
| inlinevirtual

In place matrix multiplication.

Definition at line 39 of file SquareMatrix.h.

template<typename TYPE>

virtual SquareMatrix<TYPE>& RDNumeric::SquareMatrix< TYPE >::transposeInplace | ( |  | ) |
| inlinevirtual

In place matrix transpose.

Definition at line 67 of file SquareMatrix.h.

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

- SquareMatrix.h