Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102903217
ComplexMatrix3x3.hpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Feb 25, 08:53
Size
1 KB
Mime Type
text/x-c++
Expires
Thu, Feb 27, 08:53 (2 d)
Engine
blob
Format
Raw Data
Handle
24452993
Attached To
R1106 Programming Concept Rouaze
ComplexMatrix3x3.hpp
View Options
/*
* ComplexMatrix3x3.hpp
*
* Created on: Oct 19, 2012
* Author: rpopescu
*/
#ifndef COMPLEXMATRIX3X3_HPP_
#define COMPLEXMATRIX3X3_HPP_
#include <iostream>
#include "ComplexNumber.hpp"
class ComplexMatrix3x3 {
public:
// Constructors and destructor
ComplexMatrix3x3();
ComplexMatrix3x3(const ComplexMatrix3x3& m);
virtual ~ComplexMatrix3x3();
// Get methods
ComplexNumber Get(const int i, const int j) const;
// Set methods
void Set(const int i, const int j, const ComplexNumber& value);
// Public methods
bool IsZero() const;
ComplexMatrix3x3 PowerOverFact(const int n) const;
void Exponential(ComplexMatrix3x3& E, const int power) const;
void Print(std::ostream& s = std::cout);
// Operators
ComplexMatrix3x3& operator=(const ComplexMatrix3x3& m);
ComplexMatrix3x3 operator*(const double d) const;
ComplexMatrix3x3 operator+(const double d) const;
ComplexMatrix3x3 operator+(const ComplexMatrix3x3& m) const;
ComplexMatrix3x3 operator*(const ComplexMatrix3x3& m) const;
private:
ComplexNumber** mMatrix;
};
#endif /* COMPLEXMATRIX3X3_HPP_ */
Event Timeline
Log In to Comment