My Project
Loading...
Searching...
No Matches
Public Member Functions | Data Fields | Private Attributes
row_col_weight Class Reference

Public Member Functions

 row_col_weight ()
 
 row_col_weight (int, int)
 
 ~row_col_weight ()
 

Data Fields

float * wrow
 
float * wcol
 

Private Attributes

int ym
 
int yn
 

Detailed Description

Definition at line 881 of file matpol.cc.

Constructor & Destructor Documentation

◆ row_col_weight() [1/2]

row_col_weight::row_col_weight ( )
inline

Definition at line 887 of file matpol.cc.

887: ym(0) {}

◆ row_col_weight() [2/2]

row_col_weight::row_col_weight ( int  i,
int  j 
)

Definition at line 892 of file matpol.cc.

893{
894 ym = i;
895 yn = j;
896 wrow = (float *)omAlloc(i*sizeof(float));
897 wcol = (float *)omAlloc(j*sizeof(float));
898}
int i
Definition: cfEzgcd.cc:132
float * wcol
Definition: matpol.cc:886
float * wrow
Definition: matpol.cc:886
int j
Definition: facHensel.cc:110
#define omAlloc(size)
Definition: omAllocDecl.h:210

◆ ~row_col_weight()

row_col_weight::~row_col_weight ( )

Definition at line 899 of file matpol.cc.

900{
901 if (ym!=0)
902 {
903 omFreeSize((ADDRESS)wcol, yn*sizeof(float));
904 omFreeSize((ADDRESS)wrow, ym*sizeof(float));
905 }
906}
void * ADDRESS
Definition: auxiliary.h:119
#define omFreeSize(addr, size)
Definition: omAllocDecl.h:260

Field Documentation

◆ wcol

float * row_col_weight::wcol

Definition at line 886 of file matpol.cc.

◆ wrow

float* row_col_weight::wrow

Definition at line 886 of file matpol.cc.

◆ ym

int row_col_weight::ym
private

Definition at line 884 of file matpol.cc.

◆ yn

int row_col_weight::yn
private

Definition at line 884 of file matpol.cc.


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