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

#include <Concepts/SvdTraits.h>

Definition

Concept of vector type used by the concept SvdTraits.

Has Models:
CGAL::Eigen_vector<T>

Public Member Functions

 Vector (size_t n)
 Initialize all the elements of the vector to zero. More...
 
size_t size ()
 Return the size of the vector. More...
 
FT operator() (size_t i)
 Return the ith entry, i from 0 to size()-1. More...
 
void set (size_t i, const FT value)
 Set the i'th entry to value. More...
 
FTvector ()
 Return the vector as an array. More...
 

Constructor & Destructor Documentation

◆ Vector()

SvdTraits::Vector::Vector ( size_t  n)

Initialize all the elements of the vector to zero.

Member Function Documentation

◆ operator()()

FT SvdTraits::Vector::operator() ( size_t  i)

Return the ith entry, i from 0 to size()-1.

◆ set()

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

Set the i'th entry to value.

◆ size()

size_t SvdTraits::Vector::size ( )

Return the size of the vector.

◆ vector()

FT* SvdTraits::Vector::vector ( )

Return the vector as an array.