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

The concepts of al-domain.H and al-vector.H: the keys and the numbers that AlDomain, Vector and Matrix take, and what each member asks of them. More...

#include <gtest/gtest.h>
#include <gmpxx.h>
#include <ostream>
#include <string>
#include <type_traits>
#include <al-matrix.H>
Include dependency graph for al_concepts_test.cc:

Go to the source code of this file.

Concepts

concept  @733::makes_a_domain
 
concept  @733::makes_a_vector
 
concept  @733::makes_a_matrix
 
concept  @733::has_keys
 
concept  @733::has_to_list
 
concept  @733::has_to_str
 
concept  @733::has_print
 
concept  @733::has_row_domain_list
 
concept  @733::can_divide
 
concept  @733::can_divide_by_scalar
 
concept  @733::can_add
 
concept  @733::can_multiply
 
concept  @733::can_compare
 
concept  @733::can_negate
 
concept  @733::can_multiply_a_vector
 

Functions

void PrintTo (const mpq_class &q, std::ostream *os)
 
 TEST (AlConcepts, TheKeysOfADomain)
 
 TEST (AlConcepts, TheNumbersOfAVector)
 
 TEST (AlConcepts, KeysWithoutOrderSetAndAddEntries)
 
 TEST (AlConcepts, NumbersWithoutDivisionAddAndMultiply)
 
 TEST (AlConcepts, NumbersThatOnlyCompareSetAndReadEntries)
 
 TEST (AlConcepts, ExactRationalsComputeExactly)
 

Detailed Description

The concepts of al-domain.H and al-vector.H: the keys and the numbers that AlDomain, Vector and Matrix take, and what each member asks of them.

Definition in file al_concepts_test.cc.

Function Documentation

◆ PrintTo()

void PrintTo ( const mpq_class &  q,
std::ostream *  os 
)

Definition at line 54 of file al_concepts_test.cc.

References __gmp_expr< mpq_t, mpq_t >::get_str().

◆ TEST() [1/6]

TEST ( AlConcepts  ,
ExactRationalsComputeExactly   
)

Definition at line 287 of file al_concepts_test.cc.

References Aleph::Vector< T, NumType >::get_entry(), m, and w.

◆ TEST() [2/6]

TEST ( AlConcepts  ,
KeysWithoutOrderSetAndAddEntries   
)

Definition at line 202 of file al_concepts_test.cc.

References Aleph::AlDomain< T >::insert().

◆ TEST() [3/6]

TEST ( AlConcepts  ,
NumbersThatOnlyCompareSetAndReadEntries   
)

◆ TEST() [4/6]

TEST ( AlConcepts  ,
NumbersWithoutDivisionAddAndMultiply   
)

Definition at line 238 of file al_concepts_test.cc.

References w.

◆ TEST() [5/6]

TEST ( AlConcepts  ,
TheKeysOfADomain   
)

Definition at line 153 of file al_concepts_test.cc.

References Aleph::and.

◆ TEST() [6/6]

TEST ( AlConcepts  ,
TheNumbersOfAVector   
)

Definition at line 176 of file al_concepts_test.cc.

References Aleph::and.