> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# sysc::InputVectorData Class Reference

Part of [C++ Interfaces for Participant Library](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs)

Provide a class for input vector data.

`#include <InputVectorData.hpp>`

## Public Member Functions

| Type | Name |
| - | - |
| | [InputVectorData](#a9576407cff04f685f890b03512a22f8d) (double \*data, std::size\_t [size](#a421e44762b642930822a119ae59751eb)) Provide a constructor for input vector data with compact storage. |
| | [InputVectorData](#a313b74bc43ee9519a03c7351d5a1b9e9) (double \*data, std::size\_t [size](#a421e44762b642930822a119ae59751eb), [Dimension](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga47c8e4142175574918b84d336780cc7c) dimension) Provide a constructor for 2D output vector data with compact storage. |
| | [InputVectorData](#a353712571f18e0d9c9113a6279fd4bd9) (float \*data, std::size\_t [size](#a421e44762b642930822a119ae59751eb)) Provide a constructor for input vector data with compact storage. |
| | [InputVectorData](#a2b7ad10e29d9b8f9d5cc19bcb4880852) (float \*data, std::size\_t [size](#a421e44762b642930822a119ae59751eb), [Dimension](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga47c8e4142175574918b84d336780cc7c) dimension) Provide a constructor for 2D output vector data with compact storage. |
| | [InputVectorData](#ab859e8fda9352a223489fc9710ebc176) (std::vector\< double > \&data) Provide a constructor for input vector data with compact storage. |
| | [InputVectorData](#a16a3d28c7a9176077b094d0c090ab8e8) (std::vector\< double > \&data, [Dimension](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga47c8e4142175574918b84d336780cc7c) dimension) Provide a constructor for 2D output vector data with compact storage. |
| | [InputVectorData](#a93f8cbc6fd62623d017dd402e75ea60e) (std::vector\< float > \&data) Provide a constructor for input vector data with compact storage. |
| | [InputVectorData](#aa49d763df2ced8b08b5f96d0fd581815) (std::vector\< float > \&data, [Dimension](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga47c8e4142175574918b84d336780cc7c) dimension) Provide a constructor for 2D output vector data with compact storage. |
| | [InputVectorData](#ae46ff595736820fb92cb12797f05d62a) (double \*data0, double \*data1, double \*data2, std::size\_t [size](#a421e44762b642930822a119ae59751eb)) Create an input vector data access object with split storage. |
| | [InputVectorData](#a34e2f29605de1f3d218f61f305231f37) (double \*data0, double \*data1, std::size\_t [size](#a421e44762b642930822a119ae59751eb)) Create an 2D output vector data access object with split storage. |
| | [InputVectorData](#a6290f72e042d38bee53f671eaeef382b) (float \*data0, float \*data1, float \*data2, std::size\_t [size](#a421e44762b642930822a119ae59751eb)) Create an input vector data access object with split storage. |
| | [InputVectorData](#a5e7ec5d5f55d26d79f5beb5f492e8173) (float \*data0, float \*data1, std::size\_t [size](#a421e44762b642930822a119ae59751eb)) Create an 2D output vector data access object with split storage. |
| | [InputVectorData](#ad682d56f49fc69628ad18410cefad197) (std::vector\< double > \&data0, std::vector\< double > \&data1, std::vector\< double > \&data2) Create an input vector data access object with split storage. |
| | [InputVectorData](#a4fdc6e50b3aa55afc3375e9e8a25589f) (std::vector\< double > \&data0, std::vector\< double > \&data1) Create an 2D output vector data access object with split storage. |
| | [InputVectorData](#a6e884069f0f4f3cb1e58d3ee6894407f) (std::vector\< float > \&data0, std::vector\< float > \&data1, std::vector\< float > \&data2) Create an input vector data access object with split storage. |
| | [InputVectorData](#adeceff37584427f9b487228ed1619ad8) (std::vector\< float > \&data0, std::vector\< float > \&data1) Create an 2D output vector data access object with split storage. |
| | [InputVectorData](#aee6e8ae9cc5c83b4f016a68b6825643d) ()=default Provide a default constructor. |
| | [InputVectorData](#a9c493ca8719b46214215275adcaf8a6d) (const [InputVectorData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1InputVectorData.md) &)=default Provide a copy-constructor. |
| | [InputVectorData](#adf89794c1d53ceec3ed34f6c4820530b) ([InputVectorData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1InputVectorData.md) &&)=default Provide a move-constructor. |
| [InputVectorData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1InputVectorData.md) & | [operator=](#a212a413871c450f03411b1db5c9e1961) (const [InputVectorData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1InputVectorData.md) &)=default Provide a copy-assign operator. |
| [InputVectorData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1InputVectorData.md) & | [operator=](#a52b7dd64cf349976d3c4842463783c59) ([InputVectorData](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/classsysc_1_1InputVectorData.md) &&)=default Provide a move-assign operator. |
|  std::size\_t | [size](#a421e44762b642930822a119ae59751eb) () const noexcept Get the size of data. |
|  bool | [empty](#a4ce74ce70cf4f3b150392bc2e622f23e) () const noexcept Check if array "data" is empty. |
| [sysc::PrimitiveType](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#gad3b1c73e4a63f4d292d65f3db875e844) | [getDataType](#a36c2f1ad1395f88faf59a1b6da0db099) () const noexcept Get the primitive type of data. |
| bool | [isSplitVector](#a8b96a950634f0ed4dae6468e88319e53) () const noexcept Query whether it's a split or compact vector layout. |
| void \* | [getData0](#a0cc143921963b2735273f393f8c67bf6) () const noexcept Get pointer to data0. |
| void \* | [getData1](#aa9a69a103005e12cbcb5e4c718b81975) () const noexcept Get pointer to data1. |
| void \* | [getData2](#a13f54dd279d94b92c031266a7d006c70) () const noexcept Get pointer to data2. |
| [Dimension](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs#ga47c8e4142175574918b84d336780cc7c) | [getDimension](#a04a85b9650fe4c0b8f4e3ecbad088c52) () const noexcept Get the Dimension object. |

## Detailed Description

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.

Definition at line [27](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/InputVectorData_8hpp_source) of file [InputVectorData.hpp](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/InputVectorData_8hpp_source).

## Constructor & Destructor Documentation

### InputVectorData() \[1/16]

```cpp theme={null}
sysc::InputVectorData::InputVectorData(
    double * data,
    std::size_t size
)
```

Provide a constructor for input vector data with compact storage.

**Parameters**

| Name | Description |
| - | - |
| data | - pointer to the array of double-precision data. |
| size | - number of vectors. |

### InputVectorData() \[2/16]

```cpp theme={null}
sysc::InputVectorData::InputVectorData(
    double * data,
    std::size_t size,
    Dimension dimension
)
```

Provide a constructor for 2D output vector data with compact storage.

**Parameters**

| Name | Description |
| - | - |
| data | - pointer to the array of double-precision data. |
| size | - number of vectors. |
| dimension | - dimension of double-precision vector data. |

### InputVectorData() \[3/16]

```cpp theme={null}
sysc::InputVectorData::InputVectorData(
    float * data,
    std::size_t size
)
```

Provide a constructor for input vector data with compact storage.

**Parameters**

| Name | Description |
| - | - |
| data | - pointer to the array of single-precision data. |
| size | - number of vectors. |

### InputVectorData() \[4/16]

```cpp theme={null}
sysc::InputVectorData::InputVectorData(
    float * data,
    std::size_t size,
    Dimension dimension
)
```

Provide a constructor for 2D output vector data with compact storage.

**Parameters**

| Name | Description |
| - | - |
| data | - pointer to the array of single-precision data. |
| size | - number of vectors. |
| dimension | - dimension of single-precision vector data. |

### InputVectorData() \[5/16]

```cpp theme={null}
sysc::InputVectorData::InputVectorData(std::vector< double > & data)
```

Provide a constructor for input vector data with compact storage.

**Parameters**

| Name | Description |
| - | - |
| data | - reference to the STL vector of double-precision data. |

### InputVectorData() \[6/16]

```cpp theme={null}
sysc::InputVectorData::InputVectorData(
    std::vector< double > & data,
    Dimension dimension
)
```

Provide a constructor for 2D output vector data with compact storage.

**Parameters**

| Name | Description |
| - | - |
| data | - reference to the STL vector of double-precision data. |
| dimension | - dimension of double-precision vector data. |

### InputVectorData() \[7/16]

```cpp theme={null}
sysc::InputVectorData::InputVectorData(std::vector< float > & data)
```

Provide a constructor for input vector data with compact storage.

**Parameters**

| Name | Description |
| - | - |
| data | - reference to the STL vector of single-precision data. |

### InputVectorData() \[8/16]

```cpp theme={null}
sysc::InputVectorData::InputVectorData(
    std::vector< float > & data,
    Dimension dimension
)
```

Provide a constructor for 2D output vector data with compact storage.

**Parameters**

| Name | Description |
| - | - |
| data | - reference to the STL vector of single-precision data. |
| dimension | - dimension of single-precision vector data. |

### InputVectorData() \[9/16]

```cpp theme={null}
sysc::InputVectorData::InputVectorData(
    double * data0,
    double * data1,
    double * data2,
    std::size_t size
)
```

Create an input vector data access object with split storage.

**Parameters**

| Name | Description |
| - | - |
| 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. |

### InputVectorData() \[10/16]

```cpp theme={null}
sysc::InputVectorData::InputVectorData(
    double * data0,
    double * data1,
    std::size_t size
)
```

Create an 2D output vector data access object with split storage.

**Parameters**

| Name | Description |
| - | - |
| data0 | - pointer to the first array of double-precision data. |
| data1 | - pointer to the second array of double-precision data. |
| size | - number of vectors. |

### InputVectorData() \[11/16]

```cpp theme={null}
sysc::InputVectorData::InputVectorData(
    float * data0,
    float * data1,
    float * data2,
    std::size_t size
)
```

Create an input vector data access object with split storage.

**Parameters**

| Name | Description |
| - | - |
| 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. |

### InputVectorData() \[12/16]

```cpp theme={null}
sysc::InputVectorData::InputVectorData(
    float * data0,
    float * data1,
    std::size_t size
)
```

Create an 2D output vector data access object with split storage.

**Parameters**

| Name | Description |
| - | - |
| data0 | - pointer to the first array of single-precision data. |
| data1 | - pointer to the second array of single-precision data. |
| size | - number of vectors. |

### InputVectorData() \[13/16]

```cpp theme={null}
sysc::InputVectorData::InputVectorData(
    std::vector< double > & data0,
    std::vector< double > & data1,
    std::vector< double > & data2
)
```

Create an input vector data access object with split storage.

**Parameters**

| Name | Description |
| - | - |
| 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. |

### InputVectorData() \[14/16]

```cpp theme={null}
sysc::InputVectorData::InputVectorData(
    std::vector< double > & data0,
    std::vector< double > & data1
)
```

Create an 2D output vector data access object with split storage.

**Parameters**

| Name | Description |
| - | - |
| data0 | - reference to the first STL vector of double-precision data. |
| data1 | - reference to the second STL vector of double-precision data. |

### InputVectorData() \[15/16]

```cpp theme={null}
sysc::InputVectorData::InputVectorData(
    std::vector< float > & data0,
    std::vector< float > & data1,
    std::vector< float > & data2
)
```

Create an input vector data access object with split storage.

**Parameters**

| Name | Description |
| - | - |
| 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. |

### InputVectorData() \[16/16]

```cpp theme={null}
sysc::InputVectorData::InputVectorData(
    std::vector< float > & data0,
    std::vector< float > & data1
)
```

Create an 2D output vector data access object with split storage.

**Parameters**

| Name | Description |
| - | - |
| data0 | - reference to the first STL vector of single-precision data. |
| data1 | - reference to the second STL vector of single-precision data. |

## Member Function Documentation

### getData0()

```cpp theme={null}
void* sysc::InputVectorData::getData0() const
```

`noexcept`

Get pointer to data0.

For internal use only (no back-compatibility guarantee).

### getData1()

```cpp theme={null}
void* sysc::InputVectorData::getData1() const
```

`noexcept`

Get pointer to data1.

For internal use only (no back-compatibility guarantee).

### getData2()

```cpp theme={null}
void* sysc::InputVectorData::getData2() const
```

`noexcept`

Get pointer to data2.

For internal use only (no back-compatibility guarantee).

### getDataType()

```cpp theme={null}
sysc::PrimitiveType sysc::InputVectorData::getDataType() const
```

`noexcept`

Get the primitive type of data.

For internal use only (no back-compatibility guarantee).

### getDimension()

```cpp theme={null}
Dimension sysc::InputVectorData::getDimension() const
```

`noexcept`

Get the Dimension object.

**Returns**

const Dimension

References [sysc::Double](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/CommonTypes_8hpp_source).

### isSplitVector()

```cpp theme={null}
bool sysc::InputVectorData::isSplitVector() const
```

`noexcept`

Query whether it's a split or compact vector layout.

For internal use only (no back-compatibility guarantee).
