\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)
CGAL 4.12.1 - CGAL and Solvers
CGAL::Lapack_matrix Class Reference

#include <CGAL/Lapack_svd.h>

Definition

In CLAPACK, matrices are one-dimensional arrays and elements are column-major ordered.

This class is a wrapper defining set and get in the usual way with line and column indices.

Is Model Of:
SvdTraits::Matrix

Public Member Functions

 Lapack_matrix (size_t n1, size_t n2)
 Initializes all the elements of the matrix to zero.
 
 ~Lapack_matrix ()
 
size_t number_of_rows ()
 Return the number of rows of the matrix.
 
size_t number_of_columns ()
 Return the number of columns of the matrix.
 
const FT * matrix () const
 Return the matrix as an array.
 
FT * matrix ()
 Return the matrix as an array.
 
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.
 

Protected Attributes

FT * m_matrix
 
size_t nb_rows
 
size_t nb_columns
 

Member Function Documentation

◆ operator()()

FT CGAL::Lapack_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.