• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

KmPlot

Public Member Functions | Protected Attributes | List of all members
Vector Class Reference

#include <vector.h>

Public Member Functions

 Vector ()
 
 Vector (int size)
 
 Vector (const Vector &other)
 
void addRK4 (double dx, const Vector &k1, const Vector &k2, const Vector &k3, const Vector &k4)
 
void combine (const Vector &a, double k, const Vector &b)
 
double * data ()
 
const double * data () const
 
bool operator!= (const Vector &other) const
 
Vector operator* (double x) const
 
Vector & operator*= (double x)
 
Vector operator+ (const Vector &other) const
 
Vector & operator+= (const Vector &other)
 
Vector operator- (const Vector &other) const
 
Vector & operator-= (const Vector &other)
 
Vector & operator= (const Vector &other)
 
Vector & operator= (const QVector< Value > &other)
 
bool operator== (const Vector &other) const
 
double & operator[] (int i)
 
double operator[] (int i) const
 
void resize (int s)
 
int size () const
 

Protected Attributes

QVector< double > m_data
 

Detailed Description

Mathematical vector.

Definition at line 35 of file vector.h.

Constructor & Destructor Documentation

Vector::Vector ( )
inline

Definition at line 38 of file vector.h.

Vector::Vector ( int  size)
inlineexplicit

Definition at line 39 of file vector.h.

Vector::Vector ( const Vector &  other)
inline

Definition at line 40 of file vector.h.

Member Function Documentation

void Vector::addRK4 ( double  dx,
const Vector &  k1,
const Vector &  k2,
const Vector &  k3,
const Vector &  k4 
)

Another optimization for use in solving differential equations.

Definition at line 126 of file vector.cpp.

void Vector::combine ( const Vector &  a,
double  k,
const Vector &  b 
)

Optimization for use in solving differential equations.

Sets the contents of this vector to a+k*b.

Definition at line 110 of file vector.cpp.

double* Vector::data ( )
inline

Definition at line 44 of file vector.h.

const double* Vector::data ( ) const
inline

Definition at line 45 of file vector.h.

bool Vector::operator!= ( const Vector &  other) const
inline

Definition at line 55 of file vector.h.

Vector Vector::operator* ( double  x) const

Definition at line 68 of file vector.cpp.

Vector & Vector::operator*= ( double  x)

Definition at line 76 of file vector.cpp.

Vector Vector::operator+ ( const Vector &  other) const

Definition at line 32 of file vector.cpp.

Vector & Vector::operator+= ( const Vector &  other)

Definition at line 40 of file vector.cpp.

Vector Vector::operator- ( const Vector &  other) const

Definition at line 50 of file vector.cpp.

Vector & Vector::operator-= ( const Vector &  other)

Definition at line 58 of file vector.cpp.

Vector & Vector::operator= ( const Vector &  other)

Definition at line 84 of file vector.cpp.

Vector & Vector::operator= ( const QVector< Value > &  other)

Definition at line 100 of file vector.cpp.

bool Vector::operator== ( const Vector &  other) const
inline

Definition at line 54 of file vector.h.

double& Vector::operator[] ( int  i)
inline

Definition at line 56 of file vector.h.

double Vector::operator[] ( int  i) const
inline

Definition at line 57 of file vector.h.

void Vector::resize ( int  s)
inline

Definition at line 43 of file vector.h.

int Vector::size ( ) const
inline

Definition at line 42 of file vector.h.

Member Data Documentation

QVector<double> Vector::m_data
protected

Definition at line 69 of file vector.h.


The documentation for this class was generated from the following files:
  • vector.h
  • vector.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Mon Dec 16 2019 00:36:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KmPlot

Skip menu "KmPlot"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  •   KmPlot
  • libkeduvocdocument
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   src
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal