Rate This Document
Findability
Accuracy
Completeness
Readability

KesVectorCreate

Interface Definition

KesReturnCode KesVectorCreate(KesVector *X, KesScalarType type, KesVectorFormat format);

Interface Description

Creates a vector and specifies the data type and vector format.

Parameters

Parameter

Type

Description

Input/Output

X

KesVector *

Handle to the vector. It cannot be a null pointer.

Input/Output

type

KesScalarType

Data type.

Input

format

KesVectorFormat

Vector format.

Input

KesVectorFormat

Description

KES_EMPTY_VECTOR

Empty vector.

KES_DENSE

Vectors are stored in a BLAS array in column-first manner. Vector data is specified by the pointer to the leading element, vector length, number of vectors, and the leading dimension.

KesScalarType

Description

Corresponding Type in C

KES_SCALAR_FP32

Single-precision floating-point real type

float

KES_SCALAR_FP32C

Single-precision floating-point complex type

float _Complex

KES_SCALAR_FP64

Double-precision floating-point real type

double

KES_SCALAR_FP64C

Double-precision floating-point complex type

double _Complex