Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
al-vector.H File Reference

Sparse vector with named elements. More...

#include <concepts>
#include <memory>
#include <sstream>
#include <iostream>
#include <string>
#include <type_traits>
#include <utility>
#include <ah-errors.H>
#include <ahFunctional.H>
#include <ahDry.H>
#include <ah-dry-mixin.H>
#include <ahSort.H>
#include <htlist.H>
#include <ah-zip.H>
#include <tpl_hash.H>
#include <al-domain.H>
Include dependency graph for al-vector.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Aleph::Vector< T, NumType >
 Sparse vector implementation with domain-based indexing. More...
 
class  Aleph::Vector< T, NumType >::Proxy
 The entry of a key, as v[k] gives it: reads and assigns it. More...
 
struct  Aleph::Vector< T, NumType >::Iterator
 

Namespaces

namespace  Aleph
 Main namespace for Aleph-w library functions.
 

Concepts

concept  Aleph::AlNumber
 A number of the entries of a Vector or of a Matrix.
 
concept  Aleph::AlAdditiveNumber
 A number that adds and subtracts: what the sums, the differences and the comparisons of vectors and matrices need.
 
concept  Aleph::AlMultiplicativeNumber
 A number that multiplies: what the products by a scalar, and the products of vectors and matrices, need.
 
concept  Aleph::AlDivisibleNumber
 A number that divides: what the division of a vector by a scalar needs.
 

Functions

template<typename T , typename NumType >
requires AlMultiplicativeNumber<NumType>
Vector< T, NumType > Aleph::operator* (const NumType &scalar, const Vector< T, NumType > &v)
 The vector v multiplied by scalar.
 
std::ostream & Aleph::operator<< (std::ostream &s, const Vector< T, NumType > &vec)
 

Detailed Description

Sparse vector with named elements.

Provides Vector class for sparse vectors where elements are indexed by arbitrary types. Efficient for vectors with many zero/default elements using hash-based storage.

Author
Leandro Rabindranath León

Definition in file al-vector.H.