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

#include <Concepts/SparseLinearAlgebraTraits_d.h>

Definition

SparseLinearAlgebraTraits_d::Vector is a concept of a vector that can be multiplied by a sparse matrix.

Refines:
DefaultConstructible
Has Models:
CGAL::Eigen_vector<T>
See also
SparseLinearAlgebraTraits_d
SparseLinearAlgebraTraits_d::Matrix

Types

typedef unspecified_type NT
 
typedef unspecified_type Index
 Index type. More...
 

Creation

 Vector (Index rows)
 Create a vector initialized with zeros. More...
 
 Vector (const Vector &toCopy)
 Copy constructor. More...
 

Operations

Index dimension () const
 Return the vector's number of coefficients. More...
 
NT operator[] (Index row) const
 Read/write access to a vector coefficient. More...
 
NToperator[] (Index row)
 

Member Typedef Documentation

◆ Index

typedef unspecified_type SparseLinearAlgebraTraits_d::Vector::Index

Index type.

◆ NT

typedef unspecified_type SparseLinearAlgebraTraits_d::Vector::NT

Constructor & Destructor Documentation

◆ Vector() [1/2]

SparseLinearAlgebraTraits_d::Vector::Vector ( Index  rows)

Create a vector initialized with zeros.

◆ Vector() [2/2]

SparseLinearAlgebraTraits_d::Vector::Vector ( const Vector toCopy)

Copy constructor.

Member Function Documentation

◆ dimension()

Index SparseLinearAlgebraTraits_d::Vector::dimension ( ) const

Return the vector's number of coefficients.

◆ operator[]() [1/2]

NT& SparseLinearAlgebraTraits_d::Vector::operator[] ( Index  row)

◆ operator[]() [2/2]

NT SparseLinearAlgebraTraits_d::Vector::operator[] ( Index  row) const

Read/write access to a vector coefficient.

Precondition
0 <= row < dimension().