aclComplexNumOfElements.h
Go to the documentation of this file.
/*
* Advanced Simulation Library <http://asl.org.il>
*
* Copyright 2015 Avtech Scientific <http://avtechscientific.com>
*
*
* This file is part of Advanced Simulation Library (ASL).
*
* ASL is free software: you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, version 3 of the License.
*
* ASL is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with ASL. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef ACLCOMPLEXNUMOFELEMENTS_H
#define ACLCOMPLEXNUMOFELEMENTS_H
#include "aclVectorOfElements.h"
namespace acl
{
class ComplexNumOfElements
{
private:
VectorOfElements ve;
public:
ComplexNumOfElements();
void setRe(Element a);
void setIm(Element a);
const Element getRe() const;
const Element getIm() const;
VectorOfElements & getInternalVector();
const VectorOfElements & getInternalVector() const;
};
void copy(const ComplexNumOfElements & source, ComplexNumOfElements & destination);
ComplexNumOfElements operator+(ComplexNumOfElements & a, ComplexNumOfElements & b);
ComplexNumOfElements operator-(ComplexNumOfElements & a,ComplexNumOfElements & b);
ComplexNumOfElements operator*(const ComplexNumOfElements & a, const ComplexNumOfElements & b);
} //namespace acl
#endif // ACLCOMPLEXNUMOFELEMENTS_H
acl::ComplexNumOfElements
The class represents a matrix elements of Element.
Definition: aclComplexNumOfElements.h:36
acl::ComplexNumOfElements::operator-
ComplexNumOfElements operator-(ComplexNumOfElements &a, ComplexNumOfElements &b)
difference of two matrices
acl::ComplexNumOfElements::copy
void copy(const ComplexNumOfElements &source, ComplexNumOfElements &destination)
function copies the ComplexNumOfElements class.
acl::ComplexNumOfElements::getInternalVector
const VectorOfElements & getInternalVector() const
acl::ComplexNumOfElements::operator+
ComplexNumOfElements operator+(ComplexNumOfElements &a, ComplexNumOfElements &b)
summ of two matrices
acl::ComplexNumOfElements::getIm
const Element getIm() const
acl::ComplexNumOfElements::ComplexNumOfElements
ComplexNumOfElements()
acl::ComplexNumOfElements::getRe
const Element getRe() const
acl::ComplexNumOfElements::setIm
void setIm(Element a)
acl::ComplexNumOfElements::setRe
void setRe(Element a)
acl::ComplexNumOfElements::operator*
ComplexNumOfElements operator*(const ComplexNumOfElements &a, const ComplexNumOfElements &b)
product of two matrices
acl::ComplexNumOfElements::getInternalVector
VectorOfElements & getInternalVector()
acl::VectorOfElements
The class represents several Element.
Definition: aclVectorOfElementsDef.h:92
acl
Advanced Computational Language.
Definition: acl.h:41
acl::Element
std::shared_ptr< ElementBase > Element
Definition: acl.h:49
aclVectorOfElements.h