RTXI  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
CmplxPolynomial Class Reference

#include <cmpxpoly.h>

Public Member Functions

 CmplxPolynomial ()
 
 CmplxPolynomial (const CmplxPolynomial &original)
 
 CmplxPolynomial (const complex coeff_1, const complex coeff_0)
 
 CmplxPolynomial (const complex *coeff, const int degree)
 
 CmplxPolynomial (const double *coeff, const int degree)
 
CmplxPolynomialoperator= (const CmplxPolynomial &right)
 
CmplxPolynomialoperator*= (const CmplxPolynomial &right)
 
CmplxPolynomialoperator/= (const CmplxPolynomial &divisor)
 
complexGetRoots (void)
 
void ReflectRoot (int root_idx)
 
void DumpToStream (std::ostream *output_stream)
 
int GetDegree (void)
 
complex GetCoeff (int k)
 
void CopyCoeffs (complex *)
 

Private Member Functions

void FindRoots (void)
 
void BuildFromRoots (void)
 

Private Attributes

int Degree
 
complexCoeff
 
complexRemCoeff
 
complexRoot
 

Friends

class Polynomial
 

Detailed Description

Definition at line 10 of file cmpxpoly.h.

Constructor & Destructor Documentation

CmplxPolynomial::CmplxPolynomial()

Definition at line 19 of file cmpxpoly.cpp.

CmplxPolynomial::CmplxPolynomial(const CmplxPolynomialoriginal)

Definition at line 32 of file cmpxpoly.cpp.

CmplxPolynomial::CmplxPolynomial(const complex coeff_1,
const complex coeff_0 
)

Definition at line 51 of file cmpxpoly.cpp.

CmplxPolynomial::CmplxPolynomial(const complexcoeff,
const int degree 
)

Definition at line 67 of file cmpxpoly.cpp.

CmplxPolynomial::CmplxPolynomial(const double * coeff,
const int degree 
)

Definition at line 83 of file cmpxpoly.cpp.

Member Function Documentation

void CmplxPolynomial::BuildFromRoots(void )
private

Definition at line 292 of file cmpxpoly.cpp.

void CmplxPolynomial::CopyCoeffs(complexcoeff)

Definition at line 334 of file cmpxpoly.cpp.

void CmplxPolynomial::DumpToStream(std::ostream * output_stream)

Definition at line 302 of file cmpxpoly.cpp.

void CmplxPolynomial::FindRoots(void )
private

Definition at line 203 of file cmpxpoly.cpp.

complex CmplxPolynomial::GetCoeff(int k)

Definition at line 325 of file cmpxpoly.cpp.

int CmplxPolynomial::GetDegree(void )

Definition at line 316 of file cmpxpoly.cpp.

complex * CmplxPolynomial::GetRoots(void )

Definition at line 260 of file cmpxpoly.cpp.

CmplxPolynomial & CmplxPolynomial::operator*=(const CmplxPolynomialright)

Definition at line 123 of file cmpxpoly.cpp.

CmplxPolynomial & CmplxPolynomial::operator/=(const CmplxPolynomialdivisor)

Definition at line 158 of file cmpxpoly.cpp.

CmplxPolynomial & CmplxPolynomial::operator=(const CmplxPolynomialright)

Definition at line 100 of file cmpxpoly.cpp.

void CmplxPolynomial::ReflectRoot(int root_idx)

Definition at line 277 of file cmpxpoly.cpp.

Friends And Related Function Documentation

friend class Polynomial
friend

Definition at line 55 of file cmpxpoly.h.

Member Data Documentation

complex* CmplxPolynomial::Coeff
private

Definition at line 65 of file cmpxpoly.h.

int CmplxPolynomial::Degree
private

Definition at line 64 of file cmpxpoly.h.

complex* CmplxPolynomial::RemCoeff
private

Definition at line 66 of file cmpxpoly.h.

complex* CmplxPolynomial::Root
private

Definition at line 67 of file cmpxpoly.h.


The documentation for this class was generated from the following files: