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; }) };
96 EXPECT_EQ(v1*m1_zero, V2(cd, { 0, 0, 0, 0}));
97 EXPECT_EQ(m1_zero*v2, V1(rd, { 0, 0, 0, 0, 0}));
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.
Dynamic singly linked list with functional programming support.
Vector< Tcol, NumType > get_row_vector(const Trow &row) const
Given a row, build a vector corresponding to the row.
Vector< Trow, NumType > get_col_vector(const Tcol &col) const
Given a column, build a vector corresponding to the column.
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.
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.
Main namespace for Aleph-w library functions.
DynList< T > maps(const C &c, Op op)
Classic map operation.
DynList< T > rep(size_t n, const T &item)
Create a sequence of repeated items.