#include <CudaTypesBase.h>


Public Member Functions | |
| CudaMatrix< T > & | getCudaMatrix () |
| void | resize (int nbCol, int nbRow) |
| Resize the matrix and reset all values to 0. | |
| void | resize (int nbCol, int nbRow, int ws) |
| int | rowSize () const |
| Number of rows. | |
| int | colSize () const |
| Number of columns. | |
| SReal | element (int i, int j) const |
| Read the value of the element at row i, column j (using 0-based indices). | |
| void | clear () |
| Reset all values to 0. | |
| void | set (int j, int i, double v) |
| Write the value of the element at row i, column j (using 0-based indices). | |
| void | add (int j, int i, double v) |
| Add v to the existing value of the element at row i, column j (using 0-based indices). | |
Private Attributes | |
| CudaMatrix< T > | m |
Definition at line 40 of file CudaTypesBase.h.
| void sofa::gpu::cuda::CudaBaseMatrix< T >::add | ( | int | i, | |
| int | j, | |||
| double | v | |||
| ) | [inline, virtual] |
Add v to the existing value of the element at row i, column j (using 0-based indices).
Implements sofa::defaulttype::BaseMatrix.
Definition at line 85 of file CudaTypesBase.h.
References sofa::gpu::cuda::CudaBaseMatrix< T >::colSize(), sofa::gpu::cuda::CudaBaseMatrix< T >::m, and sofa::gpu::cuda::CudaBaseMatrix< T >::rowSize().
| void sofa::gpu::cuda::CudaBaseMatrix< T >::clear | ( | ) | [inline, virtual] |
Reset all values to 0.
Implements sofa::defaulttype::BaseMatrix.
Definition at line 67 of file CudaTypesBase.h.
References sofa::gpu::cuda::CudaBaseMatrix< T >::m.
| int sofa::gpu::cuda::CudaBaseMatrix< T >::colSize | ( | ) | const [inline, virtual] |
Number of columns.
Implements sofa::defaulttype::BaseMatrix.
Definition at line 59 of file CudaTypesBase.h.
References sofa::gpu::cuda::CudaBaseMatrix< T >::m.
Referenced by sofa::gpu::cuda::CudaBaseMatrix< T >::add(), and sofa::gpu::cuda::CudaBaseMatrix< T >::set().
| SReal sofa::gpu::cuda::CudaBaseMatrix< T >::element | ( | int | i, | |
| int | j | |||
| ) | const [inline, virtual] |
Read the value of the element at row i, column j (using 0-based indices).
Implements sofa::defaulttype::BaseMatrix.
Definition at line 63 of file CudaTypesBase.h.
References sofa::gpu::cuda::CudaBaseMatrix< T >::m.
| CudaMatrix<T>& sofa::gpu::cuda::CudaBaseMatrix< T >::getCudaMatrix | ( | ) | [inline] |
| void sofa::gpu::cuda::CudaBaseMatrix< T >::resize | ( | int | nbCol, | |
| int | nbRow, | |||
| int | ws | |||
| ) | [inline] |
| void sofa::gpu::cuda::CudaBaseMatrix< T >::resize | ( | int | nbRow, | |
| int | nbCol | |||
| ) | [inline, virtual] |
Resize the matrix and reset all values to 0.
Implements sofa::defaulttype::BaseMatrix.
Definition at line 47 of file CudaTypesBase.h.
References BSIZE, and sofa::gpu::cuda::CudaBaseMatrix< T >::m.
| int sofa::gpu::cuda::CudaBaseMatrix< T >::rowSize | ( | ) | const [inline, virtual] |
Number of rows.
Implements sofa::defaulttype::BaseMatrix.
Definition at line 55 of file CudaTypesBase.h.
References sofa::gpu::cuda::CudaBaseMatrix< T >::m.
Referenced by sofa::gpu::cuda::CudaBaseMatrix< T >::add(), and sofa::gpu::cuda::CudaBaseMatrix< T >::set().
| void sofa::gpu::cuda::CudaBaseMatrix< T >::set | ( | int | i, | |
| int | j, | |||
| double | v | |||
| ) | [inline, virtual] |
Write the value of the element at row i, column j (using 0-based indices).
Implements sofa::defaulttype::BaseMatrix.
Definition at line 75 of file CudaTypesBase.h.
References sofa::gpu::cuda::CudaBaseMatrix< T >::colSize(), sofa::gpu::cuda::CudaBaseMatrix< T >::m, and sofa::gpu::cuda::CudaBaseMatrix< T >::rowSize().
CudaMatrix<T> sofa::gpu::cuda::CudaBaseMatrix< T >::m [private] |
Definition at line 96 of file CudaTypesBase.h.
Referenced by sofa::gpu::cuda::CudaBaseMatrix< T >::add(), sofa::gpu::cuda::CudaBaseMatrix< T >::clear(), sofa::gpu::cuda::CudaBaseMatrix< T >::colSize(), sofa::gpu::cuda::CudaBaseMatrix< T >::element(), sofa::gpu::cuda::CudaBaseMatrix< T >::getCudaMatrix(), sofa::gpu::cuda::CudaBaseMatrix< T >::resize(), sofa::gpu::cuda::CudaBaseMatrix< T >::rowSize(), and sofa::gpu::cuda::CudaBaseMatrix< T >::set().
1.5.7.1