![]() |
Audacity 3.2.0
|
Holds a matrix of doubles and supports arithmetic operations, including Vector-Matrix operations. Used by InterpolateAudio. More...
#include <Matrix.h>
Public Member Functions | |
| Vector () | |
| Vector (const Vector ©From) | |
| Vector (unsigned len, double *data=NULL) | |
| Vector (unsigned len, float *data) | |
| Vector & | operator= (const Vector &other) |
| ~Vector () | |
| void | Reinit (unsigned len) |
| void | Swap (Vector &that) |
| double & | operator[] (unsigned i) |
| double | operator[] (unsigned i) const |
| unsigned | Len () const |
| double | Sum () const |
Private Attributes | |
| unsigned | mN { 0 } |
| Doubles | mData |
Holds a matrix of doubles and supports arithmetic operations, including Vector-Matrix operations. Used by InterpolateAudio.
| Vector::Vector | ( | ) |
Definition at line 18 of file Matrix.cpp.
| Vector::Vector | ( | const Vector & | copyFrom | ) |
Definition at line 49 of file Matrix.cpp.
References staffpad::vo::copy(), mData, and mN.
| Vector::Vector | ( | unsigned | len, |
| double * | data = NULL |
||
| ) |
Definition at line 22 of file Matrix.cpp.
References staffpad::vo::copy(), and mData.
| Vector::Vector | ( | unsigned | len, |
| float * | data | ||
| ) |
Definition at line 32 of file Matrix.cpp.
References staffpad::vo::copy(), and mData.
| Vector::~Vector | ( | ) |
Definition at line 56 of file Matrix.cpp.
|
inline |
Definition at line 48 of file Matrix.h.
References mN.
Referenced by operator*(), operator+(), operator-(), operator=(), Sum(), and VectorConcatenate().
Definition at line 42 of file Matrix.cpp.
References staffpad::vo::copy(), Len(), mData, and mN.
|
inline |
|
inline |
| void Vector::Reinit | ( | unsigned | len | ) |
Definition at line 60 of file Matrix.cpp.
References Swap().
| double Vector::Sum | ( | ) | const |
| void Vector::Swap | ( | Vector & | that | ) |
Definition at line 66 of file Matrix.cpp.
References mData, mN, and anonymous_namespace{NoteTrack.cpp}::swap().
Referenced by Reinit().
|
private |
Definition at line 54 of file Matrix.h.
Referenced by operator=(), operator[](), Sum(), Swap(), and Vector().
|
private |