STARS-H
Software for Testing Accuracy, Reliability and Scalability of Hierarchical computations
array Struct Reference

N-dimensional array. More...

#include <starsh.h>

Data Fields

int ndim
 Number of dimensions of array.
 
int * shape
 Shape of array.
 
ssize_t * stride
 Strides of array.
 
char order
 Ordering of array. More...
 
size_t size
 Number of elements of array.
 
char dtype
 Precision of array. More...
 
size_t dtype_size
 Size of one element of array in bytes.
 
size_t nbytes
 Size of data buffer and array structure together in bytes.
 
size_t data_nbytes
 Size of data buffer in bytes.
 
void * data
 Pointer to data buffer.
 

Detailed Description

N-dimensional array.

Simplifies debugging.

Field Documentation

◆ dtype

char array::dtype

Precision of array.

Possile value is ‘'s’,'d','c'or'z'`, much like in names of LAPACK routines.

◆ order

char array::order

Ordering of array.

‘'C’for C order (row-major),'F'` for Fortran order (column-major).


The documentation for this struct was generated from the following file: