Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::CNCSparseRowColumn Class Reference

#include <arcane/aleph/cuda/AlephCudaMatrix.h>

Collaboration diagram for Arcane::CNCSparseRowColumn:

Public Member Functions

long nb_coeffs () const
CNCCoeffcoeff (long ii)
const CNCCoeffcoeff (long ii) const
void add (long index, double val)
void sort ()
void clear ()
void zero ()

Protected Member Functions

void grow ()

Private Attributes

CNCCoeffcoeff_
long nb_coeffs_
long capacity_

Detailed Description

A row or a column of a SparseMatrix. SparseRowColumn is compressed, and stored in the form of a list of (value,index) couples.

Definition at line 47 of file AlephCudaMatrix.h.

Constructor & Destructor Documentation

◆ CNCSparseRowColumn()

Arcane::CNCSparseRowColumn::CNCSparseRowColumn ( )
inline

Definition at line 51 of file AlephCudaMatrix.h.

◆ ~CNCSparseRowColumn()

Arcane::CNCSparseRowColumn::~CNCSparseRowColumn ( )
inline

Definition at line 57 of file AlephCudaMatrix.h.

Member Function Documentation

◆ add()

void Arcane::CNCSparseRowColumn::add ( long index,
double val )
inline

a_{index} <- a_{index} + val

Definition at line 63 of file AlephCudaMatrix.h.

Referenced by Arcane::CNC_Matrix::add().

Here is the caller graph for this function:

◆ clear()

void Arcane::CNCSparseRowColumn::clear ( )
inline

removes all the coefficients and frees the allocated space.

Definition at line 103 of file AlephCudaMatrix.h.

Referenced by Arcane::CNC_Matrix::clear().

Here is the caller graph for this function:

◆ coeff() [1/2]

CNCCoeff & Arcane::CNCSparseRowColumn::coeff ( long ii)
inline

Definition at line 59 of file AlephCudaMatrix.h.

◆ coeff() [2/2]

const CNCCoeff & Arcane::CNCSparseRowColumn::coeff ( long ii) const
inline

Definition at line 60 of file AlephCudaMatrix.h.

◆ grow()

void Arcane::CNCSparseRowColumn::grow ( )
inlineprotected

Definition at line 120 of file AlephCudaMatrix.h.

◆ nb_coeffs()

long Arcane::CNCSparseRowColumn::nb_coeffs ( ) const
inline

Definition at line 58 of file AlephCudaMatrix.h.

◆ sort()

void Arcane::CNCSparseRowColumn::sort ( )
inline

sorts the coefficients by increasing index

Definition at line 92 of file AlephCudaMatrix.h.

Referenced by Arcane::CNC_Matrix::sort().

Here is the caller graph for this function:

◆ zero()

void Arcane::CNCSparseRowColumn::zero ( )
inline

removes all the coefficients, but keeps the allocated space, that will be used by subsequent calls to add().

Definition at line 116 of file AlephCudaMatrix.h.

Referenced by Arcane::CNC_Matrix::zero().

Here is the caller graph for this function:

Member Data Documentation

◆ capacity_

long Arcane::CNCSparseRowColumn::capacity_
private

Definition at line 131 of file AlephCudaMatrix.h.

◆ coeff_

CNCCoeff* Arcane::CNCSparseRowColumn::coeff_
private

Definition at line 129 of file AlephCudaMatrix.h.

◆ nb_coeffs_

long Arcane::CNCSparseRowColumn::nb_coeffs_
private

Definition at line 130 of file AlephCudaMatrix.h.


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