File Tensor33.h

Copyright

This code is licensed under the 3-clause BSD license.

Copyright ETH Zurich, Laboratory for Physical Chemistry, Reiher Group.

See LICENSE.txt for details.

namespace Scine

This header file contains functions that allow for common notation for common things that can be done at a different degree of derivatives.

This header contains alias definitions defining which classes to use for the different degrees of derivatives.

namespace Utils

Functions

Tensor33 tensor(const Eigen::Vector3d &a, const Eigen::Vector3d &b)
class Tensor33
#include <Tensor33.h>

Simple algebra for a 3x3 tensor.

Public Functions

Tensor33(Eigen::Vector3d x, Eigen::Vector3d y, Eigen::Vector3d z)

Constructor from three Eigen::Vector3d vectors.

const Eigen::Vector3d &x() const

Accessor in x direction.

const Eigen::Vector3d &y() const

Accessor in y direction.

const Eigen::Vector3d &z() const

Accessor in z direction.

Tensor33 operator+(const Tensor33 &rhs) const
Tensor33 operator*(double f) const

Private Members

Eigen::Vector3d x_
Eigen::Vector3d y_
Eigen::Vector3d z_