CGAL 5.1 - CGAL and Solvers
SvdTraits::Matrix Class Reference

#include <Concepts/SvdTraits.h>

Definition

Concept of matrix type used by the concept SvdTraits.

Refines:

DefaultConstructible

Assignable

Has Models:
CGAL::Eigen_matrix<T>

Public Member Functions

 Matrix (size_t n1, size_t n2)
 Initialize all the entries of the matrix to zero. More...
 
size_t number_of_rows ()
 Return the number of rows of the matrix. More...
 
size_t number_of_columns ()
 Return the number of columns of the matrix. More...
 
FT operator() (size_t i, size_t j)
 Return the entry at row i and column j, i from 0 to number_of_rows - 1, j from 0 to number_of_columns - 1. More...
 
void set (size_t i, size_t j, const FT value)
 Set the entry at row i and column j to value. More...
 

Constructor & Destructor Documentation

◆ Matrix()

SvdTraits::Matrix::Matrix ( size_t  n1,
size_t  n2 
)

Initialize all the entries of the matrix to zero.

Member Function Documentation

◆ number_of_columns()

size_t SvdTraits::Matrix::number_of_columns ( )

Return the number of columns of the matrix.

◆ number_of_rows()

size_t SvdTraits::Matrix::number_of_rows ( )

Return the number of rows of the matrix.

◆ operator()()

FT SvdTraits::Matrix::operator() ( size_t  i,
size_t  j 
)

Return the entry at row i and column j, i from 0 to number_of_rows - 1, j from 0 to number_of_columns - 1.

◆ set()

void SvdTraits::Matrix::set ( size_t  i,
size_t  j,
const FT  value 
)

Set the entry at row i and column j to value.