#include <CudaTypesBase.h>


Public Member Functions | |
| CudaVector< T > & | getCudaVector () |
| T & | operator[] (int i) |
| const T & | operator[] (int i) const |
| void | resize (int nbRow) |
| Resize the vector, and reset all values to 0. | |
| void | resize (int nbRow, int warp_size) |
| int | size () const |
| Number of elements. | |
| SReal | element (int i) const |
| Read the value of element i. | |
| void | clear () |
| Reset all values to 0. | |
| void | set (int i, SReal val) |
| Write the value of element i. | |
| void | add (int i, SReal val) |
| Add v to the existing value of element i. | |
Private Attributes | |
| CudaVector< T > | v |
Definition at line 100 of file CudaTypesBase.h.
| void sofa::gpu::cuda::CudaBaseVector< T >::add | ( | int | i, | |
| SReal | v | |||
| ) | [inline, virtual] |
Add v to the existing value of element i.
Implements sofa::defaulttype::BaseVector.
Definition at line 139 of file CudaTypesBase.h.
References sofa::gpu::cuda::CudaBaseVector< T >::v.
| void sofa::gpu::cuda::CudaBaseVector< T >::clear | ( | ) | [inline, virtual] |
Reset all values to 0.
Implements sofa::defaulttype::BaseVector.
Definition at line 131 of file CudaTypesBase.h.
References sofa::gpu::cuda::CudaBaseVector< T >::size(), and sofa::gpu::cuda::CudaBaseVector< T >::v.
| SReal sofa::gpu::cuda::CudaBaseVector< T >::element | ( | int | i | ) | const [inline, virtual] |
Read the value of element i.
Implements sofa::defaulttype::BaseVector.
Definition at line 127 of file CudaTypesBase.h.
References sofa::gpu::cuda::CudaBaseVector< T >::v.
| CudaVector<T>& sofa::gpu::cuda::CudaBaseVector< T >::getCudaVector | ( | ) | [inline] |
| const T& sofa::gpu::cuda::CudaBaseVector< T >::operator[] | ( | int | i | ) | const [inline] |
| T& sofa::gpu::cuda::CudaBaseVector< T >::operator[] | ( | int | i | ) | [inline] |
| void sofa::gpu::cuda::CudaBaseVector< T >::resize | ( | int | nbRow, | |
| int | warp_size | |||
| ) | [inline] |
| void sofa::gpu::cuda::CudaBaseVector< T >::resize | ( | int | dim | ) | [inline, virtual] |
Resize the vector, and reset all values to 0.
Implements sofa::defaulttype::BaseVector.
Definition at line 115 of file CudaTypesBase.h.
References sofa::gpu::cuda::CudaBaseVector< T >::v.
| void sofa::gpu::cuda::CudaBaseVector< T >::set | ( | int | i, | |
| SReal | v | |||
| ) | [inline, virtual] |
Write the value of element i.
Implements sofa::defaulttype::BaseVector.
Definition at line 135 of file CudaTypesBase.h.
References sofa::gpu::cuda::CudaBaseVector< T >::v.
| int sofa::gpu::cuda::CudaBaseVector< T >::size | ( | ) | const [inline, virtual] |
Number of elements.
Implements sofa::defaulttype::BaseVector.
Definition at line 123 of file CudaTypesBase.h.
References sofa::gpu::cuda::CudaBaseVector< T >::v.
Referenced by sofa::gpu::cuda::CudaBaseVector< T >::clear().
CudaVector<T> sofa::gpu::cuda::CudaBaseVector< T >::v [private] |
Definition at line 144 of file CudaTypesBase.h.
Referenced by sofa::gpu::cuda::CudaBaseVector< T >::add(), sofa::gpu::cuda::CudaBaseVector< T >::clear(), sofa::gpu::cuda::CudaBaseVector< T >::element(), sofa::gpu::cuda::CudaBaseVector< T >::getCudaVector(), sofa::gpu::cuda::CudaBaseVector< T >::operator[](), sofa::gpu::cuda::CudaBaseVector< T >::resize(), sofa::gpu::cuda::CudaBaseVector< T >::set(), and sofa::gpu::cuda::CudaBaseVector< T >::size().
1.5.7.1