37# include <gtest/gtest.h>
44using namespace testing;
59 maps([] (
auto i) {
return (i % 2) == 0 ? 1 : 0; }) };
61 maps([] (
auto i) {
return (i % 2) == 0 ? 0 : 1; }) };
66 maps([] (
auto i) {
return (i % 2) == 0 ? 1 : 0; }) };
68 maps([] (
auto i) {
return (i % 2) == 0 ? 0 : 1; }) };
72 {
return range<int>(
cd.size()); }) };
81 {
return range<int>(
rd.size()); }) };
99 EXPECT_EQ(v1*m1_zero, V2(cd, { 0, 0, 0, 0}));
100 EXPECT_EQ(m1_zero*v2, V1(rd, { 0, 0, 0, 0, 0}));
105 cout << v1_zero << endl << endl
106 << v1 << endl << endl
107 << v1_odd << endl << endl
108 << v1_even << endl << endl
110 << v2_zero << endl << endl
111 << v2 << endl << endl
112 << v2_odd << endl << endl
113 << v2_even << endl << endl
114 << m1_even<< endl << endl
115 << m1_odd << endl << endl
116 << m2_even<< endl << endl
117 << m1_odd << endl << endl
String manipulation utilities.
High-level sorting functions for Aleph containers.
Sparse matrix with generic domains.
TEST_F(SmallDomains, basic)
Generic domain class based on hash set.
Doubly-linked list (defined in tpl_dynList.H).
Vector< Tcol, NumType > get_row_vector(const Trow &row) const
Given a row, build a vector corresponding to the row.
static Matrix create_by_rows(const RDomain &rdomain, const DynList< Vector< string, int > > &rows, const int &e=default_epsilon)
Create a matrix from a list of row vectors.
static Matrix create_by_columns(const CDomain &cdomain, const DynList< Vector< string, int > > &cols, const int &e=default_epsilon)
Create a matrix from a list of column vectors.
Vector< Trow, NumType > get_col_vector(const Tcol &col) const
Given a column, build a vector corresponding to the column.
Main namespace for Aleph-w library functions.
DynList< T > rep(const size_t n, const T &item)
Create a sequence of repeated items.
DynList< T > maps(const C &c, Op op)
Classic map operation.