|
|
| LVARRAY_HOST_DEVICE_HIP | CRSMatrixView ()=default |
| | A constructor to create an uninitialized CRSMatrixView. More...
|
| |
|
LVARRAY_HOST_DEVICE_HIP | CRSMatrixView (CRSMatrixView const &)=default |
| | Default copy constructor.
|
| |
|
LVARRAY_HOST_DEVICE_HIP | CRSMatrixView (CRSMatrixView &&)=default |
| | Default move constructor.
|
| |
| LVARRAY_HOST_DEVICE constexpr | CRSMatrixView (INDEX_TYPE const nRows, ColTypeNC const nCols, BUFFER_TYPE< INDEX_TYPE > const &offsets, BUFFER_TYPE< SIZE_TYPE > const &nnz, BUFFER_TYPE< COL_TYPE > const &columns, BUFFER_TYPE< T > const &entries) |
| | Construct a new CRSMatrixView from the given buffers. More...
|
| |
| CRSMatrixView & | operator= (CRSMatrixView const &)=default |
| | Default copy assignment operator. More...
|
| |
| CRSMatrixView & | operator= (CRSMatrixView &&)=default |
| | Default move assignment operator. More...
|
| |
|
| LVARRAY_HOST_DEVICE constexpr CRSMatrixView< T, COL_TYPE, INDEX_TYPE const, BUFFER_TYPE > | toView () const |
| |
| LVARRAY_HOST_DEVICE constexpr CRSMatrixView< T, COL_TYPE const, INDEX_TYPE const, BUFFER_TYPE > | toViewConstSizes () const |
| |
| LVARRAY_HOST_DEVICE constexpr CRSMatrixView< T const, COL_TYPE const, INDEX_TYPE const, BUFFER_TYPE > | toViewConst () const |
| |
| LVARRAY_HOST_DEVICE constexpr SparsityPatternView< COL_TYPE const, INDEX_TYPE const, BUFFER_TYPE > | toSparsityPatternView () const & |
| |
|
| LVARRAY_HOST_DEVICE ArraySlice< T, 1, 0, INDEX_TYPE_NC > | getEntries (INDEX_TYPE const row) const |
| |
| LVARRAY_HOST_DEVICE T const * | getEntries () const |
| |
|
template<typename POLICY > |
| bool | NaNCheck () const |
| |
|
| LVARRAY_HOST_DEVICE bool | insertNonZero (INDEX_TYPE const row, ColTypeNC const col, T const &entry) const |
| | Insert a non-zero entry at the given position. More...
|
| |
| LVARRAY_HOST_DEVICE INDEX_TYPE_NC | insertNonZeros (INDEX_TYPE const row, ColTypeNC const *const LVARRAY_RESTRICT cols, T const *const LVARRAY_RESTRICT entriesToInsert, ColTypeNC const ncols) const |
| | Insert a non-zero entries into the given row. More...
|
| |
| LVARRAY_HOST_DEVICE bool | removeNonZero (INDEX_TYPE const row, ColTypeNC const col) const |
| | Remove a non-zero entry at the given position. More...
|
| |
| DISABLE_HD_WARNING LVARRAY_HOST_DEVICE INDEX_TYPE_NC | removeNonZeros (INDEX_TYPE const row, ColTypeNC const *const LVARRAY_RESTRICT cols, ColTypeNC const ncols) const |
| | Remove non-zero entries from the given row. More...
|
| |
|
| template<typename POLICY > |
| void | setValues (T const &value) const |
| | Set all the entries in the matrix to the given value. More...
|
| |
| void | zero () const |
| | Use memset to set all the values in the matrix to 0. More...
|
| |
| template<typename AtomicPolicy > |
| LVARRAY_HOST_DEVICE void | addToRow (INDEX_TYPE const row, ColTypeNC const *const LVARRAY_RESTRICT cols, T const *const LVARRAY_RESTRICT vals, ColTypeNC const nCols) const |
| | Add to the given entries, the entries must already exist in the matrix. The columns must be sorted. More...
|
| |
| template<typename AtomicPolicy > |
| LVARRAY_HOST_DEVICE void | addToRowBinarySearch (INDEX_TYPE const row, ColTypeNC const *const LVARRAY_RESTRICT cols, T const *const LVARRAY_RESTRICT vals, ColTypeNC const nCols) const |
| | Add to the given entries, the entries must already exist in the matrix. More...
|
| |
| template<typename AtomicPolicy > |
| LVARRAY_HOST_DEVICE void | addToRowLinearSearch (INDEX_TYPE const row, ColTypeNC const *const LVARRAY_RESTRICT cols, T const *const LVARRAY_RESTRICT vals, ColTypeNC const nCols) const |
| | Add to the given entries, the entries must already exist in the matrix. More...
|
| |
| template<typename AtomicPolicy > |
| LVARRAY_HOST_DEVICE void | addToRowBinarySearchUnsorted (INDEX_TYPE const row, ColTypeNC const *const LVARRAY_RESTRICT cols, T const *const LVARRAY_RESTRICT vals, ColTypeNC const nCols) const |
| | Add to the given entries, the entries must already exist in the matrix. More...
|
| |
|
| void | move (MemorySpace const space, bool const touch=true) const |
| | Move this matrix to the given memory space and touch the values, sizes and offsets. More...
|
| |
|
| | CRSMatrixView (bool) |
| | Protected constructor to be used by the CRSMatrix class. More...
|
| |
| template<typename U > |
| void | setName (std::string const &name) |
| | Set the name to be displayed whenever the underlying Buffer's user call back is called. More...
|
| |
| | SparsityPatternView (bool) |
| | Protected constructor to be used by parent classes. More...
|
| |
| void | assimilate (SparsityPatternView &&src) |
| | Steal the resources of src, clearing it in the process. More...
|
| |
| template<class ... BUFFERS> |
| void | resize (INDEX_TYPE const nrows, COL_TYPE const ncols, INDEX_TYPE_NC initialRowCapacity, BUFFERS &... buffers) |
| | Resize the SparsityPattern to the given size. More...
|
| |
| | SparsityPatternView ()=default |
| | A constructor to create an uninitialized SparsityPatternView. More...
|
| |
| | SparsityPatternView (SparsityPatternView const &)=default |
| | Default copy constructor. More...
|
| |
| | SparsityPatternView (SparsityPatternView &&src) |
| | Move constructor. More...
|
| |
| LVARRAY_HOST_DEVICE constexpr | SparsityPatternView (INDEX_TYPE const nRows, COL_TYPE const nCols, BUFFER_TYPE< INDEX_TYPE > const &offsets, BUFFER_TYPE< SIZE_TYPE > const &nnz, BUFFER_TYPE< COL_TYPE > const &columns) |
| | Construct a new CRSMatrixView from the given buffers. More...
|
| |
| SparsityPatternView & | operator= (SparsityPatternView const &)=default |
| | Default copy assignment operator, this does a shallow copy. More...
|
| |
| SparsityPatternView & | operator= (SparsityPatternView &&src) |
| | Move assignment operator, this does a shallow copy. More...
|
| |
| LVARRAY_HOST_DEVICE constexpr SparsityPatternView< COL_TYPE, INDEX_TYPE const, BUFFER_TYPE > | toView () const |
| |
| LVARRAY_HOST_DEVICE constexpr SparsityPatternView< COL_TYPE const, INDEX_TYPE const, BUFFER_TYPE > | toViewConst () const |
| |
| LVARRAY_HOST_DEVICE constexpr INDEX_TYPE_NC const | numRows () const |
| |
| LVARRAY_HOST_DEVICE constexpr COL_TYPE const | numColumns () const |
| |
| LVARRAY_HOST_DEVICE INDEX_TYPE_NC | numNonZeros () const |
| |
| LVARRAY_HOST_DEVICE constexpr INDEX_TYPE_NC const | numNonZeros (INDEX_TYPE const row) const |
| |
| LVARRAY_HOST_DEVICE constexpr INDEX_TYPE_NC const | nonZeroCapacity () const |
| |
| LVARRAY_HOST_DEVICE constexpr INDEX_TYPE_NC const | nonZeroCapacity (INDEX_TYPE const row) const |
| |
| LVARRAY_HOST_DEVICE bool | empty () const |
| |
| LVARRAY_HOST_DEVICE constexpr bool | empty (INDEX_TYPE const row) const |
| |
| LVARRAY_HOST_DEVICE bool | empty (INDEX_TYPE const row, COL_TYPE const col) const |
| |
| LVARRAY_HOST_DEVICE constexpr ArraySlice< COL_TYPE const, 1, 0, INDEX_TYPE_NC > | getColumns (INDEX_TYPE const row) const |
| |
| LVARRAY_HOST_DEVICE constexpr INDEX_TYPE const * | getOffsets () const |
| |
| LVARRAY_HOST_DEVICE constexpr COL_TYPE const * | getColumns () const |
| |
| LVARRAY_HOST_DEVICE bool | insertNonZero (INDEX_TYPE const row, COL_TYPE const col) const |
| | Insert a non-zero entry at the given position. More...
|
| |
| template<typename ITER > |
| LVARRAY_HOST_DEVICE INDEX_TYPE_NC | insertNonZeros (INDEX_TYPE const row, ITER const first, ITER const last) const |
| | Inserts multiple non-zero entries into the given row. More...
|
| |
| LVARRAY_HOST_DEVICE bool | removeNonZero (INDEX_TYPE const row, COL_TYPE const col) const |
| | Remove a non-zero entry at the given position. More...
|
| |
| template<typename ITER > |
| DISABLE_HD_WARNING LVARRAY_HOST_DEVICE INDEX_TYPE_NC | removeNonZeros (INDEX_TYPE const row, ITER const first, ITER const last) const |
| | Remove multiple non-zero entries from the given row. More...
|
| |
| void | move (MemorySpace const space, bool const touch=true) const |
| | Move this ArrayOfSets to the given memory space. More...
|
| |
| | ArrayOfSetsView (bool) |
| | Protected constructor to be used by parent classes. More...
|
| |
| LVARRAY_HOST_DEVICE constexpr ArraySlice< COL_TYPE, 1, 0, INDEX_TYPE_NC > | getSetValues (INDEX_TYPE const i) const |
| |
| LVARRAY_HOST_DEVICE bool | insertIntoSetImpl (INDEX_TYPE const i, COL_TYPE const &value, CALLBACKS &&cbacks) const |
| | Helper function to insert a value into the given set. More...
|
| |
| LVARRAY_HOST_DEVICE INDEX_TYPE_NC | insertIntoSetImpl (INDEX_TYPE const i, ITER const first, ITER const last, CALLBACKS &&cbacks) const |
| | Inserts multiple values into the given set. More...
|
| |
| LVARRAY_HOST_DEVICE bool | removeFromSetImpl (INDEX_TYPE const i, COL_TYPE const &value, CALLBACKS &&cbacks) const |
| | Helper function to remove a value from the given set. More...
|
| |
| LVARRAY_HOST_DEVICE INDEX_TYPE_NC | removeFromSetImpl (INDEX_TYPE const i, ITER const first, ITER const last, CALLBACKS &&cbacks) const |
| | Removes multiple values from the given set. More...
|
| |
| | ArrayOfSetsView ()=default |
| | A constructor to create an uninitialized ArrayOfSetsView. More...
|
| |
|
| ArrayOfSetsView (ArrayOfSetsView const &)=default |
| | Default copy constructor. Performs a shallow copy and calls the chai::ManagedArray copy constructor.
|
| |
|
| ArrayOfSetsView (ArrayOfSetsView &&)=default |
| | Default move constructor.
|
| |
| LVARRAY_HOST_DEVICE constexpr | ArrayOfSetsView (INDEX_TYPE const numArrays, BUFFER_TYPE< INDEX_TYPE > const &offsets, BUFFER_TYPE< SIZE_TYPE > const &sizes, BUFFER_TYPE< COL_TYPE > const &values) |
| | Construct a new ArrayOfArraysView from the given buffers. More...
|
| |
| ArrayOfSetsView & | operator= (ArrayOfSetsView const &)=default |
| | Default copy assignment operator, this does a shallow copy. More...
|
| |
| ArrayOfSetsView & | operator= (ArrayOfSetsView &&)=default |
| | Default move assignment operator, this does a shallow copy. More...
|
| |
| LVARRAY_HOST_DEVICE constexpr ArrayOfSetsView< COL_TYPE, INDEX_TYPE const, BUFFER_TYPE > | toView () const |
| |
| LVARRAY_HOST_DEVICE constexpr ArrayOfSetsView< COL_TYPE const, INDEX_TYPE const, BUFFER_TYPE > | toViewConst () const |
| |
| LVARRAY_HOST_DEVICE constexpr ArrayOfArraysView< COL_TYPE const, INDEX_TYPE const, true, BUFFER_TYPE > | toArrayOfArraysView () const |
| |
| LVARRAY_HOST_DEVICE constexpr INDEX_TYPE_NC | sizeOfSet (INDEX_TYPE const i) const |
| |
| LVARRAY_HOST_DEVICE constexpr INDEX_TYPE_NC | capacityOfSet (INDEX_TYPE const i) const |
| |
| LVARRAY_HOST_DEVICE bool | contains (INDEX_TYPE const i, COL_TYPE const &value) const |
| |
| void | consistencyCheck () const |
| | Verify that the capacity of each set is greater than or equal to the size and that each set is sorted unique. More...
|
| |
| LVARRAY_HOST_DEVICE constexpr ArraySlice< COL_TYPE const, 1, 0, INDEX_TYPE_NC > | operator[] (INDEX_TYPE const i) const |
| |
| LVARRAY_HOST_DEVICE constexpr COL_TYPE const & | operator() (INDEX_TYPE const i, INDEX_TYPE const j) const |
| |
| LVARRAY_HOST_DEVICE bool | insertIntoSet (INDEX_TYPE const i, COL_TYPE const &value) const |
| | Insert a value into the given set. More...
|
| |
| LVARRAY_HOST_DEVICE INDEX_TYPE_NC | insertIntoSet (INDEX_TYPE const i, ITER const first, ITER const last) const |
| | Inserts multiple values into the given set. More...
|
| |
| LVARRAY_HOST_DEVICE bool | removeFromSet (INDEX_TYPE const i, COL_TYPE const &value) const |
| | Remove a value from the given set. More...
|
| |
| LVARRAY_HOST_DEVICE INDEX_TYPE_NC | removeFromSet (INDEX_TYPE const i, ITER const first, ITER const last) const |
| | Removes multiple values from the given set. More...
|
| |
| void | move (MemorySpace const space, bool const touch=true) const |
| | Move this ArrayOfSets to the given memory space. More...
|
| |
| | ArrayOfArraysView (bool) |
| | Protected constructor to be used by parent classes. More...
|
| |
| void | resize (INDEX_TYPE const newSize, INDEX_TYPE const defaultArrayCapacity=0) |
| | Set the number of arrays. More...
|
| |
| void | reserve (INDEX_TYPE const newCapacity) |
| | Reserve space for the given number of arrays. More...
|
| |
| void | reserveValues (INDEX_TYPE const newValueCapacity, BUFFERS &... buffers) |
| | Reserve space for the given number of values. More...
|
| |
| void | compress (BUFFERS &... buffers) |
| | Compress the arrays so that the values of each array are contiguous with no extra capacity in between. More...
|
| |
| void | resizeFromOffsets (INDEX_TYPE const numSubArrays, INDEX_TYPE const *const offsets, BUFFERS &... buffers) |
| | Clears the array and creates a new array with the given number of sub-arrays. More...
|
| |
| void | resizeFromCapacities (INDEX_TYPE const numSubArrays, INDEX_TYPE const *const capacities, BUFFERS &... buffers) |
| | Clears the array and creates a new array with the given number of sub-arrays. More...
|
| |
| void | assimilate (ArrayOfArraysView< COL_TYPE, INDEX_TYPE, CONST_SIZES, BUFFER_TYPE > &&src) |
| | Steal the resources of src, clearing it in the process. More...
|
| |
| void | resizeImpl (INDEX_TYPE const newSize, INDEX_TYPE const defaultArrayCapacity, BUFFERS &... buffers) |
| | Set the number of arrays. More...
|
| |
| void | free (BUFFERS &... buffers) |
| | Destroy all the objects held by this array and free all associated memory. More...
|
| |
| void | setEqualTo (INDEX_TYPE const srcNumArrays, INDEX_TYPE const srcMaxOffset, BUFFER_TYPE< INDEX_TYPE > const &srcOffsets, BUFFER_TYPE< INDEX_TYPE > const &srcSizes, BUFFER_TYPE< COL_TYPE > const &srcValues, PAIRS_OF_BUFFERS &&... pairs) |
| | Set this ArrayOfArraysView equal to the provided arrays. More...
|
| |
| void | setCapacityOfArray (INDEX_TYPE const i, INDEX_TYPE const newCapacity, BUFFERS &... buffers) |
| | Set the capacity of the given array. More...
|
| |
| void | setName (std::string const &name) |
| | Set the name to be displayed whenever the underlying Buffer's user call back is called. More...
|
| |
| | ArrayOfArraysView ()=default |
| | A constructor to create an uninitialized ArrayOfArraysView. More...
|
| |
| | ArrayOfArraysView (ArrayOfArraysView const &)=default |
| | Default copy constructor. More...
|
| |
| LVARRAY_HOST_DEVICE constexpr | ArrayOfArraysView (ArrayOfArraysView &&src) |
| | Default move constructor. More...
|
| |
| LVARRAY_HOST_DEVICE constexpr | ArrayOfArraysView (INDEX_TYPE const numArrays, BUFFER_TYPE< INDEX_TYPE > const &offsets, BUFFER_TYPE< SIZE_TYPE > const &sizes, BUFFER_TYPE< COL_TYPE > const &values) |
| | Construct a new ArrayOfArraysView from the given buffers. More...
|
| |
| ArrayOfArraysView & | operator= (ArrayOfArraysView const &)=default |
| | Default copy assignment operator. More...
|
| |
| LVARRAY_HOST_DEVICE ArrayOfArraysView & | operator= (ArrayOfArraysView &&src) |
| | Move assignment operator.. More...
|
| |
| LVARRAY_HOST_DEVICE constexpr ArrayOfArraysView< COL_TYPE, INDEX_TYPE const, CONST_SIZES, BUFFER_TYPE > | toView () const |
| |
| LVARRAY_HOST_DEVICE constexpr ArrayOfArraysView< COL_TYPE, INDEX_TYPE const, true, BUFFER_TYPE > | toViewConstSizes () const |
| |
| LVARRAY_HOST_DEVICE constexpr ArrayOfArraysView< COL_TYPE const, INDEX_TYPE const, true, BUFFER_TYPE > | toViewConst () const |
| |
| LVARRAY_HOST_DEVICE constexpr INDEX_TYPE_NC | size () const |
| |
| LVARRAY_HOST_DEVICE CONSTEXPR_WITHOUT_BOUNDS_CHECK INDEX_TYPE_NC | sizeOfArray (INDEX_TYPE const i) const |
| |
| LVARRAY_HOST_DEVICE constexpr SIZE_TYPE const * | getSizes () const |
| |
| LVARRAY_HOST_DEVICE constexpr INDEX_TYPE const * | getOffsets () const |
| |
| LVARRAY_HOST_DEVICE constexpr COL_TYPE const * | getValues () const |
| |
| LVARRAY_HOST_DEVICE CONSTEXPR_WITH_NDEBUG INDEX_TYPE_NC | capacity () const |
| |
| LVARRAY_HOST_DEVICE CONSTEXPR_WITHOUT_BOUNDS_CHECK INDEX_TYPE_NC | capacityOfArray (INDEX_TYPE const i) const |
| |
| LVARRAY_HOST_DEVICE constexpr INDEX_TYPE_NC | valueCapacity () const |
| |
| LVARRAY_HOST_DEVICE CONSTEXPR_WITHOUT_BOUNDS_CHECK ArraySlice< COL_TYPE, 1, 0, INDEX_TYPE_NC > | operator[] (INDEX_TYPE const i) const |
| |
| LVARRAY_HOST_DEVICE CONSTEXPR_WITHOUT_BOUNDS_CHECK COL_TYPE & | operator() (INDEX_TYPE const i, INDEX_TYPE const j) const |
| |
| LVARRAY_HOST_DEVICE void | emplaceBack (INDEX_TYPE const i, ARGS &&... args) const |
| | Append a value to an array. More...
|
| |
| LVARRAY_HOST_DEVICE void | emplaceBackAtomic (INDEX_TYPE const i, ARGS &&... args) const |
| | Append a value to an array in a thread safe manner. More...
|
| |
| LVARRAY_HOST_DEVICE void | appendToArray (INDEX_TYPE const i, ITER const first, ITER const last) const |
| | Append values to an array. More...
|
| |
| LVARRAY_HOST_DEVICE void | emplace (INDEX_TYPE const i, INDEX_TYPE const j, ARGS &&... args) const |
| | Insert a value into an array. More...
|
| |
| LVARRAY_HOST_DEVICE void | insertIntoArray (INDEX_TYPE const i, INDEX_TYPE const j, ITER const first, ITER const last) const |
| | Insert values into an array. More...
|
| |
| LVARRAY_HOST_DEVICE void | eraseFromArray (INDEX_TYPE const i, INDEX_TYPE const j, INDEX_TYPE const n=1) const |
| | Erase values from an array. More...
|
| |
| void | registerTouch (MemorySpace const space) const |
| | Touch the memory in space. More...
|
| |
| void | move (MemorySpace const space, bool touch=true) const |
| | Move this ArrayOfArrays to the given memory space. More...
|
| |