Medusa  1.1
Coordinate Free Mehless Method implementation
ScalarField.hpp
Go to the documentation of this file.
1 #ifndef MEDUSA_BITS_TYPES_SCALARFIELD_HPP_
2 #define MEDUSA_BITS_TYPES_SCALARFIELD_HPP_
3 
9 #include "ScalarField_fwd.hpp"
10 #include <iostream>
11 
12 namespace mm {
13 
15 template <typename Scalar>
16 template <typename OtherDerived>
17 ScalarField<Scalar>::ScalarField(const Eigen::MatrixBase<OtherDerived>& other) : Base(other) {}
18 
19 template <typename Scalar>
20 template <typename OtherDerived>
21 ScalarField<Scalar>& ScalarField<Scalar>::operator=(
22  const Eigen::MatrixBase<OtherDerived>& other) {
23  Base::operator=(other); return *this;
24 }
26 
27 } // namespace mm
28 
29 #endif // MEDUSA_BITS_TYPES_SCALARFIELD_HPP_
operator=
Matrix & operator=(const Scalar &s)
Assign scalar to a matrix, setting all its elements to s.
Definition: MatrixAddons.hpp:15
mm
Root namespace for the whole library.
Definition: Gaussian.hpp:14
ScalarField_fwd.hpp
mm::ScalarField::ScalarField
ScalarField(const Eigen::MatrixBase< OtherDerived > &other)
This constructor allows construction of ScalarField from Eigen expressions.