Skip to main content
Definition: InputVectorData.hpp (line 27) Provide a class for input vector data. Input vector data provides read and write access to an array of vector data. The size is the total number of vectors, not the total number of components, i.e. if all data is stored in one contiguous array, then size is 1/3 the size of that array.

Members

Private attributes

Variable m_dataType

Definition: InputVectorData.hpp (line 268)
Type: sysc::PrimitiveType

Variable m_isSplitVector

Definition: InputVectorData.hpp (line 269)
Type: bool

Variable m_data0

Definition: InputVectorData.hpp (line 270)
Type: void *

Variable m_data1

Definition: InputVectorData.hpp (line 271)
Type: void *

Variable m_data2

Definition: InputVectorData.hpp (line 272)
Type: void *

Variable m_size

Definition: InputVectorData.hpp (line 273)
Type: std::size_t

Variable m_dimension

Definition: InputVectorData.hpp (line 274)
Type: Dimension

Public functions

Function InputVectorData

Provide a constructor for input vector data with compact storage. Parameters:
  • data: - pointer to the array of double-precision data.
  • size: - number of vectors.
Parameters:
  • double * data
  • std::size_t size
Return type:

Function InputVectorData

Provide a constructor for 2D output vector data with compact storage. Parameters:
  • data: - pointer to the array of double-precision data.
  • size: - number of vectors.
  • dimension: - dimension of double-precision vector data.
Parameters:
  • double * data
  • std::size_t size
  • Dimension dimension
Return type:

Function InputVectorData

Provide a constructor for input vector data with compact storage. Parameters:
  • data: - pointer to the array of single-precision data.
  • size: - number of vectors.
Parameters:
  • float * data
  • std::size_t size
Return type:

Function InputVectorData

Provide a constructor for 2D output vector data with compact storage. Parameters:
  • data: - pointer to the array of single-precision data.
  • size: - number of vectors.
  • dimension: - dimension of single-precision vector data.
Parameters:
  • float * data
  • std::size_t size
  • Dimension dimension
Return type:

Function InputVectorData

Provide a constructor for input vector data with compact storage. Parameters:
  • data: - reference to the STL vector of double-precision data.
Parameters:
  • std::vector< double > & data
Return type:

Function InputVectorData

Provide a constructor for 2D output vector data with compact storage. Parameters:
  • data: - reference to the STL vector of double-precision data.
  • dimension: - dimension of double-precision vector data.
Parameters:
  • std::vector< double > & data
  • Dimension dimension
Return type:

Function InputVectorData

Provide a constructor for input vector data with compact storage. Parameters:
  • data: - reference to the STL vector of single-precision data.
Parameters:
  • std::vector< float > & data
Return type:

Function InputVectorData

Provide a constructor for 2D output vector data with compact storage. Parameters:
  • data: - reference to the STL vector of single-precision data.
  • dimension: - dimension of single-precision vector data.
Parameters:
  • std::vector< float > & data
  • Dimension dimension
Return type:

Function InputVectorData

Create an input vector data access object with split storage. Parameters:
  • data0: - pointer to the first array of double-precision data.
  • data1: - pointer to the second array of double-precision data.
  • data2: - pointer to the third array of double-precision data.
  • size: - number of vectors.
Parameters:
  • double * data0
  • double * data1
  • double * data2
  • std::size_t size
Return type:

Function InputVectorData

Create an 2D output vector data access object with split storage. Parameters:
  • data0: - pointer to the first array of double-precision data.
  • data1: - pointer to the second array of double-precision data.
  • size: - number of vectors.
Parameters:
  • double * data0
  • double * data1
  • std::size_t size
Return type:

Function InputVectorData

Create an input vector data access object with split storage. Parameters:
  • data0: - pointer to the first array of single-precision data.
  • data1: - pointer to the second array of single-precision data.
  • data2: - pointer to the third array of single-precision data.
  • size: - number of vectors.
Parameters:
  • float * data0
  • float * data1
  • float * data2
  • std::size_t size
Return type:

Function InputVectorData

Create an 2D output vector data access object with split storage. Parameters:
  • data0: - pointer to the first array of single-precision data.
  • data1: - pointer to the second array of single-precision data.
  • size: - number of vectors.
Parameters:
  • float * data0
  • float * data1
  • std::size_t size
Return type:

Function InputVectorData

Create an input vector data access object with split storage. Parameters:
  • data0: - reference to the first STL vector of double-precision data.
  • data1: - reference to the second STL vector of double-precision data.
  • data2: - reference to the third STL vector of double-precision data.
Parameters:
  • std::vector< double > & data0
  • std::vector< double > & data1
  • std::vector< double > & data2
Return type:

Function InputVectorData

Create an 2D output vector data access object with split storage. Parameters:
  • data0: - reference to the first STL vector of double-precision data.
  • data1: - reference to the second STL vector of double-precision data.
Parameters:
  • std::vector< double > & data0
  • std::vector< double > & data1
Return type:

Function InputVectorData

Create an input vector data access object with split storage. Parameters:
  • data0: - reference to the first STL vector of single-precision data.
  • data1: - reference to the second STL vector of single-precision data.
  • data2: - reference to the third STL vector of single-precision data.
Parameters:
  • std::vector< float > & data0
  • std::vector< float > & data1
  • std::vector< float > & data2
Return type:

Function InputVectorData

Create an 2D output vector data access object with split storage. Parameters:
  • data0: - reference to the first STL vector of single-precision data.
  • data1: - reference to the second STL vector of single-precision data.
Parameters:
  • std::vector< float > & data0
  • std::vector< float > & data1
Return type:

Function InputVectorData

Provide a default constructor. Return type:

Function InputVectorData

Provide a copy-constructor. Parameters: Return type:

Function InputVectorData

Provide a move-constructor. Parameters: Return type:

Function operator=

Provide a copy-assign operator. Parameters: Return type: InputVectorData &

Function operator=

Provide a move-assign operator. Parameters: Return type: InputVectorData &

Function size

Get the size of data. Return type: std::size_t

Function empty

Check if array “data” is empty. Return type: bool

Function getDataType

Get the primitive type of data. For internal use only (no back-compatibility guarantee). Return type: sysc::PrimitiveType

Function isSplitVector

Query whether it’s a split or compact vector layout. For internal use only (no back-compatibility guarantee). Return type: bool

Function getData0

Get pointer to data0. For internal use only (no back-compatibility guarantee). Return type: void *

Function getData1

Get pointer to data1. For internal use only (no back-compatibility guarantee). Return type: void *

Function getData2

Get pointer to data2. For internal use only (no back-compatibility guarantee). Return type: void *

Function getDimension

Get the Dimension object. Returns: const Dimension Return type: Dimension References: