Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
SimpleMatrix Class Reference
Collaboration diagram for SimpleMatrix:
[legend]

Public Types

using Entry_Type = int
 

Public Member Functions

 SimpleMatrix (long r, long c)
 
intoperator() (long i, long j)
 
int operator() (long i, long j) const
 
long rows () const
 
long cols () const
 

Private Attributes

std::vector< std::vector< int > > data
 
long rows_
 
long cols_
 

Detailed Description

Definition at line 48 of file mat_latex_path_test.cc.

Member Typedef Documentation

◆ Entry_Type

Constructor & Destructor Documentation

◆ SimpleMatrix()

SimpleMatrix::SimpleMatrix ( long  r,
long  c 
)
inline

Definition at line 56 of file mat_latex_path_test.cc.

References data.

Member Function Documentation

◆ cols()

long SimpleMatrix::cols ( ) const
inline

Definition at line 67 of file mat_latex_path_test.cc.

References cols_.

◆ operator()() [1/2]

int & SimpleMatrix::operator() ( long  i,
long  j 
)
inline

Definition at line 63 of file mat_latex_path_test.cc.

References data.

◆ operator()() [2/2]

int SimpleMatrix::operator() ( long  i,
long  j 
) const
inline

Definition at line 64 of file mat_latex_path_test.cc.

References data.

◆ rows()

long SimpleMatrix::rows ( ) const
inline

Definition at line 66 of file mat_latex_path_test.cc.

References rows_.

Member Data Documentation

◆ cols_

long SimpleMatrix::cols_
private

Definition at line 51 of file mat_latex_path_test.cc.

Referenced by cols().

◆ data

std::vector<std::vector<int> > SimpleMatrix::data
private

Definition at line 50 of file mat_latex_path_test.cc.

Referenced by SimpleMatrix(), operator()(), and operator()().

◆ rows_

long SimpleMatrix::rows_
private

Definition at line 51 of file mat_latex_path_test.cc.

Referenced by rows().


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