Back to index

Private Member Functions
matrix Class Reference

#include <matrix.hpp>

Inheritance diagram for matrix:
Inheritance graph

List of all members.

Private Member Functions

 matrix (T *a, int rows, int cols)
 matrix (T c, int rows, int cols)
 matrix ()
Toperator() (int i, int j)

Detailed Description

Definition at line 46 of file matrix.hpp.

Constructor & Destructor Documentation

matrix::matrix ( T a,
int  rows,
int  cols 
) [inline, private]

Definition at line 48 of file matrix.hpp.

    rep (tm_new<matrix_rep<T> > (a, rows, cols)) {}
matrix::matrix ( T  c,
int  rows,
int  cols 
) [inline, private]

Definition at line 50 of file matrix.hpp.

    int i, n= rows * cols;
    T* a= (n == 0? (T*) NULL: tm_new_array<T> (n));
    for (i=0; i<n; i++)
      a[i]= ((i%(cols+1)) == 0? c: T(0));
    rep= tm_new<matrix_rep<T> > (a, rows, cols); }
matrix::matrix ( ) [inline, private]

Definition at line 56 of file matrix.hpp.

    rep= tm_new<matrix_rep<T> > ((T*) NULL, 0, 0); }

Member Function Documentation

matrix::CONCRETE_TEMPLATE ( matrix  ,
) [private]
T& matrix::operator() ( int  i,
int  j 
) [inline, private]

Definition at line 58 of file matrix.hpp.

    return rep->a[i*rep->cols + j]; }

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