 |
LibraryLink Utilities
3.0.1
Modern C++ wrapper over LibraryLink and WSTP
|
Go to the documentation of this file.
5 #ifndef LLU_CONTAINERS_GENERIC_SPARSEARRAY_HPP
6 #define LLU_CONTAINERS_GENERIC_SPARSEARRAY_HPP
81 void setImplicitValueFromTensor(
const GenericTensor& implicitValue);
156 Container cloneImpl()
const override;
162 mint shareCountImpl() const noexcept
override {
167 void passImpl(MArgument& res)
const noexcept
override {
168 MArgument_setMSparseArray(res, this->getContainer());
174 #endif // LLU_CONTAINERS_GENERIC_SPARSEARRAY_HPP
Template of the base class for all generic containers.
Definition: Base.hpp:35
Main namespace of LibraryLink Utilities.
Definition: Queue.h:13
MContainer is an abstract class template for generic containers. Only specializations shall be used.
Definition: Base.hpp:245
MContainer specialization for MSparseArray.
Definition: SparseArray.hpp:23
static const st_WolframSparseLibrary_Functions * SparseArrayAPI()
Get a pointer to structure with function pointers to MSparseArray API.
Definition: LibraryData.cpp:37
MContainer< MArgumentType::SparseArray > SparseArray
SparseArray stands for a GenericSparseArray - type agnostic wrapper over MSparseArray.
Definition: TypedMArgument.h:50
mint getRank() const
Get the rank (number of dimensions) of this sparse array.
Definition: SparseArray.hpp:88
MContainer()=default
Default constructor, the MContainer does not manage any instance of MSparseArray.
GenericTensor definition and implementation.
@ Library
The library (LLU) is responsible for managing the container's memory. Used for Manual passing and con...
Definitions of MContainerBase and MContainer class templates.
MArgumentType
Strongly type enum with possible types of data stored in MArgument.
Definition: MArgument.h:22
MContainer specialization for MTensor.
Definition: Generic/Tensor.hpp:24
MContainer clone() const
Clone this MContainer, performs a deep copy of the underlying MSparseArray.
Definition: SparseArray.hpp:64
mint const * getDimensions() const
Get dimensions of this sparse array.
Definition: SparseArray.hpp:97