> ## 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.

# Structure sysc::InputComplexScalarData

![][C++]
![][public]

**Definition**: `InputComplexScalarData.hpp` (line 22)

Provide a class for input complex scalar data.

Input scalar data provides read and write access to an array of complex scalars.

## Members

* [empty](#structsysc_1_1InputComplexScalarData_1ad7c8bad4fe00dc8e31160925a811eb5a)
* [getData1](#structsysc_1_1InputComplexScalarData_1ac383892e65a8b8b096c9cab1d3b08c1b)
* [getData2](#structsysc_1_1InputComplexScalarData_1a0a187b765e77776a377608a6e2a3697f)
* [getDataType](#structsysc_1_1InputComplexScalarData_1a19522f922326595ae0eeafbb3807136b)
* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1a2651ceaed447865458a33e21feab6bc4)
* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1aaad5ae16ce141940bf382347bfcde0fc)
* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1a17e9c685d7df19afaab8c8d79a7f3a5e)
* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1a3cb2a7e0408644aa704afe24a3c69680)
* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1a4fd7a610e7b5bbf7e23fafed47354e4b)
* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1af47c2f36650c1a595436f18e53da2cee)
* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1aebb2f21dc9bb49e32ef384ea232fac2d)
* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1a4767c4598c7bf8e358581963281d116f)
* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1a27ebf7b7affe5cd3c54fea4032024546)
* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1aa3af42841050f48442f7c799934464b1)
* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1a87ddce421dd35973a0fb7e5ba971f1ab)
* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1a580988b37a3df87bc3f7b8e54ab44bb1)
* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1a04373a36866867b8d84d2eddca6c123e)
* [isSplitComplex](#structsysc_1_1InputComplexScalarData_1a77de5929a7ea7631649982e5fb3104da)
* [m\_data1](#structsysc_1_1InputComplexScalarData_1a216b4355c68bc40716d4f35430c02698)
* [m\_data2](#structsysc_1_1InputComplexScalarData_1ab91001f99844f033ad55ad3a9309889c)
* [m\_dataType](#structsysc_1_1InputComplexScalarData_1af0025f6a082772a145e8dc3518f421e4)
* [m\_isSplitComplex](#structsysc_1_1InputComplexScalarData_1af2cd5681cfae4f69b6f41c04f23e95e2)
* [m\_size](#structsysc_1_1InputComplexScalarData_1aa528e45207016d04e24ede1521684342)
* [operator=](#structsysc_1_1InputComplexScalarData_1a41da726f542ca165597ce23485817436)
* [operator=](#structsysc_1_1InputComplexScalarData_1a8bea30a09f2c26387e79969ad46ab9cc)
* [size](#structsysc_1_1InputComplexScalarData_1a9034067801b82ce51fb707e45517d08b)

## Private attributes

### Variable m\_dataType

![][private]

**Definition**: `InputComplexScalarData.hpp` (line 259)

```cpp theme={null}
PrimitiveType sysc::InputComplexScalarData::m_dataType {[PrimitiveType::Double](group__SystemCouplingParticipantAPIs.md#group__SystemCouplingParticipantAPIs_1ggad3b1c73e4a63f4d292d65f3db875e844a29843d2c1bb5760f768dcc066dac1ac1)}
```

**Type**: [PrimitiveType](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/namespacesysc#group__SystemCouplingParticipantAPIs_1gad3b1c73e4a63f4d292d65f3db875e844)

### Variable m\_isSplitComplex

![][private]

**Definition**: `InputComplexScalarData.hpp` (line 260)

```cpp theme={null}
bool sysc::InputComplexScalarData::m_isSplitComplex {false}
```

**Type**: bool

### Variable m\_data1

![][private]

**Definition**: `InputComplexScalarData.hpp` (line 262)

```cpp theme={null}
void* sysc::InputComplexScalarData::m_data1 {nullptr}
```

**Type**: void \*

### Variable m\_data2

![][private]

**Definition**: `InputComplexScalarData.hpp` (line 263)

```cpp theme={null}
void* sysc::InputComplexScalarData::m_data2 {nullptr}
```

**Type**: void \*

### Variable m\_size

![][private]

**Definition**: `InputComplexScalarData.hpp` (line 265)

```cpp theme={null}
std::size_t sysc::InputComplexScalarData::m_size {0}
```

**Type**: std::size\_t

## Public functions

### Function InputComplexScalarData

![][public]

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

Provide a constructor for input complex scalar data with compact storage for complex components.

**Parameters**:

* **dataComplex**: - pointer to an array of complex double-precision scalars
* **size**: - number of scalars

**Parameters**:

* double \* **dataComplex**
* std::size\_t **size**

**Return type**:

**References**:

* [size](#structsysc_1_1InputComplexScalarData_1a9034067801b82ce51fb707e45517d08b)

**Referenced by**:

* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1a580988b37a3df87bc3f7b8e54ab44bb1)
* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1a04373a36866867b8d84d2eddca6c123e)
* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1a4fd7a610e7b5bbf7e23fafed47354e4b)
* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1a4767c4598c7bf8e358581963281d116f)
* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1aebb2f21dc9bb49e32ef384ea232fac2d)
* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1aa3af42841050f48442f7c799934464b1)
* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1af47c2f36650c1a595436f18e53da2cee)
* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1a27ebf7b7affe5cd3c54fea4032024546)
* [operator=](#structsysc_1_1InputComplexScalarData_1a41da726f542ca165597ce23485817436)
* [operator=](#structsysc_1_1InputComplexScalarData_1a8bea30a09f2c26387e79969ad46ab9cc)

### Function InputComplexScalarData

![][public]

```cpp theme={null}
sysc::InputComplexScalarData::InputComplexScalarData(double *dataReal, double *dataImaginary, std::size_t size)
```

Create an input complex scalar data access object with split storage for complex components.

**Parameters**:

* **dataReal**: - pointer to an array of double-precision data, that stores the real components of the complex scalars.
* **dataImaginary**: - pointer to an array of double-precision data, that stores the imaginary components of the complex scalars.
* **size**: - number of complex scalars

**Parameters**:

* double \* **dataReal**
* double \* **dataImaginary**
* std::size\_t **size**

**Return type**:

**References**:

* [size](#structsysc_1_1InputComplexScalarData_1a9034067801b82ce51fb707e45517d08b)

### Function InputComplexScalarData

![][public]

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

Provide a constructor for input complex scalar data with compact storage for complex components.

**Parameters**:

* **dataComplex**: - pointer to an array of complex single-precision scalars
* **size**: - number of scalars

**Parameters**:

* float \* **dataComplex**
* std::size\_t **size**

**Return type**:

**References**:

* [sysc::Float](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/group__SystemCouplingParticipantAPIs.md#group__SystemCouplingParticipantAPIs_1ggad3b1c73e4a63f4d292d65f3db875e844af25f11e4d5a18405d2880727956e3c06)
* [size](#structsysc_1_1InputComplexScalarData_1a9034067801b82ce51fb707e45517d08b)

### Function InputComplexScalarData

![][public]

```cpp theme={null}
sysc::InputComplexScalarData::InputComplexScalarData(float *dataReal, float *dataImaginary, std::size_t size)
```

Create an input complex scalar data access object with split storage for complex components.

**Parameters**:

* **dataReal**: - pointer to an array of single-precision data, that stores the real components of the complex scalars.
* **dataImaginary**: - pointer to an array of single-precision data, that stores the imaginary components of the complex scalars.
* **size**: - number of complex scalars

**Parameters**:

* float \* **dataReal**
* float \* **dataImaginary**
* std::size\_t **size**

**Return type**:

**References**:

* [sysc::Float](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/group__SystemCouplingParticipantAPIs.md#group__SystemCouplingParticipantAPIs_1ggad3b1c73e4a63f4d292d65f3db875e844af25f11e4d5a18405d2880727956e3c06)
* [size](#structsysc_1_1InputComplexScalarData_1a9034067801b82ce51fb707e45517d08b)

### Function InputComplexScalarData

![][public]

```cpp theme={null}
sysc::InputComplexScalarData::InputComplexScalarData(std::complex< double > *dataComplex, std::size_t size)
```

Provide a constructor for input complex scalar data with compact storage for complex components.

**Parameters**:

* **dataComplex**: - pointer to an array of complex double-precision scalars
* **size**: - number of scalars

**Parameters**:

* std::complex\< double > \* **dataComplex**
* std::size\_t **size**

**Return type**:

**References**:

* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1a2651ceaed447865458a33e21feab6bc4)
* [size](#structsysc_1_1InputComplexScalarData_1a9034067801b82ce51fb707e45517d08b)

### Function InputComplexScalarData

![][public]

```cpp theme={null}
sysc::InputComplexScalarData::InputComplexScalarData(std::vector< std::complex< double > > &dataComplex)
```

Provide a constructor for input complex scalar data with compact storage for complex components.

**Parameters**:

* **dataComplex**: - reference to the STL vector of complex double-precision data

**Parameters**:

* std::vector\< std::complex\< double > > & **dataComplex**

**Return type**:

**References**:

* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1a2651ceaed447865458a33e21feab6bc4)
* [size](#structsysc_1_1InputComplexScalarData_1a9034067801b82ce51fb707e45517d08b)

### Function InputComplexScalarData

![][public]

```cpp theme={null}
sysc::InputComplexScalarData::InputComplexScalarData(std::vector< double > &dataReal, std::vector< double > &dataImaginary)
```

Create an input complex scalar data access object with split storage for complex components.

**Parameters**:

* **dataReal**: - reference to an STL vector of double-precision data, that stores the real components of the complex scalars.
* **dataImaginary**: - reference to an STL vector of double-precision data, that stores the imaginary components of the complex scalars.

**Parameters**:

* std::vector\< double > & **dataReal**
* std::vector\< double > & **dataImaginary**

**Return type**:

**References**:

* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1a2651ceaed447865458a33e21feab6bc4)
* [size](#structsysc_1_1InputComplexScalarData_1a9034067801b82ce51fb707e45517d08b)

### Function InputComplexScalarData

![][public]

```cpp theme={null}
sysc::InputComplexScalarData::InputComplexScalarData(std::complex< float > *dataComplex, std::size_t size)
```

Provide a constructor for input complex scalar data with compact storage for complex components.

**Parameters**:

* **dataComplex**: - pointer to an array of complex single-precision scalars
* **size**: - number of scalars

**Parameters**:

* std::complex\< float > \* **dataComplex**
* std::size\_t **size**

**Return type**:

**References**:

* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1a2651ceaed447865458a33e21feab6bc4)
* [size](#structsysc_1_1InputComplexScalarData_1a9034067801b82ce51fb707e45517d08b)

### Function InputComplexScalarData

![][public]

```cpp theme={null}
sysc::InputComplexScalarData::InputComplexScalarData(std::vector< std::complex< float > > &dataComplex)
```

Provide a constructor for input complex scalar data with compact storage for complex components.

**Parameters**:

* **dataComplex**: - reference to the STL vector of complex single-precision data

**Parameters**:

* std::vector\< std::complex\< float > > & **dataComplex**

**Return type**:

**References**:

* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1a2651ceaed447865458a33e21feab6bc4)
* [size](#structsysc_1_1InputComplexScalarData_1a9034067801b82ce51fb707e45517d08b)

### Function InputComplexScalarData

![][public]

```cpp theme={null}
sysc::InputComplexScalarData::InputComplexScalarData(std::vector< float > &dataReal, std::vector< float > &dataImaginary)
```

Create an input complex scalar data access object with split storage for complex components.

**Parameters**:

* **dataReal**: - reference to an STL vector of single-precision data, that stores the real components of the complex scalars.
* **dataImaginary**: - reference to an STL vector of single-precision data, that stores the imaginary components of the complex scalars.

**Parameters**:

* std::vector\< float > & **dataReal**
* std::vector\< float > & **dataImaginary**

**Return type**:

**References**:

* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1a2651ceaed447865458a33e21feab6bc4)
* [size](#structsysc_1_1InputComplexScalarData_1a9034067801b82ce51fb707e45517d08b)

### Function InputComplexScalarData

![][public]

```cpp theme={null}
sysc::InputComplexScalarData::InputComplexScalarData()=default
```

Provide a default constructor.

**Return type**:

### Function InputComplexScalarData

![][public]

```cpp theme={null}
sysc::InputComplexScalarData::InputComplexScalarData(const InputComplexScalarData &)=default
```

Provide a copy-constructor.

**Parameters**:

* const [InputComplexScalarData](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/structsysc_1_1InputComplexScalarData.md) &

**Return type**:

**References**:

* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1a2651ceaed447865458a33e21feab6bc4)

### Function InputComplexScalarData

![][public]

```cpp theme={null}
sysc::InputComplexScalarData::InputComplexScalarData(InputComplexScalarData &&)=default
```

Provide a move-constructor.

**Parameters**:

* [InputComplexScalarData](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/structsysc_1_1InputComplexScalarData.md) &&

**Return type**:

**References**:

* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1a2651ceaed447865458a33e21feab6bc4)

### Function operator=

![][public]

```cpp theme={null}
InputComplexScalarData & sysc::InputComplexScalarData::operator=(const InputComplexScalarData &)=default
```

Provide a copy-assign operator.

**Parameters**:

* const [InputComplexScalarData](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/structsysc_1_1InputComplexScalarData.md) &

**Return type**: [InputComplexScalarData](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/structsysc_1_1InputComplexScalarData.md) &

**References**:

* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1a2651ceaed447865458a33e21feab6bc4)

### Function operator=

![][public]

```cpp theme={null}
InputComplexScalarData & sysc::InputComplexScalarData::operator=(InputComplexScalarData &&)=default
```

Provide a move-assign operator.

**Parameters**:

* [InputComplexScalarData](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/structsysc_1_1InputComplexScalarData.md) &&

**Return type**: [InputComplexScalarData](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/structsysc_1_1InputComplexScalarData.md) &

**References**:

* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1a2651ceaed447865458a33e21feab6bc4)

### Function size

![][public]
![][const]

```cpp theme={null}
std::size_t sysc::InputComplexScalarData::size() const noexcept
```

Get the size of data.

**Return type**: std::size\_t

**Referenced by**:

* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1a2651ceaed447865458a33e21feab6bc4)
* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1aaad5ae16ce141940bf382347bfcde0fc)
* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1a17e9c685d7df19afaab8c8d79a7f3a5e)
* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1a3cb2a7e0408644aa704afe24a3c69680)
* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1a4fd7a610e7b5bbf7e23fafed47354e4b)
* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1a4767c4598c7bf8e358581963281d116f)
* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1aebb2f21dc9bb49e32ef384ea232fac2d)
* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1aa3af42841050f48442f7c799934464b1)
* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1af47c2f36650c1a595436f18e53da2cee)
* [InputComplexScalarData](#structsysc_1_1InputComplexScalarData_1a27ebf7b7affe5cd3c54fea4032024546)

### Function empty

![][public]
![][const]

```cpp theme={null}
bool sysc::InputComplexScalarData::empty() const noexcept
```

Check if array "data" is empty.

**Return type**: bool

### Function getDataType

![][public]
![][const]

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

Get the primitive type of data.

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

**Return type**: [sysc::PrimitiveType](https://developer.synopsys.com/docs/system-coupling/system-coupling-participant-library/cpp-reference/namespacesysc#group__SystemCouplingParticipantAPIs_1gad3b1c73e4a63f4d292d65f3db875e844)

### Function isSplitComplex

![][public]
![][const]

```cpp theme={null}
bool sysc::InputComplexScalarData::isSplitComplex() const noexcept
```

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

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

**Return type**: bool

### Function getData1

![][public]
![][const]

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

Get pointer to data1.

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

**Return type**: void \*

### Function getData2

![][public]
![][const]

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

Get pointer to data2.

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

**Return type**: void \*

[private]: https://img.shields.io/badge/-private-red "private"

[public]: https://img.shields.io/badge/-public-brightgreen "public"

[const]: https://img.shields.io/badge/-const-lightblue "const"

[C++]: https://img.shields.io/badge/language-C%2B%2B-blue "C++"
