48 for (std::size_t i = 0; i < vcl_A.
size1(); ++i)
49 for (std::size_t j = 0; j < vcl_A.
size2(); ++j)
55 std::cout <<
"vcl_A: " << vcl_A << std::endl;
56 std::cout <<
"vcl_B: " << vcl_B << std::endl;
77 NodeContainerType expression_nodes(2);
83 expression_nodes[0].lhs.subtype = viennacl::scheduler::DENSE_ROW_MATRIX_TYPE;
85 expression_nodes[0].lhs.matrix_row_float = &vcl_A;
93 expression_nodes[0].rhs.node_index = 1;
99 expression_nodes[1].lhs.subtype = viennacl::scheduler::DENSE_ROW_MATRIX_TYPE;
101 expression_nodes[1].lhs.matrix_row_float = &vcl_B;
109 expression_nodes[1].rhs.subtype = viennacl::scheduler::DENSE_ROW_MATRIX_TYPE;
111 expression_nodes[1].rhs.matrix_row_float = &vcl_B;
118 std::cout << vec_addition << std::endl;
124 std::cout <<
"vcl_A: " << vcl_A << std::endl;
125 std::cout <<
"vcl_B: " << vcl_B << std::endl;
128 std::cout <<
"!!!! TUTORIAL COMPLETED SUCCESSFULLY !!!!" << std::endl;
Implementation of the dense matrix class.
Some helper routines for reading/writing/printing scheduler expressions.
void execute(statement const &s)
std::vector< value_type > container_type
int main(int, const char **)
size_type size2() const
Returns the number of columns.
size_type size1() const
Returns the number of rows.
The vector type with operator-overloads and proxy classes is defined here. Linear algebra operations ...
Provides the datastructures for dealing with a single statement such as 'x = y + z;'.
The main class for representing a statement such as x = inner_prod(y,z); at runtime.
Implementation of the ViennaCL scalar class.