Tatooine
Einstein notation
Table of Contents
Introduction
Introduction
Einstein notation can be used for contracting tensors. (see
Wikipedia
)
#include <
tatooine/tensor.h
>
#include <
tatooine/einstein_notation.h
>
//==============================================================================
using namespace
tatooine
;
//==============================================================================
auto
main() ->
int
{
using namespace
einstein_notation;
auto
A = mat2::randu();
auto
B = tensor222::randu();
auto
C =
vec2
{};
C(k) = A(i, j) * B(i, j, k);
}
einstein_notation.h
tatooine
Definition:
algorithm.h:6
tatooine::vec
Definition:
vec.h:12
tensor.h
Generated by
1.9.5