|
PSCF v1.5.0
|
Elementwise vector operations. More...
Functions | |
| void | eqV (Array< double > &a, Array< double > const &b, const int beginIdA, const int beginIdB, const int n) |
| Vector assignment, a[i] = b[i] (real, slice). | |
| void | eqV (Array< double > &a, Array< double > const &b) |
| Vector assignment, a[i] = b[i] (real). | |
| void | eqS (Array< double > &a, double b) |
| Vector assignment, a[i] = b (real). | |
| void | addVV (Array< double > &a, Array< double > const &b, Array< double > const &c) |
| Vector-vector addition, a[i] = b[i] + c[i] (real). | |
| void | addVS (Array< double > &a, Array< double > const &b, double c) |
| Vector-scalar addition, a[i] = b[i] + c (real). | |
| void | subVV (Array< double > &a, Array< double > const &b, Array< double > const &c) |
| Vector-vector subtraction, a[i] = b[i] - c[i] (real). | |
| void | subVS (Array< double > &a, Array< double > const &b, double c) |
| Vector-scalar subtraction, a[i] = b[i] - c (real). | |
| void | mulVV (Array< double > &a, Array< double > const &b, Array< double > const &c) |
| Vector-vector multiplication, a[i] = b[i] * c[i] (real). | |
| void | mulVS (Array< double > &a, Array< double > const &b, double c) |
| Vector-scalar multiplication, a[i] = b[i] * c (real). | |
| void | divVV (Array< double > &a, Array< double > const &b, Array< double > const &c) |
| Vector-vector division, a[i] = b[i] / c[i] (real). | |
| void | divVS (Array< double > &a, Array< double > const &b, double c) |
| Vector-scalar division, a[i] = b[i] / c (real). | |
| void | divSV (Array< double > &a, double b, Array< double > const &c) |
| Vector division, a[i] = b / c[i]. | |
| void | addEqV (Array< double > &a, Array< double > const &b) |
| Vector-vector in-place addition, a[i] += b[i] (real). | |
| void | addEqS (Array< double > &a, double b) |
| Vector-scalar in-place addition, a[i] += b (real). | |
| void | subEqV (Array< double > &a, Array< double > const &b) |
| Vector-vector in-place subtraction, a[i] -= b[i] (real). | |
| void | subEqS (Array< double > &a, double b) |
| Vector-scalar subtraction in-place, a[i] -= b (real). | |
| void | mulEqV (Array< double > &a, Array< double > const &b) |
| Vector-vector in-place multiplication, a[i] *= b[i] (real). | |
| void | mulEqS (Array< double > &a, double b) |
| Vector-scalar in-place multiplication, a[i] *= b (real). | |
| void | divEqV (Array< double > &a, Array< double > const &b) |
| Vector-vector in-place division, a[i] /= b[i]. | |
| void | divEqS (Array< double > &a, double b) |
| Vector-scalar in-place division, a[i] /= b. | |
| void | expV (Array< double > &a, Array< double > const &b) |
| Vector exponentiation, a[i] = exp(b[i]) (real). | |
| void | expVc (Array< double > &a, Array< double > const &b, const double c) |
| Exponentiation a scaled vector, a[i] = exp(b[i]*c) (real). | |
| void | sqV (Array< double > &a, Array< double > const &b) |
| Vector element-wise square, a[i] = b[i]*b[i] (real). | |
| void | absV (Array< double > &a, Array< double > const &b) |
| Element-wise absolute magnitude, a[i] = abs(b[i]) (real). | |
| void | addVcVc (Array< double > &a, Array< double > const &b1, const double c1, Array< double > const &b2, const double c2) |
| Add two scaled vectors, a[i] = b1[i]*c1 + b2[2]*c2 (real). | |
| void | addVcS (Array< double > &a, Array< double > const &b, const double c, const double s) |
| Add a scaled vector and a scalar, a[i] = b[i]*c + s (real). | |
| void | addEqVc (Array< double > &a, Array< double > const &b, double const c) |
| Add scaled vector in-place, a[i] += b[i]*c (real). | |
| void | addVcVcS (Array< double > &a, Array< double > const &b1, const double c1, Array< double > const &b2, const double c2, const double s) |
| Add scaled vectors + scalar, a[i] = b1[i]*c1 + b2[2]*c2 + s (real). | |
| void | addVcVcVc (Array< double > &a, Array< double > const &b1, const double c1, Array< double > const &b2, const double c2, Array< double > const &b3, const double c3) |
| Add scaled vectors, a[i] = b1[i]*c1 + b2[i]*c2 + b3[i]*c3 (real). | |
| void | eqVPair (Array< double > &a1, Array< double > &a2, Array< double > const &b) |
| Vector assignment in pairs, ax[i] = b[i], x = 1, 2. | |
| void | mulVVPair (Array< double > &a1, Array< double > &a2, Array< double > const &b1, Array< double > const &b2, Array< double > const &c) |
| Vector multiplication in pairs, ax[i] = bx[i] * s[i], x=1,2. | |
| void | mulEqVPair (Array< double > &a1, Array< double > &a2, Array< double > const &b) |
| In-place vector multiplication in pairs, ax[i] *= b[i], x=1,2. | |
| void | real (Array< double > &a, Array< fftw_complex > const &b) |
| Copy real part of a complex array to a real array. | |
| void | imag (Array< double > &a, Array< fftw_complex > const &b) |
| Copy imaginary part of a complex array to a real array. | |
| void | eqV (Array< fftw_complex > &a, Array< fftw_complex > const &b) |
| Vector assignment, a[i] = b[i] (complex). | |
| void | eqV (Array< fftw_complex > &a, Array< double > const &b, Array< double > const &c) |
| Vector assignment, a[i] = (b[i], c[i]) (complex, real & imaginary). | |
| void | eqV (Array< fftw_complex > &a, Array< double > const &b) |
| Vector assignment, a[i] = b[i] (mixed, real b). | |
| void | eqS (Array< fftw_complex > &a, fftw_complex b) |
| Vector-scalar assignment, a[i] = b (complex). | |
| void | eqS (Array< fftw_complex > &a, double b) |
| Vector-scalar assignment, a[i] = b (mixed, real scalar b). | |
| void | addVV (Array< fftw_complex > &a, Array< fftw_complex > const &b, Array< fftw_complex > const &c) |
| Vector addition, a[i] = b[i] + c[i] (complex). | |
| void | addVV (Array< fftw_complex > &a, Array< fftw_complex > const &b, Array< double > const &c) |
| Vector addition, a[i] = b[i] + c[i] (mixed, real array c). | |
| void | addVS (Array< fftw_complex > &a, Array< fftw_complex > const &b, fftw_complex c) |
| Vector-scalar addition, a[i] = b[i] + c (complex). | |
| void | addVS (Array< fftw_complex > &a, Array< fftw_complex > const &b, double c) |
| Vector-scalar addition, a[i] = b[i] + c (mixed). | |
| void | subVV (Array< fftw_complex > &a, Array< fftw_complex > const &b, Array< fftw_complex > const &c) |
| Vector subtraction, a[i] = b[i] - c[i] (complex). | |
| void | subVV (Array< fftw_complex > &a, Array< fftw_complex > const &b, Array< double > const &c) |
| Vector subtraction, a[i] = b[i] - c[i] (mixed, real array c). | |
| void | subVS (Array< fftw_complex > &a, Array< fftw_complex > const &b, fftw_complex c) |
| Vector-scalar subtraction, a[i] = b[i] - c (complex). | |
| void | subVS (Array< fftw_complex > &a, Array< fftw_complex > const &b, double c) |
| Vector-scalar subtraction, a[i] = b[i] - c (mixed, real scalar c). | |
| void | mulVV (Array< fftw_complex > &a, Array< fftw_complex > const &b, Array< fftw_complex > const &c) |
| Vector multiplication, a[i] = b[i] * c[i] (complex). | |
| void | mulVV (Array< fftw_complex > &a, Array< fftw_complex > const &b, Array< double > const &c) |
| Vector multiplication, a[i] = b[i] * c[i] (mixed, real array c). | |
| void | mulVS (Array< fftw_complex > &a, Array< fftw_complex > const &b, fftw_complex c) |
| Vector-scalar multiplication, a[i] = b[i] * c (complex). | |
| void | mulVS (Array< fftw_complex > &a, Array< fftw_complex > const &b, double c) |
| Vector-scalar multiplication, a[i] = b[i] * c (mixed, real c). | |
| void | divVV (Array< fftw_complex > &a, Array< fftw_complex > const &b, Array< fftw_complex > const &c) |
| Vector division, a[i] = b[i] / c[i] (complex). | |
| void | divVV (Array< fftw_complex > &a, Array< fftw_complex > const &b, Array< double > const &c) |
| Vector division, a[i] = b[i] / c[i] (mixed, real array c). | |
| void | divVS (Array< fftw_complex > &a, Array< fftw_complex > const &b, fftw_complex c) |
| Vector-scalar division, a[i] = b[i] / c (complex). | |
| void | divVS (Array< fftw_complex > &a, Array< fftw_complex > const &b, double c) |
| Vector-scalar division, a[i] = b[i] / c (mixed, real scalar c). | |
| void | addEqS (Array< fftw_complex > &a, double b) |
| Vector-scalar in-place addition, a[i] += b (mixed, real scalar b). | |
| void | subEqV (Array< fftw_complex > &a, Array< fftw_complex > const &b) |
| Vector in-place subtraction, a[i] -= b[i] (complex). | |
| void | subEqV (Array< fftw_complex > &a, Array< double > const &b) |
| Vector in-place subtraction, a[i] -= b[i] (mixed, real array b). | |
| void | subEqS (Array< fftw_complex > &a, fftw_complex b) |
| Vector-scalar in-place subtraction, a[i] -= b (complex). | |
| void | subEqS (Array< fftw_complex > &a, double b) |
| Vector-scalar in-place subtraction, a[i] -= b (mixed, real b). | |
| void | mulEqV (Array< fftw_complex > &a, Array< fftw_complex > const &b) |
| Vector in-place multiplication, a[i] *= b[i] (complex). | |
| void | mulEqV (Array< fftw_complex > &a, Array< double > const &b) |
| Vector in-place multiplication, a[i] *= b[i] (mixed, real array b). | |
| void | mulEqS (Array< fftw_complex > &a, fftw_complex const &b) |
| Vector-scalar in-place multiplication, a[i] *= b[i] (complex). | |
| void | mulEqS (Array< fftw_complex > &a, double b) |
| Vector-scalar in-place multiplication, a[i] *= b (mixed real b). | |
| void | divEqV (Array< fftw_complex > &a, Array< fftw_complex > const &b) |
| Vector in-place division, a[i] /= b[i] (complex). | |
| void | divEqV (Array< fftw_complex > &a, Array< double > const &b) |
| Vector in-place division, a[i] /= b[i] (mixed, real array b). | |
| void | divEqS (Array< fftw_complex > &a, fftw_complex b) |
| Vector-scalar in-place division, a[i] /= b (complex). | |
| void | divEqS (Array< fftw_complex > &a, double b) |
| Vector-scalar in-place division, a[i] /= b (mixed, real scalar b). | |
| void | expV (Array< fftw_complex > &a, Array< fftw_complex > const &b) |
| Vector exponentiation, a[i] = exp(b[i]) (complex). | |
| void | sqV (Array< fftw_complex > &a, Array< fftw_complex > const &b) |
| Elementwise complex square, a[i] = b[i] * b[i] (complex). | |
| void | sqAbsV (Array< double > &a, Array< fftw_complex > const &b) |
| Square of absolute magnitude, a[i] = |b[i]|^2 (complex). | |
| void | sqSqAbsV (Array< double > &a, Array< fftw_complex > const &b) |
| Fourth power of absolute magnitude, a[i] = |b[i]|^4 (complex). | |
| void | divEqVc (Array< fftw_complex > &a, Array< double > const &b, double const c) |
| Vector division in-place w/ coeff., a[i] /= (b[i] * c). | |
| void | eqV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b, const int beginIdA, const int beginIdB, const int n) |
| Vector-vector assignment, a[i] = b[i], (real). | |
| void | eqV (Array< cudaReal > &a, BackendArray< cudaReal, CUT > const &b, const int beginIdA, const int beginIdB, const int n) |
| Vector-vector assignment, a[i] = b[i], (real, device to host). | |
| void | eqV (BackendArray< cudaReal, CUT > &a, Array< cudaReal > const &b, const int beginIdA, const int beginIdB, const int n) |
| Vector-vector assignment, a[i] = b[i], (real, host to device). | |
| void | eqV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, const int beginIdA, const int beginIdB, const int n) |
| Vector-vector assignment, a[i] = b[i], (complex). | |
| void | eqS (BackendArray< cudaReal, CUT > &a, const cudaReal b, const int beginIdA, const int n) |
| Vector-scalar assignment, a[i] = b, (real). | |
| void | eqS (BackendArray< cudaComplex, CUT > &a, const cudaComplex b, const int beginIdA, const int n) |
| Vector-scalar assignment, a[i] = b, (complex). | |
| void | addVV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b, BackendArray< cudaReal, CUT > const &c, const int beginIdA, const int beginIdB, const int beginIdC, const int n) |
| Vector-vector addition, a[i] = b[i] + c[i], (real). | |
| void | addVV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, BackendArray< cudaComplex, CUT > const &c, const int beginIdA, const int beginIdB, const int beginIdC, const int n) |
| Vector-vector addition, a[i] = b[i] + c[i], (complex). | |
| void | addVV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaReal, CUT > const &b, BackendArray< cudaComplex, CUT > const &c, const int beginIdA, const int beginIdB, const int beginIdC, const int n) |
| Vector-vector addition, a[i] = b[i] + c[i] (mixed). | |
| void | addVV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, BackendArray< cudaReal, CUT > const &c, const int beginIdA, const int beginIdB, const int beginIdC, const int n) |
| Vector-vector addition, a[i] = b[i] + c[i] (mixed). | |
| void | addVS (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b, const cudaReal c, const int beginIdA, const int beginIdB, const int n) |
| Vector-scalar addition, a[i] = b[i] + c (real). | |
| void | addVS (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, const cudaComplex c, const int beginIdA, const int beginIdB, const int n) |
| Vector-scalar addition, a[i] = b[i] + c, (complex). | |
| void | addVS (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaReal, CUT > const &b, const cudaComplex c, const int beginIdA, const int beginIdB, const int n) |
| Vector addition, a[i] = b[i] + c (mixed). | |
| void | addVS (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, const cudaReal c, const int beginIdA, const int beginIdB, const int n) |
| Vector-scalar addition, a[i] = b[i] + c (mixed). | |
| void | subVV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b, BackendArray< cudaReal, CUT > const &c, const int beginIdA, const int beginIdB, const int beginIdC, const int n) |
| Vector-vector subtraction, a[i] = b[i] - c[i], (real). | |
| void | subVV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, BackendArray< cudaComplex, CUT > const &c, const int beginIdA, const int beginIdB, const int beginIdC, const int n) |
| Vector-vector subtraction, a[i] = b[i] - c[i], (complex). | |
| void | subVV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaReal, CUT > const &b, BackendArray< cudaComplex, CUT > const &c, const int beginIdA, const int beginIdB, const int beginIdC, const int n) |
| Vector-vector subtraction, a[i] = b[i] - c[i] (mixed). | |
| void | subVV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, BackendArray< cudaReal, CUT > const &c, const int beginIdA, const int beginIdB, const int beginIdC, const int n) |
| Vector-vector subtraction, a[i] = b[i] - c[i] (mixed, c = real). | |
| void | subVS (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b, const cudaReal c, const int beginIdA, const int beginIdB, const int n) |
| Vector-scalar subtraction, a[i] = b[i] - c, (real). | |
| void | subVS (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, const cudaComplex c, const int beginIdA, const int beginIdB, const int n) |
| Vector-scalar subtraction, a[i] = b[i] - c, (complex). | |
| void | subVS (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaReal, CUT > const &b, const cudaComplex c, const int beginIdA, const int beginIdB, const int n) |
| Vector subtraction, a[i] = b[i] - c (mixed). | |
| void | subVS (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, const cudaReal c, const int beginIdA, const int beginIdB, const int n) |
| Vector subtraction, a[i] = b[i] - c (mixed, c = real). | |
| void | mulVV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b, BackendArray< cudaReal, CUT > const &c, const int beginIdA, const int beginIdB, const int beginIdC, const int n) |
| Vector-vector multiplication, a[i] = b[i] * c[i], (real). | |
| void | mulVV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, BackendArray< cudaComplex, CUT > const &c, const int beginIdA, const int beginIdB, const int beginIdC, const int n) |
| Vector-vector multiplication, a[i] = b[i] * c[i], (complex). | |
| void | mulVV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaReal, CUT > const &b, BackendArray< cudaComplex, CUT > const &c, const int beginIdA, const int beginIdB, const int beginIdC, const int n) |
| Vector-vector multiplication, a[i] = b[i] * c[i] (mixed). | |
| void | mulVV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, BackendArray< cudaReal, CUT > const &c, const int beginIdA, const int beginIdB, const int beginIdC, const int n) |
| Vector-vector multiplication, a[i]=b[i]*c[i] (mixed, c = real). | |
| void | mulVS (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b, const cudaReal c, const int beginIdA, const int beginIdB, const int n) |
| Vector-scalar multiplication, a[i] = b[i] * c, (real). | |
| void | mulVS (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, const cudaComplex c, const int beginIdA, const int beginIdB, const int n) |
| Vector-scalar multiplication, a[i] = b[i] * c, (complex). | |
| void | mulVS (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaReal, CUT > const &b, const cudaComplex c, const int beginIdA, const int beginIdB, const int n) |
| Vector-scalar multiplication, a[i] = b[i] * c (mixed). | |
| void | mulVS (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, const cudaReal c, const int beginIdA, const int beginIdB, const int n) |
| Vector-scalar multiplication, a[i] = b[i] * c (mixed). | |
| void | divVV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b, BackendArray< cudaReal, CUT > const &c, const int beginIdA, const int beginIdB, const int beginIdC, const int n) |
| Vector-vector division, a[i] = b[i] / c[i], (real). | |
| void | divVV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, BackendArray< cudaReal, CUT > const &c, const int beginIdA, const int beginIdB, const int beginIdC, const int n) |
| Vector-vector division, a[i] = b[i] / c[i] (mixed). | |
| void | divVS (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b, const cudaReal c, const int beginIdA, const int beginIdB, const int n) |
| Vector-scalar division, a[i] = b[i] / c, (real). | |
| void | divVS (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, const cudaReal c, const int beginIdA, const int beginIdB, const int n) |
| Vector-scalar division, a[i] = b[i] / c (mixed, c real). | |
| void | divSV (BackendArray< cudaReal, CUT > &a, const cudaReal b, BackendArray< cudaReal, CUT > const &c, const int beginIdA, const int beginIdC, const int n) |
| Scalar-vector division, a[i] = b / c[i], (real). | |
| void | addEqV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b, const int beginIdA, const int beginIdB, const int n) |
| Vector in-place addition, a[i] += b[i], (real). | |
| void | addEqV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, const int beginIdA, const int beginIdB, const int n) |
| Vector-vector in-place addition, a[i] += b[i] (complex). | |
| void | addEqV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaReal, CUT > const &b, BackendArray< cudaReal, CUT > const &c, const int beginIdA, const int beginIdB, const int beginIdC, const int n) |
| Vector-vector in-place addition, a[i] += (b[i], c[i]) (mixed). | |
| void | addEqV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaReal, CUT > const &b, const int beginIdA, const int beginIdB, const int n) |
| Vector-vector in-place addition, a[i] += b[i] (mixed). | |
| void | addEqS (BackendArray< cudaReal, CUT > &a, const cudaReal b, const int beginIdA, const int n) |
| Vector-scalar in-place addition, a[i] += b, (real). | |
| void | addEqS (BackendArray< cudaComplex, CUT > &a, const cudaComplex b, const int beginIdA, const int n) |
| Vector-scalar in-place addition, a[i] += b, (complex). | |
| void | addEqS (BackendArray< cudaComplex, CUT > &a, const cudaReal b, const int beginIdA, const int n) |
| Vector-scalar in-place addition, a[i] += b (mixed). | |
| void | subEqV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b, const int beginIdA, const int beginIdB, const int n) |
| Vector in-place subtraction, a[i] -= b[i], (real). | |
| void | subEqV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, const int beginIdA, const int beginIdB, const int n) |
| Vector-vector in-place subtraction, a[i] -= b[i], (complex). | |
| void | subEqV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaReal, CUT > const &b, const int beginIdA, const int beginIdB, const int n) |
| Vector in-place subtraction, a[i]-=b[i] (mixed). | |
| void | subEqS (BackendArray< cudaReal, CUT > &a, const cudaReal b, const int beginIdA, const int n) |
| Vector in-place subtraction, a[i] -= b, (real). | |
| void | subEqS (BackendArray< cudaComplex, CUT > &a, const cudaComplex b, const int beginIdA, const int n) |
| Vector in-place subtraction, a[i] -= b, (complex). | |
| void | subEqS (BackendArray< cudaComplex, CUT > &a, const cudaReal b, const int beginIdA, const int n) |
| Vector-scalar in-place subtraction, a[i] -= b (mixed). | |
| void | mulEqV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b, const int beginIdA, const int beginIdB, const int n) |
| Vector-vector in-place multiplication, a[i] *= b[i], (real). | |
| void | mulEqV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, const int beginIdA, const int beginIdB, const int n) |
| Vector-vector in-place multiplication, a[i] *= b[i], (complex). | |
| void | mulEqV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaReal, CUT > const &b, const int beginIdA, const int beginIdB, const int n) |
| Vector-vector in-place multiplication, a[i]*=b[i] (mixed). | |
| void | mulEqS (BackendArray< cudaReal, CUT > &a, const cudaReal b, const int beginIdA, const int n) |
| Vector-scalar in-place multiplication, a[i] *= b, (real). | |
| void | mulEqS (BackendArray< cudaComplex, CUT > &a, const cudaComplex b, const int beginIdA, const int n) |
| Vector-scalar in-place multiplication, a[i] *= b, (complex). | |
| void | mulEqS (BackendArray< cudaComplex, CUT > &a, const cudaReal b, const int beginIdA, const int n) |
| Vector-scalar in-place multiplication, a[i]*=b (mixed). | |
| void | divEqV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b, const int beginIdA, const int beginIdB, const int n) |
| Vector-vector in-place division, a[i] /= b[i], (real). | |
| void | divEqV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaReal, CUT > const &b, const int beginIdA, const int beginIdB, const int n) |
| Vector-vector in-place division, a[i] /= b[i] (mixed). | |
| void | divEqS (BackendArray< cudaReal, CUT > &a, const cudaReal b, const int beginIdA, const int n) |
| Vector-scalar in-place division, a[i] /= b, (real). | |
| void | divEqS (BackendArray< cudaComplex, CUT > &a, const cudaReal b, const int beginIdA, const int n) |
| Vector-scalar in-place division, a[i] /= b (mixed). | |
| void | expV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b, const int beginIdA, const int beginIdB, const int n) |
| Vector exponentiation, a[i] = exp(b[i]), (real). | |
| void | expV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, const int beginIdA, const int beginIdB, const int n) |
| Vector exponentiation, a[i] = exp(b[i]), (complex). | |
| void | sqV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b, const int beginIdA, const int beginIdB, const int n) |
| Vector square, a[i] = b[i]*b[i], (real). | |
| void | sqV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, const int beginIdA, const int beginIdB, const int n) |
| Vector square, a[i] = b[i]*b[i], (complex). | |
| void | absV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b, const int beginIdA, const int beginIdB, const int n) |
| Vector absolute magnitude, a[i] = abs(b[i]) (real). | |
| void | sqAbsV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaComplex, CUT > const &b, const int beginIdA, const int beginIdB, const int n) |
| Vector squared absolute magnitude, a[i] = |b[i]|^2 (complex). | |
| void | eqV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b) |
| Vector-vector assignment, a[i] = b[i], (real). | |
| void | eqV (Array< cudaReal > &a, BackendArray< cudaReal, CUT > const &b) |
| Vector-vector assignment, a[i] = b[i], (real, device to host). | |
| void | eqV (BackendArray< cudaReal, CUT > &a, Array< cudaReal > const &b) |
| Vector-vector assignment, a[i] = b[i], (real, host to device). | |
| void | eqV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b) |
| Vector-vector assignment, a[i] = b[i], (complex). | |
| void | eqS (BackendArray< cudaReal, CUT > &a, const cudaReal b) |
| Vector-scalar assignment, a[i] = b, (real). | |
| void | eqS (BackendArray< cudaComplex, CUT > &a, const cudaComplex b) |
| Vector-scalar assignment, a[i] = b, (complex). | |
| void | addVV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b, BackendArray< cudaReal, CUT > const &c) |
| Vector-vector addition, a[i] = b[i] + c[i], (real). | |
| void | addVV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, BackendArray< cudaComplex, CUT > const &c) |
| Vector-vector addition, a[i] = b[i] + c[i], (complex). | |
| void | addVV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaReal, CUT > const &b, BackendArray< cudaComplex, CUT > const &c) |
| Vector-vector addition, a[i] = b[i] + c[i] (mixed). | |
| void | addVV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, BackendArray< cudaReal, CUT > const &c) |
| Vector-vector addition, a[i] = b[i] + c[i] (mixed). | |
| void | addVS (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b, const cudaReal c) |
| Vector-scalar addition, a[i] = b[i] + c, (real). | |
| void | addVS (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, const cudaComplex c) |
| Vector addition, a[i] = b[i] + c, (complex). | |
| void | addVS (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaReal, CUT > const &b, const cudaComplex c) |
| Vector addition, a[i] = b[i] + c (mixed). | |
| void | addVS (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, const cudaReal c) |
| Vector-scalar addition, a[i] = b[i] + c (mixed). | |
| void | subVV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b, BackendArray< cudaReal, CUT > const &c) |
| Vector-vector subtraction, a[i] = b[i] - c[i], (real). | |
| void | subVV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, BackendArray< cudaComplex, CUT > const &c) |
| Vector-vector subtraction, a[i] = b[i] - c[i], (complex). | |
| void | subVV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaReal, CUT > const &b, BackendArray< cudaComplex, CUT > const &c) |
| Vector-vector subtraction, a[i] = b[i] - c[i] (mixed). | |
| void | subVV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, BackendArray< cudaReal, CUT > const &c) |
| Vector-vector subtraction, a[i] = b[i] - c[i] (mixed, c = real). | |
| void | subVS (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b, const cudaReal c) |
| Vector-scalar subtraction, a[i] = b[i] - c, (real). | |
| void | subVS (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, const cudaComplex c) |
| Vector-scalar subtraction, a[i] = b[i] - c, (complex). | |
| void | subVS (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaReal, CUT > const &b, const cudaComplex c) |
| Vector subtraction, a[i] = b[i] - c (mixed). | |
| void | subVS (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, const cudaReal c) |
| Vector subtraction, a[i] = b[i] - c (mixed, c = real). | |
| void | mulVV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b, BackendArray< cudaReal, CUT > const &c) |
| Vector-vector multiplication, a[i] = b[i] * c[i], (real). | |
| void | mulVV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, BackendArray< cudaComplex, CUT > const &c) |
| Vector-vector multiplication, a[i] = b[i] * c[i], (complex). | |
| void | mulVV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaReal, CUT > const &b, BackendArray< cudaComplex, CUT > const &c) |
| Vector-vector multiplication, a[i]=b[i]*c[i] (mixed). | |
| void | mulVV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, BackendArray< cudaReal, CUT > const &c) |
| Vector-vector multiplication, a[i]=b[i]*c[i] (mixed). | |
| void | mulVS (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b, const cudaReal c) |
| Vector-scalar multiplication, a[i] = b[i] * c, (real). | |
| void | mulVS (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, const cudaComplex c) |
| Vector-scalar multiplication, a[i] = b[i] * c, (complex). | |
| void | mulVS (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaReal, CUT > const &b, const cudaComplex c) |
| Vector-scalar multiplication, a[i] = b[i] * c (mixed). | |
| void | mulVS (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, const cudaReal c) |
| Vector-scalar multiplication, a[i] = b[i] * c (mixed). | |
| void | divVV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b, BackendArray< cudaReal, CUT > const &c) |
| Vector-vector division, a[i] = b[i] / c[i], (real). | |
| void | divVV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, BackendArray< cudaReal, CUT > const &c) |
| Vector-vector division, a[i] = b[i] / c[i] (mixed). | |
| void | divVS (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b, const cudaReal c) |
| Vector-scalar division, a[i] = b[i] / c, (real). | |
| void | divVS (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, const cudaReal c) |
| Vector-scalar division, a[i] = b[i] / c (mixed, c = real). | |
| void | divSV (BackendArray< cudaReal, CUT > &a, const cudaReal b, BackendArray< cudaReal, CUT > const &c) |
| Scalar-vector division, a[i] = b / c[i], (real). | |
| void | addEqV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b) |
| Vector-vector in-place addition, a[i] += b[i] (real). | |
| void | addEqV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b) |
| Vector-vector in-place addition, a[i] += b[i] (complex). | |
| void | addEqV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaReal, CUT > const &b) |
| Vector-vector in-place addition, a[i] += b[i] (mixed). | |
| void | addEqV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaReal, CUT > const &b, BackendArray< cudaReal, CUT > const &c) |
| Vector-vector in-place addition, a[i] += (b[i], c[i]) (mixed). | |
| void | addEqS (BackendArray< cudaReal, CUT > &a, const cudaReal b) |
| Vector-scalar in-place addition, a[i] += b, (real). | |
| void | addEqS (BackendArray< cudaComplex, CUT > &a, const cudaComplex b) |
| Vector-scalar in-place addition, a[i] += b, (complex). | |
| void | addEqS (BackendArray< cudaComplex, CUT > &a, const cudaReal b) |
| Vector-scalar in-place addition, a[i] += b (mixed). | |
| void | subEqV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b) |
| Vector in-place subtraction, a[i] -= b[i], (real). | |
| void | subEqV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b) |
| Vector in-place subtraction, a[i] -= b[i], (complex). | |
| void | subEqV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaReal, CUT > const &b) |
| Vector in-place subtraction, a[i]-=b[i] (mixed). | |
| void | subEqS (BackendArray< cudaReal, CUT > &a, const cudaReal b) |
| Vector in-place subtraction, a[i] -= b, (real). | |
| void | subEqS (BackendArray< cudaComplex, CUT > &a, const cudaComplex b) |
| Vector in-place subtraction, a[i] -= b, (complex). | |
| void | subEqS (BackendArray< cudaComplex, CUT > &a, const cudaReal b) |
| Vector-scalar in-place subtraction, a[i] -= b (mixed). | |
| void | mulEqV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b) |
| Vector-vector in-place multiplication, a[i] *= b[i], (real). | |
| void | mulEqV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b) |
| Vector-vector in-place multiplication, a[i] *= b[i], (complex). | |
| void | mulEqV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaReal, CUT > const &b) |
| Vector-vector in-place multiplication, a[i] *= b[i] (mixed). | |
| void | mulEqS (BackendArray< cudaReal, CUT > &a, const cudaReal b) |
| Vector-scalar in-place multiplication, a[i] *= b, (real). | |
| void | mulEqS (BackendArray< cudaComplex, CUT > &a, const cudaComplex b) |
| Vector-scalar in-place multiplication, a[i] *= b, (complex). | |
| void | mulEqS (BackendArray< cudaComplex, CUT > &a, const cudaReal b) |
| Vector-scalar in-place multiplication, a[i]*=b (mixed). | |
| void | divEqV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b) |
| Vector-vector in-place division, a[i] /= b[i], (real). | |
| void | divEqV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaReal, CUT > const &b) |
| Vector-vector in-place division, a[i] /= b[i] (mixed). | |
| void | divEqS (BackendArray< cudaReal, CUT > &a, const cudaReal b) |
| Vector-scalar in-place division, a[i] /= b, (real). | |
| void | divEqS (BackendArray< cudaComplex, CUT > &a, const cudaReal b) |
| Vector-scalar in-place division, a[i] /= b (mixed). | |
| void | expV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b) |
| Vector exponentiation, a[i] = exp(b[i]), (real). | |
| void | expV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b) |
| Vector exponentiation, a[i] = exp(b[i]), (complex). | |
| void | sqV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b) |
| Vector square, a[i] = b[i]*b[i], (real). | |
| void | sqV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b) |
| Vector square, a[i] = b[i]*b[i], (complex). | |
| void | absV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b) |
| Vector absolute magnitude, a[i] = abs(b[i]) (real). | |
| void | sqAbsV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaComplex, CUT > const &b) |
| Vector absolute magnitude squared, a[i] = |b[i]|^2 (complex). | |
| void | addVcVc (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b1, cudaReal const c1, BackendArray< cudaReal, CUT > const &b2, cudaReal const c2) |
| Add two scaled vectors, a[i] = b1[i]*c1 + b2[i]*c2 (real). | |
| void | addVcS (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b, cudaReal const c, cudaReal const s) |
| Add a scaled vector and a scalar, a[i] = b[i]*c + s (real). | |
| void | addVcVcVc (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b1, cudaReal const c1, BackendArray< cudaReal, CUT > const &b2, cudaReal const c2, BackendArray< cudaReal, CUT > const &b3, cudaReal const c3) |
| Add 3 scaled vectors, a[i] = b1[i]*c1 + b2[i]*c2 + b3[i]*c3 (real). | |
| void | addVcVcS (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b1, cudaReal const c1, BackendArray< cudaReal, CUT > const &b2, cudaReal const c2, cudaReal const s) |
| Add 2 scaled vectors + scalar, a[i] = b1[i]*c1 + b2[i]*c2 + s (real). | |
| void | addEqVc (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b, cudaReal const c) |
| Add a scaled vector in-place, a[i] += b[i] * c (real). | |
| void | divEqVc (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaReal, CUT > const &b, cudaReal const c) |
| Vector division in-place w/ coeff., a[i] /= (b[i] * c). | |
| void | expVc (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b, cudaReal const c) |
| Vector exponentiation w/ coefficient, a[i] = exp(b[i]*c). | |
| void | eqVPair (BackendArray< cudaReal, CUT > &a1, BackendArray< cudaReal, CUT > &a2, BackendArray< cudaReal, CUT > const &s) |
| Vector assignment in pairs, ax[i] = b[i], x = 1, 2 (real). | |
| void | mulVVPair (BackendArray< cudaReal, CUT > &a1, BackendArray< cudaReal, CUT > &a2, BackendArray< cudaReal, CUT > const &b1, BackendArray< cudaReal, CUT > const &b2, BackendArray< cudaReal, CUT > const &s) |
| Vector multiplication in pairs, ax[i] = bx[i] * s[i], x=1,2 (real). | |
| void | mulEqVPair (BackendArray< cudaReal, CUT > &a1, BackendArray< cudaReal, CUT > &a2, BackendArray< cudaReal, CUT > const &s) |
| In-place vector multiplication in pairs, ax[i] *= s[i], x=1,2 (real). | |
| void | addVMany (BackendArray< cudaReal, CUT > &a, DArray< BackendArray< cudaReal, CUT > > const &vecs) |
| Add an arbitrary number of vectors pointwise (real). | |
| void | addVMany (BackendArray< cudaReal, CUT > &a, DArray< BackendArray< cudaReal, CUT > const * > const &vecs) |
| Add an arbitrary number of vectors pointwise (real). | |
| void | mulVMany (BackendArray< cudaReal, CUT > &a, DArray< BackendArray< cudaReal, CUT > > const &vecs) |
| Multiply an undefined number of vectors pointwise (real). | |
| void | mulVMany (BackendArray< cudaReal, CUT > &a, DArray< BackendArray< cudaReal, CUT > const * > const &vecs) |
| Multiply an undefined number of vectors pointwise. | |
| void | sqSqAbsV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaComplex, CUT > const &b) |
| Fourth power of magnitude, a[i] = |b[i]|^4 (complex). | |
Elementwise vector operations.
| void Pscf::VecOp::addVcVc | ( | Array< double > & | a, |
| Array< double > const & | b1, | ||
| const double | c1, | ||
| Array< double > const & | b2, | ||
| const double | c2 ) |
Add two scaled vectors, a[i] = b1[i]*c1 + b2[2]*c2 (real).
| a | real output array (LHS) |
| b1 | 1st real input array (RHS) |
| c1 | real coefficient of b1 (RHS) |
| b2 | 2nd real input array (RHS) |
| c2 | real coefficient of b2 (RHS) |
Definition at line 369 of file VecOp.cpp.
References addVcVc(), Util::Array< Data >::capacity(), and UTIL_CHECK.
Referenced by addVcVc(), addVcVc(), Pscf::Rp::ForceBiasMoveBase< D, T >::move(), Pscf::Rp::ExplicitBdStep< D, T >::step(), and Pscf::Rp::PredCorrBdStep< D, T >::step().
| void Pscf::VecOp::addVcS | ( | Array< double > & | a, |
| Array< double > const & | b, | ||
| const double | c, | ||
| const double | s ) |
Add a scaled vector and a scalar, a[i] = b[i]*c + s (real).
| a | real output array (LHS) |
| b | real input array (RHS) |
| c | real coefficient of b (RHS) |
| s | real scalar summand (RHS) |
Definition at line 385 of file VecOp.cpp.
References addVcS(), Util::Array< Data >::capacity(), and UTIL_CHECK.
| void Pscf::VecOp::addVcVcS | ( | Array< double > & | a, |
| Array< double > const & | b1, | ||
| const double | c1, | ||
| Array< double > const & | b2, | ||
| const double | c2, | ||
| const double | s ) |
Add scaled vectors + scalar, a[i] = b1[i]*c1 + b2[2]*c2 + s (real).
| a | real array (LHS) |
| b1 | 1st real input array (RHS) |
| c1 | real coefficient of b1 (RHS) |
| b2 | 2nd real input array (RHS) |
| c2 | real coefficient of b2 (RHS) |
| s | real scalar summand (RHS) |
Definition at line 414 of file VecOp.cpp.
References addVcVcS(), Util::Array< Data >::capacity(), and UTIL_CHECK.
Referenced by addVcVcS(), addVcVcS(), and Pscf::Rp::Simulator< D, CPT >::clearTimers().
| void Pscf::VecOp::addVcVcVc | ( | Array< double > & | a, |
| Array< double > const & | b1, | ||
| const double | c1, | ||
| Array< double > const & | b2, | ||
| const double | c2, | ||
| Array< double > const & | b3, | ||
| const double | c3 ) |
Add scaled vectors, a[i] = b1[i]*c1 + b2[i]*c2 + b3[i]*c3 (real).
| a | real array (LHS) |
| b1 | 1st real input array (RHS) |
| c1 | real coefficient of b1 (RHS) |
| b2 | 2nd real input array (RHS) |
| c2 | real coefficient of b2 (RHS) |
| b3 | 3rd real input array (RHS) |
| c3 | real coefficient of b3 (RHS) |
Definition at line 431 of file VecOp.cpp.
References addVcVcVc(), Util::Array< Data >::capacity(), and UTIL_CHECK.
Referenced by addVcVcVc(), addVcVcVc(), and Pscf::Rp::PredCorrBdStep< D, T >::step().