|
PSCF v1.5.0
|
Functions that perform element-wise vector operations on the GPU. More...
Functions | |
| void | Pscf::VecOp::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 | Pscf::VecOp::eqV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b) |
| Vector-vector assignment, a[i] = b[i], (real). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::eqV (Array< cudaReal > &a, BackendArray< cudaReal, CUT > const &b) |
| Vector-vector assignment, a[i] = b[i], (real, device to host). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::eqV (BackendArray< cudaReal, CUT > &a, Array< cudaReal > const &b) |
| Vector-vector assignment, a[i] = b[i], (real, host to device). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::eqV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b) |
| Vector-vector assignment, a[i] = b[i], (complex). | |
| void | Pscf::VecOp::eqS (BackendArray< cudaReal, CUT > &a, const cudaReal b, const int beginIdA, const int n) |
| Vector-scalar assignment, a[i] = b, (real). | |
| void | Pscf::VecOp::eqS (BackendArray< cudaReal, CUT > &a, const cudaReal b) |
| Vector-scalar assignment, a[i] = b, (real). | |
| void | Pscf::VecOp::eqS (BackendArray< cudaComplex, CUT > &a, const cudaComplex b, const int beginIdA, const int n) |
| Vector-scalar assignment, a[i] = b, (complex). | |
| void | Pscf::VecOp::eqS (BackendArray< cudaComplex, CUT > &a, const cudaComplex b) |
| Vector-scalar assignment, a[i] = b, (complex). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::addVS (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b, const cudaReal c) |
| Vector-scalar addition, a[i] = b[i] + c, (real). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::addVS (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, const cudaComplex c) |
| Vector addition, a[i] = b[i] + c, (complex). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::addVS (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaReal, CUT > const &b, const cudaComplex c) |
| Vector addition, a[i] = b[i] + c (mixed). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::addVS (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, const cudaReal c) |
| Vector-scalar addition, a[i] = b[i] + c (mixed). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::subVS (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b, const cudaReal c) |
| Vector-scalar subtraction, a[i] = b[i] - c, (real). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::subVS (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, const cudaComplex c) |
| Vector-scalar subtraction, a[i] = b[i] - c, (complex). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::subVS (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaReal, CUT > const &b, const cudaComplex c) |
| Vector subtraction, a[i] = b[i] - c (mixed). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::subVS (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, const cudaReal c) |
| Vector subtraction, a[i] = b[i] - c (mixed, c = real). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::mulVS (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b, const cudaReal c) |
| Vector-scalar multiplication, a[i] = b[i] * c, (real). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::mulVS (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, const cudaComplex c) |
| Vector-scalar multiplication, a[i] = b[i] * c, (complex). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::mulVS (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaReal, CUT > const &b, const cudaComplex c) |
| Vector-scalar multiplication, a[i] = b[i] * c (mixed). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::mulVS (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b, const cudaReal c) |
| Vector-scalar multiplication, a[i] = b[i] * c (mixed). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::divVS (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b, const cudaReal c) |
| Vector-scalar division, a[i] = b[i] / c, (real). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::divSV (BackendArray< cudaReal, CUT > &a, const cudaReal b, BackendArray< cudaReal, CUT > const &c) |
| Scalar-vector division, a[i] = b / c[i], (real). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::addEqV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b) |
| Vector-vector in-place addition, a[i] += b[i] (real). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::addEqV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b) |
| Vector-vector in-place addition, a[i] += b[i] (complex). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::addEqV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaReal, CUT > const &b) |
| Vector-vector in-place addition, a[i] += b[i] (mixed). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::addEqS (BackendArray< cudaReal, CUT > &a, const cudaReal b, const int beginIdA, const int n) |
| Vector-scalar in-place addition, a[i] += b, (real). | |
| void | Pscf::VecOp::addEqS (BackendArray< cudaReal, CUT > &a, const cudaReal b) |
| Vector-scalar in-place addition, a[i] += b, (real). | |
| void | Pscf::VecOp::addEqS (BackendArray< cudaComplex, CUT > &a, const cudaComplex b, const int beginIdA, const int n) |
| Vector-scalar in-place addition, a[i] += b, (complex). | |
| void | Pscf::VecOp::addEqS (BackendArray< cudaComplex, CUT > &a, const cudaComplex b) |
| Vector-scalar in-place addition, a[i] += b, (complex). | |
| void | Pscf::VecOp::addEqS (BackendArray< cudaComplex, CUT > &a, const cudaReal b, const int beginIdA, const int n) |
| Vector-scalar in-place addition, a[i] += b (mixed). | |
| void | Pscf::VecOp::addEqS (BackendArray< cudaComplex, CUT > &a, const cudaReal b) |
| Vector-scalar in-place addition, a[i] += b (mixed). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::subEqV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b) |
| Vector in-place subtraction, a[i] -= b[i], (real). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::subEqV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b) |
| Vector in-place subtraction, a[i] -= b[i], (complex). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::subEqV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaReal, CUT > const &b) |
| Vector in-place subtraction, a[i]-=b[i] (mixed). | |
| void | Pscf::VecOp::subEqS (BackendArray< cudaReal, CUT > &a, const cudaReal b, const int beginIdA, const int n) |
| Vector in-place subtraction, a[i] -= b, (real). | |
| void | Pscf::VecOp::subEqS (BackendArray< cudaReal, CUT > &a, const cudaReal b) |
| Vector in-place subtraction, a[i] -= b, (real). | |
| void | Pscf::VecOp::subEqS (BackendArray< cudaComplex, CUT > &a, const cudaComplex b, const int beginIdA, const int n) |
| Vector in-place subtraction, a[i] -= b, (complex). | |
| void | Pscf::VecOp::subEqS (BackendArray< cudaComplex, CUT > &a, const cudaComplex b) |
| Vector in-place subtraction, a[i] -= b, (complex). | |
| void | Pscf::VecOp::subEqS (BackendArray< cudaComplex, CUT > &a, const cudaReal b, const int beginIdA, const int n) |
| Vector-scalar in-place subtraction, a[i] -= b (mixed). | |
| void | Pscf::VecOp::subEqS (BackendArray< cudaComplex, CUT > &a, const cudaReal b) |
| Vector-scalar in-place subtraction, a[i] -= b (mixed). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::mulEqV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b) |
| Vector-vector in-place multiplication, a[i] *= b[i], (real). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::mulEqV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b) |
| Vector-vector in-place multiplication, a[i] *= b[i], (complex). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::mulEqV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaReal, CUT > const &b) |
| Vector-vector in-place multiplication, a[i] *= b[i] (mixed). | |
| void | Pscf::VecOp::mulEqS (BackendArray< cudaReal, CUT > &a, const cudaReal b, const int beginIdA, const int n) |
| Vector-scalar in-place multiplication, a[i] *= b, (real). | |
| void | Pscf::VecOp::mulEqS (BackendArray< cudaReal, CUT > &a, const cudaReal b) |
| Vector-scalar in-place multiplication, a[i] *= b, (real). | |
| void | Pscf::VecOp::mulEqS (BackendArray< cudaComplex, CUT > &a, const cudaComplex b, const int beginIdA, const int n) |
| Vector-scalar in-place multiplication, a[i] *= b, (complex). | |
| void | Pscf::VecOp::mulEqS (BackendArray< cudaComplex, CUT > &a, const cudaComplex b) |
| Vector-scalar in-place multiplication, a[i] *= b, (complex). | |
| void | Pscf::VecOp::mulEqS (BackendArray< cudaComplex, CUT > &a, const cudaReal b, const int beginIdA, const int n) |
| Vector-scalar in-place multiplication, a[i]*=b (mixed). | |
| void | Pscf::VecOp::mulEqS (BackendArray< cudaComplex, CUT > &a, const cudaReal b) |
| Vector-scalar in-place multiplication, a[i]*=b (mixed). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::divEqV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b) |
| Vector-vector in-place division, a[i] /= b[i], (real). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::divEqV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaReal, CUT > const &b) |
| Vector-vector in-place division, a[i] /= b[i] (mixed). | |
| void | Pscf::VecOp::divEqS (BackendArray< cudaReal, CUT > &a, const cudaReal b, const int beginIdA, const int n) |
| Vector-scalar in-place division, a[i] /= b, (real). | |
| void | Pscf::VecOp::divEqS (BackendArray< cudaReal, CUT > &a, const cudaReal b) |
| Vector-scalar in-place division, a[i] /= b, (real). | |
| void | Pscf::VecOp::divEqS (BackendArray< cudaComplex, CUT > &a, const cudaReal b, const int beginIdA, const int n) |
| Vector-scalar in-place division, a[i] /= b (mixed). | |
| void | Pscf::VecOp::divEqS (BackendArray< cudaComplex, CUT > &a, const cudaReal b) |
| Vector-scalar in-place division, a[i] /= b (mixed). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::expV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b) |
| Vector exponentiation, a[i] = exp(b[i]), (real). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::expV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b) |
| Vector exponentiation, a[i] = exp(b[i]), (complex). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::sqV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b) |
| Vector square, a[i] = b[i]*b[i], (real). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::sqV (BackendArray< cudaComplex, CUT > &a, BackendArray< cudaComplex, CUT > const &b) |
| Vector square, a[i] = b[i]*b[i], (complex). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::absV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b) |
| Vector absolute magnitude, a[i] = abs(b[i]) (real). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::sqAbsV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaComplex, CUT > const &b) |
| Vector absolute magnitude squared, a[i] = |b[i]|^2 (complex). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::expVc (BackendArray< cudaReal, CUT > &a, BackendArray< cudaReal, CUT > const &b, cudaReal const c) |
| Vector exponentiation w/ coefficient, a[i] = exp(b[i]*c). | |
| void | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::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 | Pscf::VecOp::addVMany (BackendArray< cudaReal, CUT > &a, DArray< BackendArray< cudaReal, CUT > > const &vecs) |
| Add an arbitrary number of vectors pointwise (real). | |
| void | Pscf::VecOp::addVMany (BackendArray< cudaReal, CUT > &a, DArray< BackendArray< cudaReal, CUT > const * > const &vecs) |
| Add an arbitrary number of vectors pointwise (real). | |
| void | Pscf::VecOp::mulVMany (BackendArray< cudaReal, CUT > &a, DArray< BackendArray< cudaReal, CUT > > const &vecs) |
| Multiply an undefined number of vectors pointwise (real). | |
| void | Pscf::VecOp::mulVMany (BackendArray< cudaReal, CUT > &a, DArray< BackendArray< cudaReal, CUT > const * > const &vecs) |
| Multiply an undefined number of vectors pointwise. | |
| void | Pscf::VecOp::sqSqAbsV (BackendArray< cudaReal, CUT > &a, BackendArray< cudaComplex, CUT > const &b) |
| Fourth power of magnitude, a[i] = |b[i]|^4 (complex). | |
Functions that perform element-wise vector operations on the GPU.
The functions declared in this header operate on BackendArray objects with elements of type cudaReal or cudaComplex. The operations that are performed by these functions include assignment, addition, subtraction, multiplication, division, exponentiation, square and absolute magnitude. Function names, correspondingly, begin with "eq", "add", "sub", "mul", "div", "exp", "sq" and "abs" to indicate the operation being performed. Functions that perform in-place arithmetic assignment operations, which are analogous to those performed using the +=, -=, *=, and /= C/C++ operators, have names that begin with "addEq", "subEq", "mulEq", and "divEq".
These functions are overloaded to perform their respective operations on any combination of cudaReal and cudaComplex input arrays, except those that would result in division by a complex number.
The output (the LHS of the vector operation) is always the first parameter passed to the function. The input argument(s) (on the RHS of the vector operation) may be vectors or scalars. If an argument is a vector (scalar), the function name will contain a V (S). For example, addVV(A,B,C) implements the vector-vector addition operation A[i] = B[i] + C[i], while addVS(A,B,c) implements vector-scalar addition A[i] = B[i] + c, in which c is a scalar that is added to every element of array B. In commutative binary operations involving a vector and a scalar, the vector is listed first. So, for example, addVS exists, but addSV does not.
Two wrapper functions are provided for each vector operation:
Additional functions that perform multiple operations within a single kernel are defined in VecOpMisc. This collection is not comprehensive and is added to as-needed during the development of this software. VecOpMisc.h is included at the end of VecOp.h so that any code that includes VecOp.h will also include VecOpMisc.h.
The functions declared in this file are wrappers for CUDA kernels that perform the actual parallel vector operations. The underlying CUDA kernels are only intended to be called through their wrappers. To enforce this, kernels are defined in an anonymous namespace in the file VecOp.cu, and are thus only accessible for use within that source file.
| void Pscf::VecOp::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).
| a | real array (LHS) |
| b | real array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | number of elements in the slice |
Definition at line 1234 of file VecOp.cu.
References eqV(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-vector assignment, a[i] = b[i], (real).
| a | real array (LHS) |
| b | real array (RHS) |
Definition at line 109 of file cuda/VecOp.h.
References eqV().
| void Pscf::VecOp::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).
| a | real array (LHS) |
| b | real array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | number of elements in the slice |
Definition at line 1263 of file VecOp.cu.
References Util::Array< Data >::capacity(), Util::Array< Data >::cArray(), eqV(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-vector assignment, a[i] = b[i], (real, device to host).
| a | real array (LHS) |
| b | real array (RHS) |
Definition at line 137 of file cuda/VecOp.h.
References Util::Array< Data >::capacity(), and eqV().
| void Pscf::VecOp::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).
| a | real array (LHS) |
| b | real array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | number of elements in the slice |
Definition at line 1285 of file VecOp.cu.
References Util::Array< Data >::capacity(), Util::Array< Data >::cArray(), eqV(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-vector assignment, a[i] = b[i], (real, host to device).
| a | real array (LHS) |
| b | real array (RHS) |
Definition at line 165 of file cuda/VecOp.h.
References eqV().
| void Pscf::VecOp::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).
| a | complex array (LHS) |
| b | complex array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | number of elements in the slice |
Definition at line 1307 of file VecOp.cu.
References eqV(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-vector assignment, a[i] = b[i], (complex).
| a | output array (LHS) |
| b | input array (RHS) |
Definition at line 193 of file cuda/VecOp.h.
References eqV().
| void Pscf::VecOp::eqS | ( | BackendArray< cudaReal, CUT > & | a, |
| const cudaReal | b, | ||
| const int | beginIdA, | ||
| const int | n ) |
Vector-scalar assignment, a[i] = b, (real).
| a | real array (LHS) |
| b | real scalar (RHS) |
| beginIdA | index of first element in a slice of array a |
| n | number of elements in the slice |
Definition at line 1351 of file VecOp.cu.
References eqS(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-scalar assignment, a[i] = b, (real).
| a | real array (LHS) |
| b | real scalar (RHS) |
Definition at line 220 of file cuda/VecOp.h.
References eqS().
| void Pscf::VecOp::eqS | ( | BackendArray< cudaComplex, CUT > & | a, |
| const cudaComplex | b, | ||
| const int | beginIdA, | ||
| const int | n ) |
Vector-scalar assignment, a[i] = b, (complex).
| a | complex array (LHS) |
| b | complex scalar (RHS) |
| beginIdA | index of first element in a slice of array a |
| n | number of elements in the slice |
Definition at line 1369 of file VecOp.cu.
References eqS(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-scalar assignment, a[i] = b, (complex).
| a | complex array (LHS) |
| b | complex scalar (RHS) |
Definition at line 246 of file cuda/VecOp.h.
References eqS().
| void Pscf::VecOp::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).
| a | real array (LHS) |
| b | real array (RHS) |
| c | real array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| beginIdC | index of first element in a slice of array c |
| n | number of elements in the slice |
Definition at line 1389 of file VecOp.cu.
References addVV(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-vector addition, a[i] = b[i] + c[i], (real).
| a | real array (LHS) |
| b | real array (RHS) |
| c | real array (RHS) |
Definition at line 280 of file cuda/VecOp.h.
References addVV().
| void Pscf::VecOp::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).
| a | complex array (LHS) |
| b | complex array (RHS) |
| c | complex array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| beginIdC | index of first element in a slice of array c |
| n | number of elements in the slice |
Definition at line 1413 of file VecOp.cu.
References addVV(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-vector addition, a[i] = b[i] + c[i], (complex).
| a | complex array (LHS) |
| b | complex array (RHS) |
| c | complex array (RHS) |
Definition at line 314 of file cuda/VecOp.h.
References addVV().
| void Pscf::VecOp::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).
| a | complex array (LHS) |
| b | real array (RHS) |
| c | complex array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| beginIdC | index of first element in a slice of array c |
| n | number of elements in the slice |
Definition at line 1437 of file VecOp.cu.
References addVV(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-vector addition, a[i] = b[i] + c[i] (mixed).
| a | complex array (LHS) |
| b | real array (RHS) |
| c | complex array (RHS) |
Definition at line 348 of file cuda/VecOp.h.
References addVV().
| void Pscf::VecOp::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).
| a | complex array (LHS) |
| b | complex array (RHS) |
| c | real array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| beginIdC | index of first element in a slice of array c |
| n | number of elements in the slice |
Definition at line 1461 of file VecOp.cu.
References addVV(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-vector addition, a[i] = b[i] + c[i] (mixed).
| a | complex array (LHS) |
| b | complex array (RHS) |
| c | real array (RHS) |
Definition at line 382 of file cuda/VecOp.h.
References addVV().
| void Pscf::VecOp::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).
| a | real array (LHS) |
| b | real array (RHS) |
| c | real scalar (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | number of elements in the slice |
Definition at line 1485 of file VecOp.cu.
References addVS(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-scalar addition, a[i] = b[i] + c, (real).
| a | real array (LHS) |
| b | real array (RHS) |
| c | real scalar (RHS) |
Definition at line 415 of file cuda/VecOp.h.
References addVS().
| void Pscf::VecOp::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).
| a | complex array (LHS) |
| b | complex array (RHS) |
| c | complex scalar (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | number of elements in the slice |
Definition at line 1505 of file VecOp.cu.
References addVS(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector addition, a[i] = b[i] + c, (complex).
| a | complex array (LHS) |
| b | complex array (RHS) |
| c | complex scalar (RHS) |
Definition at line 448 of file cuda/VecOp.h.
References addVS().
| void Pscf::VecOp::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).
| a | complex array (LHS) |
| b | real array (RHS) |
| c | complex scalar (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | number of elements in the slice |
Definition at line 1525 of file VecOp.cu.
References addVS(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector addition, a[i] = b[i] + c (mixed).
| a | complex array (LHS) |
| b | real array (RHS) |
| c | complex scalar (RHS) |
Definition at line 480 of file cuda/VecOp.h.
References addVS().
| void Pscf::VecOp::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).
| a | complex array (LHS) |
| b | complex array (RHS) |
| c | real scalar (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | number of elements in the slice |
Definition at line 1545 of file VecOp.cu.
References addVS(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-scalar addition, a[i] = b[i] + c (mixed).
| a | complex array (LHS) |
| b | complex array (RHS) |
| c | real scalar (RHS) |
Definition at line 512 of file cuda/VecOp.h.
References addVS().
| void Pscf::VecOp::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).
| a | real array (LHS) |
| b | real array (RHS) |
| c | real array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| beginIdC | index of first element in a slice of array c |
| n | number of elements in the slice |
Definition at line 1565 of file VecOp.cu.
References Pscf::ThreadArray::setThreadsLogical(), subVV(), and UTIL_CHECK.
|
inline |
Vector-vector subtraction, a[i] = b[i] - c[i], (real).
| a | real array (LHS) |
| b | real array (RHS) |
| c | real array (RHS) |
Definition at line 549 of file cuda/VecOp.h.
References subVV().
| void Pscf::VecOp::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).
| a | output array (LHS) |
| b | input array (RHS) |
| c | input array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| beginIdC | index of first element in a slice of array c |
| n | number of elements in the slice |
Definition at line 1587 of file VecOp.cu.
References Pscf::ThreadArray::setThreadsLogical(), subVV(), and UTIL_CHECK.
|
inline |
Vector-vector subtraction, a[i] = b[i] - c[i], (complex).
| a | output array (LHS) |
| b | input array (RHS) |
| c | input array (RHS) |
Definition at line 581 of file cuda/VecOp.h.
References subVV().
| void Pscf::VecOp::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).
| a | output array (LHS) |
| b | input array (RHS) |
| c | input array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| beginIdC | index of first element in a slice of array c |
| n | number of elements in the slice |
Definition at line 1609 of file VecOp.cu.
References Pscf::ThreadArray::setThreadsLogical(), subVV(), and UTIL_CHECK.
|
inline |
Vector-vector subtraction, a[i] = b[i] - c[i] (mixed).
| a | complex array (LHS) |
| b | real array (RHS) |
| c | complex array (RHS) |
Definition at line 616 of file cuda/VecOp.h.
References subVV().
| void Pscf::VecOp::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).
| a | complex array (LHS) |
| b | complex array (RHS) |
| c | real array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| beginIdC | index of first element in a slice of array c |
| n | number of elements in the slice |
Definition at line 1631 of file VecOp.cu.
References Pscf::ThreadArray::setThreadsLogical(), subVV(), and UTIL_CHECK.
|
inline |
Vector-vector subtraction, a[i] = b[i] - c[i] (mixed, c = real).
| a | complex array (LHS) |
| b | complex array (RHS) |
| c | real array (RHS) |
Definition at line 650 of file cuda/VecOp.h.
References subVV().
| void Pscf::VecOp::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).
| a | real array (LHS) |
| b | real array (RHS) |
| c | real scalar (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | number of elements in the slice |
Definition at line 1653 of file VecOp.cu.
References Pscf::ThreadArray::setThreadsLogical(), subVS(), and UTIL_CHECK.
|
inline |
Vector-scalar subtraction, a[i] = b[i] - c, (real).
| a | real array (LHS) |
| b | real array (RHS) |
| c | real scalar (RHS) |
Definition at line 683 of file cuda/VecOp.h.
References subVS().
| void Pscf::VecOp::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).
| a | complex array (LHS) |
| b | complex array (RHS) |
| c | complex scalar (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | number of elements in the slice |
Definition at line 1674 of file VecOp.cu.
References Pscf::ThreadArray::setThreadsLogical(), subVS(), and UTIL_CHECK.
|
inline |
Vector-scalar subtraction, a[i] = b[i] - c, (complex).
| a | complex array (LHS) |
| b | complex array (RHS) |
| c | complex scalar (RHS) |
Definition at line 715 of file cuda/VecOp.h.
References subVS().
| void Pscf::VecOp::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).
| a | complex array (LHS) |
| b | real array (RHS) |
| c | complex scalar (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | number of elements in the slice |
Definition at line 1694 of file VecOp.cu.
References Pscf::ThreadArray::setThreadsLogical(), subVS(), and UTIL_CHECK.
|
inline |
Vector subtraction, a[i] = b[i] - c (mixed).
| a | complex array (LHS) |
| b | real array (RHS) |
| c | complex scalar (RHS) |
Definition at line 747 of file cuda/VecOp.h.
References subVS().
| void Pscf::VecOp::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).
| a | complex array (LHS) |
| b | complex array (RHS) |
| c | real scalar (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | number of elements in the slice |
Definition at line 1713 of file VecOp.cu.
References Pscf::ThreadArray::setThreadsLogical(), subVS(), and UTIL_CHECK.
|
inline |
Vector subtraction, a[i] = b[i] - c (mixed, c = real).
| a | complex array (LHS) |
| b | complex array (RHS) |
| c | real scalar (RHS) |
Definition at line 779 of file cuda/VecOp.h.
References subVS().
| void Pscf::VecOp::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).
| a | real array (LHS) |
| b | real array (RHS) |
| c | real array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| beginIdC | index of first element in a slice of array c |
| n | number of elements in the slice |
Definition at line 1733 of file VecOp.cu.
References mulVV(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-vector multiplication, a[i] = b[i] * c[i], (real).
| a | real array (LHS) |
| b | real array (RHS) |
| c | real array (RHS) |
Definition at line 816 of file cuda/VecOp.h.
References mulVV().
| void Pscf::VecOp::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).
| a | output array (LHS) |
| b | input array (RHS) |
| c | input array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| beginIdC | index of first element in a slice of array c |
| n | number of elements in the slice |
Definition at line 1754 of file VecOp.cu.
References mulVV(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-vector multiplication, a[i] = b[i] * c[i], (complex).
| a | complex array (LHS) |
| b | complex array (RHS) |
| c | complex array (RHS) |
Definition at line 850 of file cuda/VecOp.h.
References mulVV().
| void Pscf::VecOp::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).
| a | output array (LHS) |
| b | input array (RHS) |
| c | input array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| beginIdC | index of first element in a slice of array c |
| n | number of elements in the slice |
Definition at line 1776 of file VecOp.cu.
References mulVV(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-vector multiplication, a[i]=b[i]*c[i] (mixed).
| a | output array (LHS) |
| b | input array (RHS) |
| c | input array (RHS) |
Definition at line 883 of file cuda/VecOp.h.
References mulVV().
| void Pscf::VecOp::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).
| a | complex array (LHS) |
| b | complex array (RHS) |
| c | real array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| beginIdC | index of first element in a slice of array c |
| n | number of elements in the slice |
Definition at line 1798 of file VecOp.cu.
References mulVV(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-vector multiplication, a[i]=b[i]*c[i] (mixed).
| a | complex array (LHS) |
| b | complex array (RHS) |
| c | real array (RHS) |
Definition at line 917 of file cuda/VecOp.h.
References mulVV().
| void Pscf::VecOp::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).
| a | real array (LHS) |
| b | real array (RHS) |
| c | real scalar (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | number of elements in the slice |
Definition at line 1820 of file VecOp.cu.
References mulVS(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-scalar multiplication, a[i] = b[i] * c, (real).
| a | real array (LHS) |
| b | real array (RHS) |
| c | real scalar (RHS) |
Definition at line 950 of file cuda/VecOp.h.
References mulVS().
| void Pscf::VecOp::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).
| a | complex array (LHS) |
| b | complex array (RHS) |
| c | complex scalar (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | number of elements in the slice |
Definition at line 1841 of file VecOp.cu.
References mulVS(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-scalar multiplication, a[i] = b[i] * c, (complex).
| a | complex array (LHS) |
| b | complex array (RHS) |
| c | complex scalar (RHS) |
Definition at line 982 of file cuda/VecOp.h.
References mulVS().
| void Pscf::VecOp::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).
| a | complex array (LHS) |
| b | real array (RHS) |
| c | complex scalar (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | number of elements in the slice |
Definition at line 1861 of file VecOp.cu.
References mulVS(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-scalar multiplication, a[i] = b[i] * c (mixed).
| a | output array (LHS) |
| b | real array (RHS) |
| c | complex scalar (RHS) |
Definition at line 1014 of file cuda/VecOp.h.
References mulVS().
| void Pscf::VecOp::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).
| a | complex array (LHS) |
| b | complex array (RHS) |
| c | real scalar (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | number of elements in the slice |
Definition at line 1880 of file VecOp.cu.
References mulVS(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-scalar multiplication, a[i] = b[i] * c (mixed).
| a | complex array (LHS) |
| b | complex array (RHS) |
| c | real scalar (RHS) |
Definition at line 1046 of file cuda/VecOp.h.
References mulVS().
| void Pscf::VecOp::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).
| a | real array (LHS) |
| b | real array (RHS) |
| c | real array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| beginIdC | index of first element in a slice of array c |
| n | number of elements in the slice |
Definition at line 1900 of file VecOp.cu.
References divVV(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-vector division, a[i] = b[i] / c[i], (real).
| a | real array (LHS) |
| b | real array (RHS) |
| c | real array (RHS) |
Definition at line 1083 of file cuda/VecOp.h.
References divVV().
| void Pscf::VecOp::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).
| a | complex array (LHS) |
| b | complex array (RHS) |
| c | real array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| beginIdC | index of first element in a slice of array c |
| n | number of elements in the slice |
Definition at line 1922 of file VecOp.cu.
References divVV(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-vector division, a[i] = b[i] / c[i] (mixed).
| a | complex array (LHS) |
| b | complex array (RHS) |
| c | real array (RHS) |
Definition at line 1117 of file cuda/VecOp.h.
References divVV().
| void Pscf::VecOp::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).
| a | real array (LHS) |
| b | real array (RHS) |
| c | real scalar (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | number of elements in the slice |
Definition at line 1946 of file VecOp.cu.
References divVS(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-scalar division, a[i] = b[i] / c, (real).
| a | real array (LHS) |
| b | real array (RHS) |
| c | real scalar (RHS) |
Definition at line 1149 of file cuda/VecOp.h.
References divVS().
| void Pscf::VecOp::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).
| a | complex array (LHS) |
| b | complex array (RHS) |
| c | real scalar (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | number of elements in the slice |
Definition at line 1969 of file VecOp.cu.
References divVS(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-scalar division, a[i] = b[i] / c (mixed, c = real).
| a | complex array (LHS) |
| b | complex array (RHS) |
| c | real scalar (RHS) |
Definition at line 1181 of file cuda/VecOp.h.
References divVS().
| void Pscf::VecOp::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).
| a | real array (LHS) |
| b | real scalar (RHS) |
| c | real array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdC | index of first element in a slice of array c |
| n | number of elements in the slice |
Definition at line 1992 of file VecOp.cu.
References divSV(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Scalar-vector division, a[i] = b / c[i], (real).
| a | real array (LHS) |
| b | real scalar (RHS) |
| c | real array (RHS) |
Definition at line 1213 of file cuda/VecOp.h.
References divSV().
| void Pscf::VecOp::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).
| a | real array (LHS) |
| b | real array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | number of elements in the slice |
Definition at line 2015 of file VecOp.cu.
References addEqV(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-vector in-place addition, a[i] += b[i] (real).
| a | real array (LHS) |
| b | real array (RHS) |
Definition at line 1244 of file cuda/VecOp.h.
References addEqV().
| void Pscf::VecOp::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).
| a | complex array (LHS) |
| b | complex array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | number of elements in the slice |
Definition at line 2035 of file VecOp.cu.
References addEqV(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-vector in-place addition, a[i] += b[i] (complex).
| a | complex array (LHS) |
| b | complex array (RHS) |
Definition at line 1272 of file cuda/VecOp.h.
References addEqV().
| void Pscf::VecOp::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).
| a | complex array (LHS) |
| b | real array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | number of elements in the slice |
Definition at line 2080 of file VecOp.cu.
References addEqV(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-vector in-place addition, a[i] += b[i] (mixed).
| a | complex array (LHS) |
| b | real array (RHS) |
Definition at line 1300 of file cuda/VecOp.h.
References addEqV().
| void Pscf::VecOp::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).
Computes a += b + ic, where i = sqrt(-1).
| a | complex array (LHS) |
| b | real array, increment to real part (RHS) |
| c | real array, increment to imag part (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| beginIdC | index of first element in a slice of array c |
| n | number of elements in the slice |
Definition at line 2055 of file VecOp.cu.
References addEqV(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-vector in-place addition, a[i] += (b[i], c[i]) (mixed).
Computes a += b + ic, where i = sqrt(-1).
| a | complex array (LHS) |
| b | real array, increment to real part (RHS) |
| c | real array, increment to imag part (RHS) |
Definition at line 1339 of file cuda/VecOp.h.
References addEqV().
| void Pscf::VecOp::addEqS | ( | BackendArray< cudaReal, CUT > & | a, |
| const cudaReal | b, | ||
| const int | beginIdA, | ||
| const int | n ) |
Vector-scalar in-place addition, a[i] += b, (real).
| a | real array (LHS) |
| b | real scalar (RHS) |
| beginIdA | index of first element in a slice of array a |
| n | number of elements in the slice |
Definition at line 2101 of file VecOp.cu.
References addEqS(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-scalar in-place addition, a[i] += b, (real).
| a | real array (LHS) |
| b | real scalar (RHS) |
Definition at line 1367 of file cuda/VecOp.h.
References addEqS().
| void Pscf::VecOp::addEqS | ( | BackendArray< cudaComplex, CUT > & | a, |
| const cudaComplex | b, | ||
| const int | beginIdA, | ||
| const int | n ) |
Vector-scalar in-place addition, a[i] += b, (complex).
| a | output array (LHS) |
| b | input scalar (RHS) |
| beginIdA | index of first element in a slice of array a |
| n | number of elements in the slice |
Definition at line 2119 of file VecOp.cu.
References addEqS(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-scalar in-place addition, a[i] += b, (complex).
| a | output array (LHS) |
| b | input scalar (RHS) |
Definition at line 1393 of file cuda/VecOp.h.
References addEqS().
| void Pscf::VecOp::addEqS | ( | BackendArray< cudaComplex, CUT > & | a, |
| const cudaReal | b, | ||
| const int | beginIdA, | ||
| const int | n ) |
Vector-scalar in-place addition, a[i] += b (mixed).
| a | complex array (LHS) |
| b | real scalar (RHS) |
| beginIdA | index of first element in a slice of array a |
| n | number of elements in the slice |
Definition at line 2137 of file VecOp.cu.
References addEqS(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-scalar in-place addition, a[i] += b (mixed).
| a | complex array (LHS) |
| b | real scalar (RHS) |
Definition at line 1419 of file cuda/VecOp.h.
References addEqS().
| void Pscf::VecOp::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).
| a | real array (LHS) |
| b | real array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | number of elements in the slice |
Definition at line 2155 of file VecOp.cu.
References Pscf::ThreadArray::setThreadsLogical(), subEqV(), and UTIL_CHECK.
|
inline |
Vector in-place subtraction, a[i] -= b[i], (real).
| a | real array (LHS) |
| b | real array (RHS) |
Definition at line 1449 of file cuda/VecOp.h.
References subEqV().
| void Pscf::VecOp::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).
| a | complex array (LHS) |
| b | complex array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | number of elements in the slice |
Definition at line 2175 of file VecOp.cu.
References Pscf::ThreadArray::setThreadsLogical(), subEqV(), and UTIL_CHECK.
|
inline |
Vector in-place subtraction, a[i] -= b[i], (complex).
| a | output array (LHS) |
| b | input array (RHS) |
Definition at line 1477 of file cuda/VecOp.h.
References subEqV().
| void Pscf::VecOp::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).
| a | output array (LHS) |
| b | input array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | number of elements in the slice |
Definition at line 2195 of file VecOp.cu.
References Pscf::ThreadArray::setThreadsLogical(), subEqV(), and UTIL_CHECK.
|
inline |
Vector in-place subtraction, a[i]-=b[i] (mixed).
| a | output array (LHS) |
| b | input array (RHS) |
Definition at line 1505 of file cuda/VecOp.h.
References subEqV().
| void Pscf::VecOp::subEqS | ( | BackendArray< cudaReal, CUT > & | a, |
| const cudaReal | b, | ||
| const int | beginIdA, | ||
| const int | n ) |
Vector in-place subtraction, a[i] -= b, (real).
| a | real array (LHS) |
| b | real scalar (RHS) |
| beginIdA | index of first element in a slice of array a |
| n | number of elements in the slice |
Definition at line 2215 of file VecOp.cu.
References Pscf::ThreadArray::setThreadsLogical(), subEqS(), and UTIL_CHECK.
|
inline |
Vector in-place subtraction, a[i] -= b, (real).
| a | real array (LHS) |
| b | real scalar (RHS) |
Definition at line 1531 of file cuda/VecOp.h.
References subEqS().
| void Pscf::VecOp::subEqS | ( | BackendArray< cudaComplex, CUT > & | a, |
| const cudaComplex | b, | ||
| const int | beginIdA, | ||
| const int | n ) |
Vector in-place subtraction, a[i] -= b, (complex).
| a | complex array (LHS) |
| b | complex scalar (RHS) |
| beginIdA | index of first element in a slice of array a |
| n | number of elements in the slice |
Definition at line 2233 of file VecOp.cu.
References Pscf::ThreadArray::setThreadsLogical(), subEqS(), and UTIL_CHECK.
|
inline |
Vector in-place subtraction, a[i] -= b, (complex).
| a | complex array (LHS) |
| b | complex scalar (RHS) |
Definition at line 1556 of file cuda/VecOp.h.
References subEqS().
| void Pscf::VecOp::subEqS | ( | BackendArray< cudaComplex, CUT > & | a, |
| const cudaReal | b, | ||
| const int | beginIdA, | ||
| const int | n ) |
Vector-scalar in-place subtraction, a[i] -= b (mixed).
| a | complex array (LHS) |
| b | real scalar (RHS) |
| beginIdA | index of first element in a slice of array a |
| n | number of elements in the slice |
Definition at line 2251 of file VecOp.cu.
References Pscf::ThreadArray::setThreadsLogical(), subEqS(), and UTIL_CHECK.
|
inline |
Vector-scalar in-place subtraction, a[i] -= b (mixed).
| a | complex array (LHS) |
| b | real scalar (RHS) |
Definition at line 1582 of file cuda/VecOp.h.
References subEqS().
| void Pscf::VecOp::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).
| a | real array (LHS) |
| b | real array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | number of elements in the slice |
Definition at line 2269 of file VecOp.cu.
References mulEqV(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-vector in-place multiplication, a[i] *= b[i], (real).
| a | real array (LHS) |
| b | real array (RHS) |
Definition at line 1612 of file cuda/VecOp.h.
References mulEqV().
| void Pscf::VecOp::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).
| a | complex array (LHS) |
| b | complex array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | number of elements in the slice |
Definition at line 2287 of file VecOp.cu.
References mulEqV(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-vector in-place multiplication, a[i] *= b[i], (complex).
| a | complex array (LHS) |
| b | complex array (RHS) |
Definition at line 1640 of file cuda/VecOp.h.
References mulEqV().
| void Pscf::VecOp::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).
| a | complex array (LHS) |
| b | real array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | number of elements in the slice |
Definition at line 2305 of file VecOp.cu.
References mulEqV(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-vector in-place multiplication, a[i] *= b[i] (mixed).
| a | complex array (LHS) |
| b | real array (RHS) |
Definition at line 1668 of file cuda/VecOp.h.
References mulEqV().
| void Pscf::VecOp::mulEqS | ( | BackendArray< cudaReal, CUT > & | a, |
| const cudaReal | b, | ||
| const int | beginIdA, | ||
| const int | n ) |
Vector-scalar in-place multiplication, a[i] *= b, (real).
| a | real array (LHS) |
| b | real scalar (RHS) |
| beginIdA | index of first element in a slice of array a |
| n | number of elements in the slice |
Definition at line 2323 of file VecOp.cu.
References mulEqS(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-scalar in-place multiplication, a[i] *= b, (real).
| a | real array (LHS) |
| b | real scalar (RHS) |
Definition at line 1694 of file cuda/VecOp.h.
References mulEqS().
| void Pscf::VecOp::mulEqS | ( | BackendArray< cudaComplex, CUT > & | a, |
| const cudaComplex | b, | ||
| const int | beginIdA, | ||
| const int | n ) |
Vector-scalar in-place multiplication, a[i] *= b, (complex).
| a | complex array (LHS) |
| b | complex scalar (RHS) |
| beginIdA | index of first element in a slice of array a |
| n | number of elements in the slice |
Definition at line 2339 of file VecOp.cu.
References mulEqS(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-scalar in-place multiplication, a[i] *= b, (complex).
| a | complex array (LHS) |
| b | complex scalar (RHS) |
Definition at line 1719 of file cuda/VecOp.h.
References mulEqS().
| void Pscf::VecOp::mulEqS | ( | BackendArray< cudaComplex, CUT > & | a, |
| const cudaReal | b, | ||
| const int | beginIdA, | ||
| const int | n ) |
Vector-scalar in-place multiplication, a[i]*=b (mixed).
| a | complex array (LHS) |
| b | real scalar (RHS) |
| beginIdA | index of first element in a slice of array a |
| n | number of elements in the slice |
Definition at line 2357 of file VecOp.cu.
References mulEqS(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-scalar in-place multiplication, a[i]*=b (mixed).
| a | complex array (LHS) |
| b | real scalar (RHS) |
Definition at line 1745 of file cuda/VecOp.h.
References mulEqS().
| void Pscf::VecOp::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).
| a | real array (LHS) |
| b | real array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | number of elements in the slice |
Definition at line 2377 of file VecOp.cu.
References divEqV(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-vector in-place division, a[i] /= b[i], (real).
| a | real array (LHS) |
| b | real array (RHS) |
Definition at line 1775 of file cuda/VecOp.h.
References divEqV().
| void Pscf::VecOp::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).
| a | complex array (LHS) |
| b | real array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | number of elements in the slice |
Definition at line 2397 of file VecOp.cu.
References divEqV(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-vector in-place division, a[i] /= b[i] (mixed).
| a | complex array (LHS) |
| b | real array (RHS) |
Definition at line 1803 of file cuda/VecOp.h.
References divEqV().
| void Pscf::VecOp::divEqS | ( | BackendArray< cudaReal, CUT > & | a, |
| const cudaReal | b, | ||
| const int | beginIdA, | ||
| const int | n ) |
Vector-scalar in-place division, a[i] /= b, (real).
| a | real array (LHS) |
| b | real scalar (RHS) |
| beginIdA | index of first element in a slice of array a |
| n | number of elements in the slice |
Definition at line 2417 of file VecOp.cu.
References divEqS(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-scalar in-place division, a[i] /= b, (real).
| a | real array (LHS) |
| b | real scalar (RHS) |
Definition at line 1830 of file cuda/VecOp.h.
References divEqS().
| void Pscf::VecOp::divEqS | ( | BackendArray< cudaComplex, CUT > & | a, |
| const cudaReal | b, | ||
| const int | beginIdA, | ||
| const int | n ) |
Vector-scalar in-place division, a[i] /= b (mixed).
| a | complex array (LHS) |
| b | real scalar (RHS) |
| beginIdA | index of first element in a slice of array a |
| n | number of elements in the slice |
Definition at line 2435 of file VecOp.cu.
References divEqS(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector-scalar in-place division, a[i] /= b (mixed).
| a | complex array (LHS) |
| b | real scalar (RHS) |
Definition at line 1856 of file cuda/VecOp.h.
References divEqS().
| void Pscf::VecOp::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).
| a | real array (LHS) |
| b | real array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | number of elements in the slice |
Definition at line 2455 of file VecOp.cu.
References expV(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector exponentiation, a[i] = exp(b[i]), (real).
| a | real array (LHS) |
| b | real array (RHS) |
Definition at line 1886 of file cuda/VecOp.h.
References expV().
| void Pscf::VecOp::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).
| a | complex array (LHS) |
| b | complex array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | number of elements in the slice |
Definition at line 2475 of file VecOp.cu.
References expV(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector exponentiation, a[i] = exp(b[i]), (complex).
| a | complex array (LHS) |
| b | complex array (RHS) |
Definition at line 1915 of file cuda/VecOp.h.
References expV().
| void Pscf::VecOp::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).
| a | real array (LHS) |
| b | real array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | number of elements in the slice |
Definition at line 2497 of file VecOp.cu.
References Pscf::ThreadArray::setThreadsLogical(), sqV(), and UTIL_CHECK.
|
inline |
Vector square, a[i] = b[i]*b[i], (real).
| a | real array (LHS) |
| b | real array (RHS) |
Definition at line 1946 of file cuda/VecOp.h.
References sqV().
| void Pscf::VecOp::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).
| a | complex array (LHS) |
| b | complex array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | number of elements in the slice |
Definition at line 2518 of file VecOp.cu.
References Pscf::ThreadArray::setThreadsLogical(), sqV(), and UTIL_CHECK.
|
inline |
Vector square, a[i] = b[i]*b[i], (complex).
| a | complex array (LHS) |
| b | complex array (RHS) |
Definition at line 1975 of file cuda/VecOp.h.
References sqV().
| void Pscf::VecOp::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).
| a | real array (LHS) |
| b | real array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | size of arrays |
Definition at line 2541 of file VecOp.cu.
References absV(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
|
inline |
Vector absolute magnitude, a[i] = abs(b[i]) (real).
| a | real array (LHS) |
| b | real array (RHS) |
Definition at line 2006 of file cuda/VecOp.h.
References absV().
| void Pscf::VecOp::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).
| a | real array (LHS) |
| b | complex array (RHS) |
| beginIdA | index of first element in a slice of array a |
| beginIdB | index of first element in a slice of array b |
| n | size of arrays |
Definition at line 2562 of file VecOp.cu.
References Pscf::ThreadArray::setThreadsLogical(), sqAbsV(), and UTIL_CHECK.
|
inline |
Vector absolute magnitude squared, a[i] = |b[i]|^2 (complex).
| a | real array (LHS) |
| b | conplex array (RHS) |
Definition at line 2035 of file cuda/VecOp.h.
References sqAbsV().
| void Pscf::VecOp::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).
| a | real array (LHS) |
| b1 | real input array 1 (RHS) |
| c1 | real coefficent of b1 (RHS) |
| b2 | real input array 2 (RHS) |
| c2 | real coefficent of b2 (RHS) |
Definition at line 363 of file VecOpMisc.cu.
References addVcVc(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
| void Pscf::VecOp::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).
| a | real array (LHS) |
| b | real input array (RHS) |
| c | real coefficient of b (RHS) |
| s | real scalar summand (RHS) |
Definition at line 385 of file VecOpMisc.cu.
References addVcS(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
| void Pscf::VecOp::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).
| a | real output array (LHS) |
| b | real input array (RHS) |
| c | real scalar coefficient of b (RHS) |
Definition at line 455 of file VecOpMisc.cu.
References addEqVc(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
| void Pscf::VecOp::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).
| a | real output array (LHS) |
| b1 | real input array 1 (RHS) |
| c1 | real coefficient of b1 (RHS) |
| b2 | real input array 2 (RHS) |
| c2 | real coefficient of b2 (RHS) |
| b3 | real input array 3 (RHS) |
| c3 | real coefficient of b3 (RHS) |
Definition at line 404 of file VecOpMisc.cu.
References addVcVcVc(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
| void Pscf::VecOp::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).
| a | real output array (LHS) |
| b1 | real input array 1 (RHS) |
| c1 | real coefficient of b1 (RHS) |
| b2 | real input array 2 (RHS) |
| c2 | real coefficient of b2 (RHS) |
| s | real scalar summand (RHS) |
Definition at line 429 of file VecOpMisc.cu.
References addVcVcS(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
| void Pscf::VecOp::divEqVc | ( | BackendArray< cudaComplex, CUT > & | a, |
| BackendArray< cudaReal, CUT > const & | b, | ||
| cudaReal const | c ) |
Vector division in-place w/ coeff., a[i] /= (b[i] * c).
| a | complex array (LHS) |
| b | real array (RHS) |
| c | input scalar (RHS) |
Definition at line 474 of file VecOpMisc.cu.
References divEqVc(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
| void Pscf::VecOp::expVc | ( | BackendArray< cudaReal, CUT > & | a, |
| BackendArray< cudaReal, CUT > const & | b, | ||
| cudaReal const | c ) |
Vector exponentiation w/ coefficient, a[i] = exp(b[i]*c).
| a | real array (LHS) |
| b | real array (RHS) |
| c | input scalar |
Definition at line 492 of file VecOpMisc.cu.
References expVc(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
| void Pscf::VecOp::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).
| a1 | real array 1 (LHS) |
| a2 | real array 2 (LHS) |
| s | shared real array to be assigned to both a1 and a2 |
Definition at line 510 of file VecOpMisc.cu.
References eqVPair(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
| void Pscf::VecOp::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).
| a1 | real array 1 (LHS) |
| a2 | real array 2 (LHS) |
| b1 | real array 1 (RHS) |
| b2 | real array 2 (RHS) |
| s | shared real array to be multiplied by both b1 and b2 |
Definition at line 531 of file VecOpMisc.cu.
References mulVVPair(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
| void Pscf::VecOp::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).
| a1 | real array 1 (LHS) |
| a2 | real array 2 (LHS) |
| s | shared real array to multiply both a1 and a2 (RHS) |
Definition at line 557 of file VecOpMisc.cu.
References mulEqVPair(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
| void Pscf::VecOp::addVMany | ( | BackendArray< cudaReal, CUT > & | a, |
| DArray< BackendArray< cudaReal, CUT > > const & | vecs ) |
Add an arbitrary number of vectors pointwise (real).
The input array 'vecs' contains the arrays that will be added. The size of array vecs determines the number of vectors that will be added together.
| a | real array (LHS) |
| vecs | array of BackendArrays to be added (RHS) |
Definition at line 577 of file VecOpMisc.cu.
References addVMany(), addVV(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
Referenced by addVMany(), and addVMany().
| void Pscf::VecOp::addVMany | ( | BackendArray< cudaReal, CUT > & | a, |
| DArray< BackendArray< cudaReal, CUT > const * > const & | vecs ) |
Add an arbitrary number of vectors pointwise (real).
The input array 'vecs' contains const pointers to each array that will be added together. The size of vecs determines the number of vectors that will be added together.
This version of addVMany is provided for cases in which one needs to add many arrays that are not already stored together in a DArray. The caller must simply assemble an array of pointers to all of the arrays that should be added, and then pass it to this method.
| a | real array (LHS) |
| vecs | array of pointers to BackendArrays to be added |
Definition at line 610 of file VecOpMisc.cu.
References addVMany(), addVV(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
| void Pscf::VecOp::mulVMany | ( | BackendArray< cudaReal, CUT > & | a, |
| DArray< BackendArray< cudaReal, CUT > > const & | vecs ) |
Multiply an undefined number of vectors pointwise (real).
The input array 'vecs' contains the arrays that will be multiplied. The size of vecs determines the number of vectors that will be multiplied together.
| a | real array (LHS) |
| vecs | array of BackendArrays to be multiplied (RHS) |
Definition at line 643 of file VecOpMisc.cu.
References mulVMany(), mulVV(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
Referenced by mulVMany(), and mulVMany().
| void Pscf::VecOp::mulVMany | ( | BackendArray< cudaReal, CUT > & | a, |
| DArray< BackendArray< cudaReal, CUT > const * > const & | vecs ) |
Multiply an undefined number of vectors pointwise.
The input array 'vecs' contains const pointers to each array that will be multiplied together. The size of vecs determines the number of vectors that will ultimately be multiplied together pointwise.
This version of mulVMany is provided for cases in which one needs to multiply many arrays that are not already stored together in a DArray. The caller must simply assemble an array of pointers to all of the arrays that should be multiplied, and then pass it to this method.
| a | real array (LHS) |
| vecs | array of real arrays to be multiplied (RHS) |
Definition at line 676 of file VecOpMisc.cu.
References mulVMany(), mulVV(), Pscf::ThreadArray::setThreadsLogical(), and UTIL_CHECK.
| void Pscf::VecOp::sqSqAbsV | ( | BackendArray< cudaReal, CUT > & | a, |
| BackendArray< cudaComplex, CUT > const & | b ) |
Fourth power of magnitude, a[i] = |b[i]|^4 (complex).
| a | real array (LHS) |
| b | complex array (RHS) |
Definition at line 709 of file VecOpMisc.cu.
References Pscf::ThreadArray::setThreadsLogical(), sqSqAbsV(), and UTIL_CHECK.