Elise Palethorpe
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Research Subjects
Elise Palethorpe has a total of 8 co-authors. Here are the top co-authors by number of shared publications:
- Giuseppe Maria Junior Barca
Australian National University
8 shared publications - Ryan Stocks
Australian National University
5 shared publications - Amir Karton
University of New England
1 shared publication Christopher Seidl
QDX Technologies
1 shared publication- Christopher Seidl
QDX Technologies
1 shared publication Fiona C. Y. Yu
School of Computing, The Australian National University
1 shared publication
Latest Publications
- 4 May 2026
- Published by American Chemical Society (ACS) in Journal of Chemical Theory and Computation
- Vol. 22 (10) , 5060-5072
Double-Hybrid, but Not Double-Cost: GPU-Accelerated DHDFT for the COMPAS-3 Data Set of Polybenzenoid Hydrocarbons
We present the first implementation of double hybrid density functional theory (DHDFT) with all major computational steps accelerated on GPUs. To efficiently utilize GPU hardware, we employ the resolution-of-identity (RI) approximation, transforming electron repulsion integral (ERI) computations into large dense matrix multiplications and enabling basis functions up to g angular momentum. We demonstrate revDSD-PBEP86-D4(noFC)/def2-QZVPP calculations on the entire COMPAS-3x data set of ∼39,000 peri-condensed polybenzenoid hydrocarbon isomer geometries (up to 68 atoms) using just 900 node-hours on the Perlmutter supercomputer. For medium-sized organic molecules (up to ∼3k basis functions), the PT2 component adds minimal cost relative to the initial SCF step. This demonstrates that efficient GPU acceleration reduces the practical computational requirements of DHDFT comparable to conventional hybrid DFT. We additionally benchmark a range of LDA, GGA, and MGGA functionals against the revDSD-PBEP86-D4(noFC) isomerization energies. Without dispersion corrections, the SVWN5 LDA functional (MAD 4.47 kJ/mol) outperforms all tested GGAs and MGGAs. With dispersion corrections, only two MGGAs, led by M06-L-D4 (MAD 3.82 kJ/mol), are able to surpass the SVWN5 results.
- 4 May 2026
- Published by American Chemical Society (ACS) in Journal of Chemical Theory and Computation
- Vol. 22 (10) , 5060-5072
Double-Hybrid, but Not Double-Cost: GPU-Accelerated DHDFT for the COMPAS-3 Data Set of Polybenzenoid Hydrocarbons
We present the first implementation of double hybrid density functional theory (DHDFT) with all major computational steps accelerated on GPUs. To efficiently utilize GPU hardware, we employ the resolution-of-identity (RI) approximation, transforming electron repulsion integral (ERI) computations into large dense matrix multiplications and enabling basis functions up to g angular momentum. We demonstrate revDSD-PBEP86-D4(noFC)/def2-QZVPP calculations on the entire COMPAS-3x data set of ∼39,000 peri-condensed polybenzenoid hydrocarbon isomer geometries (up to 68 atoms) using just 900 node-hours on the Perlmutter supercomputer. For medium-sized organic molecules (up to ∼3k basis functions), the PT2 component adds minimal cost relative to the initial SCF step. This demonstrates that efficient GPU acceleration reduces the practical computational requirements of DHDFT comparable to conventional hybrid DFT. We additionally benchmark a range of LDA, GGA, and MGGA functionals against the revDSD-PBEP86-D4(noFC) isomerization energies. Without dispersion corrections, the SVWN5 LDA functional (MAD 4.47 kJ/mol) outperforms all tested GGAs and MGGAs. With dispersion corrections, only two MGGAs, led by M06-L-D4 (MAD 3.82 kJ/mol), are able to surpass the SVWN5 results.
- 15 September 2025
- Published by American Chemical Society (ACS) in Journal of Chemical Theory and Computation
High-Performance, High-Angular-Momentum J Engine on Graphics Processing Units
Efficient evaluation of electron repulsion integrals (ERIs) involving high-angular-momentum Gaussian basis functions is computationally challenging on graphical processing units (GPUs), as traditional recurrence-based integral algorithms generate numerous intermediates, causing significant register pressure and memory bottlenecks. In this Article, we present a high-performance, high-angular-momentum Coulomb-matrix (J) engine specifically optimized for GPU execution. Our approach introduces a GPU-optimized McMurchie-Davidson recurrence algorithm combined with a tailored integral batching scheme, designed specifically to jointly minimize intermediate storage requirements and redundant computation. By strategically partitioning high-angular-momentum ERIs classes into several carefully selected sub-batches, our approach transitions the associated integral evaluation kernels from memory-bound to compute-bound regimes, significantly enhancing computational throughput and reducing time to solution. Implemented in the Extreme-scale Electronic Structure System (EXESS), our algorithm achieves individual kernel speedups of up to 9× and improves overall J-matrix formation performance by up to 64% across a variety of increasing-size chemical systems, including polyglycine chains, water clusters, and boron nitride crystals, when using the cc-pVQZ quadruple-ζ basis set on an NVIDIA A100 GPU.
- 15 September 2025
- Published by American Chemical Society (ACS) in Journal of Chemical Theory and Computation
High-Performance, High-Angular-Momentum J Engine on Graphics Processing Units
Efficient evaluation of electron repulsion integrals (ERIs) involving high-angular-momentum Gaussian basis functions is computationally challenging on graphical processing units (GPUs), as traditional recurrence-based integral algorithms generate numerous intermediates, causing significant register pressure and memory bottlenecks. In this Article, we present a high-performance, high-angular-momentum Coulomb-matrix (J) engine specifically optimized for GPU execution. Our approach introduces a GPU-optimized McMurchie-Davidson recurrence algorithm combined with a tailored integral batching scheme, designed specifically to jointly minimize intermediate storage requirements and redundant computation. By strategically partitioning high-angular-momentum ERIs classes into several carefully selected sub-batches, our approach transitions the associated integral evaluation kernels from memory-bound to compute-bound regimes, significantly enhancing computational throughput and reducing time to solution. Implemented in the Extreme-scale Electronic Structure System (EXESS), our algorithm achieves individual kernel speedups of up to 9× and improves overall J-matrix formation performance by up to 64% across a variety of increasing-size chemical systems, including polyglycine chains, water clusters, and boron nitride crystals, when using the cc-pVQZ quadruple-ζ basis set on an NVIDIA A100 GPU.
- Open Access
- 30 July 2025
- Published by American Chemical Society (ACS) in ChemRxiv
High-Performance, High-Angular-Momentum J Engine on Graphics Processing Units
Efficient evaluation of electron repulsion integrals (ERIs) involving high-angular-momentum Gaussian basis functions is computationally challenging on graphical processing units (GPUs), as traditional recurrence-based integral algorithms generate numerous intermediates, causing significant register pressure and memory bottlenecks. In this Article, we present a high-performance, high-angular-momentum Coulomb-matrix J engine specifically optimized for GPU execution. Our approach introduces a GPU-optimized McMurchie-Davidson recurrence algorithm combined with a tailored integral batching scheme, designed specifically to jointly minimize intermediate storage requirements and redundant computation. By strategically partitioning high-angular-momentum ERIs classes into several carefully selected sub-batches, our approach transitions the associated integral evaluation kernels from memory-bound to compute-bound regimes, significantly enhancing computational throughput and reducing time to solution. Implemented in the Extreme-scale Electronic Structure System (EXESS), our algorithm achieves individual kernel speedups of up to 9x and improves overall J-matrix formation performance by up to 64% across a variety of increasing-size chemical systems, including polyglycine chains, water clusters, and boron nitride crystals, when using the cc-pVQZ quadruple-zeta basis set.
- 30 July 2025
- Published by American Chemical Society (ACS) in ChemRxiv
Open AccessHigh-Performance, High-Angular-Momentum J Engine on Graphics Processing Units
Efficient evaluation of electron repulsion integrals (ERIs) involving high-angular-momentum Gaussian basis functions is computationally challenging on graphical processing units (GPUs), as traditional recurrence-based integral algorithms generate numerous intermediates, causing significant register pressure and memory bottlenecks. In this Article, we present a high-performance, high-angular-momentum Coulomb-matrix J engine specifically optimized for GPU execution. Our approach introduces a GPU-optimized McMurchie-Davidson recurrence algorithm combined with a tailored integral batching scheme, designed specifically to jointly minimize intermediate storage requirements and redundant computation. By strategically partitioning high-angular-momentum ERIs classes into several carefully selected sub-batches, our approach transitions the associated integral evaluation kernels from memory-bound to compute-bound regimes, significantly enhancing computational throughput and reducing time to solution. Implemented in the Extreme-scale Electronic Structure System (EXESS), our algorithm achieves individual kernel speedups of up to 9x and improves overall J-matrix formation performance by up to 64% across a variety of increasing-size chemical systems, including polyglycine chains, water clusters, and boron nitride crystals, when using the cc-pVQZ quadruple-zeta basis set.
- 29 January 2025
- Published by American Chemical Society (ACS) in Journal of Chemical Theory and Computation
- Vol. 21 (3) , 1230-1248
Acceleration of Self-Consistent Field Calculations Using Basis Set Projection and Many-Body Expansion as Initial Guess Methods
In Self-Consistent Field (SCF) calculations, the choice of initial guess plays a key role in determining the time-to-solution by influencing the number of iterations required for convergence. However, focusing solely on reducing iterations may overlook the computational cost associated with improving the accuracy of initial guesses. This study critically evaluates the effectiveness of two initial guess methods─basis set projection (BSP) and many-body expansion (MBE) on Hartree-Fock and hybrid Density Functional Theory (B3LYP and MN15) methods. We also introduce a new approach, a hybrid of MBE and BSP. Our assessment considers both the number of SCF iterations and the total computational wall-times. The results demonstrate that BSP, MBE, and the hybrid method could significantly outperform the conventional superposition of atomic densities (SAD) technique. With these methods, reductions in total wall-time, including the time spent generating initial guesses, by up to 21.9, 27.6, and 21.6% could be observed with HF, B3LYP, and MN15, respectively, when tested on systems containing up to 14,386 basis functions. Furthermore, we also examine the influence of these initial guess schemes on difficult-to-converge metalloprotein and triplet electronic states. Speedups could be observed with non-SAD approaches although in the case of triplet electronic states, higher convergence failures could be observed.
- 29 January 2025
- Published by American Chemical Society (ACS) in Journal of Chemical Theory and Computation
- Vol. 21 (3) , 1230-1248
Acceleration of Self-Consistent Field Calculations Using Basis Set Projection and Many-Body Expansion as Initial Guess Methods
In Self-Consistent Field (SCF) calculations, the choice of initial guess plays a key role in determining the time-to-solution by influencing the number of iterations required for convergence. However, focusing solely on reducing iterations may overlook the computational cost associated with improving the accuracy of initial guesses. This study critically evaluates the effectiveness of two initial guess methods─basis set projection (BSP) and many-body expansion (MBE) on Hartree-Fock and hybrid Density Functional Theory (B3LYP and MN15) methods. We also introduce a new approach, a hybrid of MBE and BSP. Our assessment considers both the number of SCF iterations and the total computational wall-times. The results demonstrate that BSP, MBE, and the hybrid method could significantly outperform the conventional superposition of atomic densities (SAD) technique. With these methods, reductions in total wall-time, including the time spent generating initial guesses, by up to 21.9, 27.6, and 21.6% could be observed with HF, B3LYP, and MN15, respectively, when tested on systems containing up to 14,386 basis functions. Furthermore, we also examine the influence of these initial guess schemes on difficult-to-converge metalloprotein and triplet electronic states. Speedups could be observed with non-SAD approaches although in the case of triplet electronic states, higher convergence failures could be observed.
- 25 November 2024
- Published by American Chemical Society (ACS) in Journal of Chemical Theory and Computation
- Vol. 20 (23) , 10424-10442
Advanced Techniques for High-Performance Fock Matrix Construction on GPU Clusters
This Article presents two optimized multi-GPU algorithms for Fock matrix construction, building on the work of Ufimtsev and Martinez [ J. Chem. Theory Comput. 2009, 5, 1004-1015] and Barca et al. [ J. Chem. Theory Comput. 2021, 17, 7486-7503]. The novel algorithms, opt-UM and opt-Brc, introduce significant enhancements, including improved integral screening, exploitation of sparsity and symmetry, a linear scaling exchange matrix assembly algorithm, and extended capabilities for Hartree-Fock caculations up to f-type angular momentum functions. Opt-Brc excels for smaller systems and for highly contracted triple-ζ basis sets, while opt-UM is advantageous for large molecular systems. Performance benchmarks on NVIDIA A100 GPUs show that our algorithms in the EXtreme-scale Electronic Structure System (EXESS), when combined, outperform all current GPU and CPU Fock build implementations in TeraChem, QUICK, GPU4PySCF, LibIntX, ORCA, and Q-Chem. The implementations were benchmarked on linear and globular systems and average speed ups across three double-ζ basis sets of 1.4×, 8.4×, and 9.4× were observed compared to TeraChem, QUICK, and GPU4PySCF respectively. An increased average speedup of 2.1× over TeraChem is observed when using four A100 GPUs. Strong scaling analysis reveals over 91% parallel efficiency on four GPUs for opt-Brc, making it typically faster for multi-GPU execution. Single-compute-node comparisons with CPU-based software like ORCA and Q-Chem show speedups of up to 42× and 31×, respectively, enhancing power efficiency by up to 18×.
- 25 November 2024
- Published by American Chemical Society (ACS) in Journal of Chemical Theory and Computation
- Vol. 20 (23) , 10424-10442
Advanced Techniques for High-Performance Fock Matrix Construction on GPU Clusters
This Article presents two optimized multi-GPU algorithms for Fock matrix construction, building on the work of Ufimtsev and Martinez [ J. Chem. Theory Comput. 2009, 5, 1004-1015] and Barca et al. [ J. Chem. Theory Comput. 2021, 17, 7486-7503]. The novel algorithms, opt-UM and opt-Brc, introduce significant enhancements, including improved integral screening, exploitation of sparsity and symmetry, a linear scaling exchange matrix assembly algorithm, and extended capabilities for Hartree-Fock caculations up to f-type angular momentum functions. Opt-Brc excels for smaller systems and for highly contracted triple-ζ basis sets, while opt-UM is advantageous for large molecular systems. Performance benchmarks on NVIDIA A100 GPUs show that our algorithms in the EXtreme-scale Electronic Structure System (EXESS), when combined, outperform all current GPU and CPU Fock build implementations in TeraChem, QUICK, GPU4PySCF, LibIntX, ORCA, and Q-Chem. The implementations were benchmarked on linear and globular systems and average speed ups across three double-ζ basis sets of 1.4×, 8.4×, and 9.4× were observed compared to TeraChem, QUICK, and GPU4PySCF respectively. An increased average speedup of 2.1× over TeraChem is observed when using four A100 GPUs. Strong scaling analysis reveals over 91% parallel efficiency on four GPUs for opt-Brc, making it typically faster for multi-GPU execution. Single-compute-node comparisons with CPU-based software like ORCA and Q-Chem show speedups of up to 42× and 31×, respectively, enhancing power efficiency by up to 18×.
- Open Access
- 29 October 2024
- Published by American Chemical Society (ACS) in ChemRxiv
Assessment of Basis Set Projection and Many-Body Expansion for Initial Guesses of Self-Consistent Field Calculations
In Self-Consistent Field (SCF) calculations, the choice of initial guess plays a key role in determining the time-to-solution by influencing the number of iterations required for convergence. However, focusing solely on reducing iterations may overlook the computational cost associated with improving the accuracy of initial guesses. This study critically evaluates the effectiveness of two initial guess methods—basis set projection (BSP) and many-body expansion (MBE)—as well as a newly developed hybrid approach on Hartree-Fock and hybrid Density Functional Theory (B3LYP and MN15) methods. Our assessment considers both the number of SCF iterations and the total computational wall-times. The results demonstrate that the non-SAD techniques BSP, MBE, and the hybrid method could significantly outperform the conventional superposition of atomic densities (SAD) technique. With these methods, reductions in total wall-time, including the time spent generating initial guesses, by up to 21.9%, 27.6% and 21.6% could be observed with HF, B3LYP and MN15, respectively, when tested on systems containing up to 14,386 basis functions. Furthermore, we also examine the influence of these initial guess schemes on difficult-to-converge metalloprotein and triplet electronic states.
- 29 October 2024
- Published by American Chemical Society (ACS) in ChemRxiv
Open AccessAssessment of Basis Set Projection and Many-Body Expansion for Initial Guesses of Self-Consistent Field Calculations
In Self-Consistent Field (SCF) calculations, the choice of initial guess plays a key role in determining the time-to-solution by influencing the number of iterations required for convergence. However, focusing solely on reducing iterations may overlook the computational cost associated with improving the accuracy of initial guesses. This study critically evaluates the effectiveness of two initial guess methods—basis set projection (BSP) and many-body expansion (MBE)—as well as a newly developed hybrid approach on Hartree-Fock and hybrid Density Functional Theory (B3LYP and MN15) methods. Our assessment considers both the number of SCF iterations and the total computational wall-times. The results demonstrate that the non-SAD techniques BSP, MBE, and the hybrid method could significantly outperform the conventional superposition of atomic densities (SAD) technique. With these methods, reductions in total wall-time, including the time spent generating initial guesses, by up to 21.9%, 27.6% and 21.6% could be observed with HF, B3LYP and MN15, respectively, when tested on systems containing up to 14,386 basis functions. Furthermore, we also examine the influence of these initial guess schemes on difficult-to-converge metalloprotein and triplet electronic states.
- 28 August 2024
- Published by American Chemical Society (ACS) in Journal of Chemical Theory and Computation
- Vol. 20 (17) , 7503-7515
Multi-GPU RI-HF Energies and Analytic Gradients─Toward High-Throughput Ab Initio Molecular Dynamics
This article presents an optimized algorithm and implementation for calculating resolution-of-the-identity Hartree-Fock (RI-HF) energies and analytic gradients using multiple graphics processing units (GPUs). The algorithm is especially designed for high throughput ab initio molecular dynamics simulations of small and medium size molecules (10-100 atoms). Key innovations of this work include the exploitation of multi-GPU parallelism and a workload balancing scheme that efficiently distributes computational tasks among GPUs. Our implementation also employs techniques for symmetry utilization, integral screening, and leveraging sparsity to optimize memory usage. Computational results show that the implementation achieves significant performance improvements, including over 3 × speedups in single GPU AIMD throughput compared to previous GPU-accelerated RI-HF and traditional HF methods. Furthermore, utilizing multiple GPUs can provide superlinear speedup when the additional aggregate GPU memory allows for the storage of decompressed three-center integrals.
- 28 August 2024
- Published by American Chemical Society (ACS) in Journal of Chemical Theory and Computation
- Vol. 20 (17) , 7503-7515
Multi-GPU RI-HF Energies and Analytic Gradients─Toward High-Throughput Ab Initio Molecular Dynamics
This article presents an optimized algorithm and implementation for calculating resolution-of-the-identity Hartree-Fock (RI-HF) energies and analytic gradients using multiple graphics processing units (GPUs). The algorithm is especially designed for high throughput ab initio molecular dynamics simulations of small and medium size molecules (10-100 atoms). Key innovations of this work include the exploitation of multi-GPU parallelism and a workload balancing scheme that efficiently distributes computational tasks among GPUs. Our implementation also employs techniques for symmetry utilization, integral screening, and leveraging sparsity to optimize memory usage. Computational results show that the implementation achieves significant performance improvements, including over 3 × speedups in single GPU AIMD throughput compared to previous GPU-accelerated RI-HF and traditional HF methods. Furthermore, utilizing multiple GPUs can provide superlinear speedup when the additional aggregate GPU memory allows for the storage of decompressed three-center integrals.
- 8 March 2024
- Published by American Chemical Society (ACS) in Journal of Chemical Theory and Computation
- Vol. 20 (6) , 2505-2519
High-Performance Multi-GPU Analytic RI-MP2 Energy Gradients
This article presents a novel algorithm for the calculation of analytic energy gradients from second-order Møller-Plesset perturbation theory within the Resolution-of-the-Identity approximation (RI-MP2), which is designed to achieve high performance on clusters with multiple graphical processing units (GPUs). The algorithm uses GPUs for all major steps of the calculation, including integral generation, formation of all required intermediate tensors, solution of the Z-vector equation and gradient accumulation. The implementation in the EXtreme Scale Electronic Structure System (EXESS) software package includes a tailored, highly efficient, multistream scheduling system to hide CPU-GPU data transfer latencies and allows nodes with 8 A100 GPUs to operate at over 80% of theoretical peak floating-point performance. Comparative performance analysis shows a significant reduction in computational time relative to traditional multicore CPU-based methods, with our approach achieving up to a 95-fold speedup over the single-node performance of established software such as Q-Chem and ORCA. Additionally, we demonstrate that pairing our implementation with the molecular fragmentation framework in EXESS can drastically lower the computational scaling of RI-MP2 gradient calculations from quintic to subquadratic, enabling further substantial savings in runtime while retaining high numerical accuracy in the resulting gradients.
- 8 March 2024
- Published by American Chemical Society (ACS) in Journal of Chemical Theory and Computation
- Vol. 20 (6) , 2505-2519
High-Performance Multi-GPU Analytic RI-MP2 Energy Gradients
This article presents a novel algorithm for the calculation of analytic energy gradients from second-order Møller-Plesset perturbation theory within the Resolution-of-the-Identity approximation (RI-MP2), which is designed to achieve high performance on clusters with multiple graphical processing units (GPUs). The algorithm uses GPUs for all major steps of the calculation, including integral generation, formation of all required intermediate tensors, solution of the Z-vector equation and gradient accumulation. The implementation in the EXtreme Scale Electronic Structure System (EXESS) software package includes a tailored, highly efficient, multistream scheduling system to hide CPU-GPU data transfer latencies and allows nodes with 8 A100 GPUs to operate at over 80% of theoretical peak floating-point performance. Comparative performance analysis shows a significant reduction in computational time relative to traditional multicore CPU-based methods, with our approach achieving up to a 95-fold speedup over the single-node performance of established software such as Q-Chem and ORCA. Additionally, we demonstrate that pairing our implementation with the molecular fragmentation framework in EXESS can drastically lower the computational scaling of RI-MP2 gradient calculations from quintic to subquadratic, enabling further substantial savings in runtime while retaining high numerical accuracy in the resulting gradients.
- Open Access
- 18 February 2024
- Published by American Chemical Society (ACS) in ChemRxiv
High-performance multi-GPU analytic RI-MP2 energy gradients
This article presents a novel algorithm for the calculation of analytic energy gradients from second order Møller Plesset perturbation theory within the Resolution-of-the-Identity approximation (RI-MP2) which is designed to achieve high performance on multi-GPU clusters. The algorithm uses GPUs for all major steps of the calculation, including integral generation, formation of all required intermediate tensors, solution of the Z-vector equation and gradient accumulation. The implementation in the EXtreme Scale Electronic Structure System (EXESS) software package includes a tailored, highly efficient, multi-stream scheduling system to hide CPU-GPU data transfer latencies and allows nodes with 8 A100 GPUs to operate at over 80% of theoretical peak floating-point performance. Comparative performance analysis shows a significant reduction in computational time relative to traditional multi-core CPU-based methods, with our approach achieving up to a 95-fold speedup over the single-node performance of established software such as Q-Chem and ORCA. Additionally, we demonstrate that pairing our implementation with the molecular fragmentation framework in EXESS can drastically lower the computational scaling of RI-MP2 gradient calculations from quintic to sub-quadratic, enabling further substantial savings in runtime while retaining high numerical accuracy in the resulting gradients.
- 18 February 2024
- Published by American Chemical Society (ACS) in ChemRxiv
Open AccessHigh-performance multi-GPU analytic RI-MP2 energy gradients
This article presents a novel algorithm for the calculation of analytic energy gradients from second order Møller Plesset perturbation theory within the Resolution-of-the-Identity approximation (RI-MP2) which is designed to achieve high performance on multi-GPU clusters. The algorithm uses GPUs for all major steps of the calculation, including integral generation, formation of all required intermediate tensors, solution of the Z-vector equation and gradient accumulation. The implementation in the EXtreme Scale Electronic Structure System (EXESS) software package includes a tailored, highly efficient, multi-stream scheduling system to hide CPU-GPU data transfer latencies and allows nodes with 8 A100 GPUs to operate at over 80% of theoretical peak floating-point performance. Comparative performance analysis shows a significant reduction in computational time relative to traditional multi-core CPU-based methods, with our approach achieving up to a 95-fold speedup over the single-node performance of established software such as Q-Chem and ORCA. Additionally, we demonstrate that pairing our implementation with the molecular fragmentation framework in EXESS can drastically lower the computational scaling of RI-MP2 gradient calculations from quintic to sub-quadratic, enabling further substantial savings in runtime while retaining high numerical accuracy in the resulting gradients.