mirror of
https://github.com/triqs/dft_tools
synced 2024-11-01 11:43:47 +01:00
11 lines
193 B
C++
11 lines
193 B
C++
|
#include <triqs/arrays.hpp>
|
||
|
using triqs::arrays::array;
|
||
|
int main() {
|
||
|
array<double, 1> A(10), B(10);
|
||
|
A() = 2;
|
||
|
B() = 3;
|
||
|
array<double, 1> C = A + B;
|
||
|
std::cout << "C = " << C << std::endl;
|
||
|
}
|
||
|
|