cvc_to_raw_cf: Convert correlation function read from CVC HDF5 or AFF format...

View source: R/cvc_readutils.R

cvc_to_raw_cfR Documentation

Convert correlation function read from CVC HDF5 or AFF format to 'raw_cf'

Description

Given a numeric vector of alternating real and imaginary parts of a correlation function, creates an object of class 'raw_cf' with a single measurement, inferring Time from the passed numeric vector while the shape of the internal dimensions has to be specified explicitly if larger than one by one (c(1,1)).

Usage

cvc_to_raw_cf(cf_dat, dims = c(1, 1))

Arguments

cf_dat

Numeric vector of alternating real and imaginary parts of a correlation function. Ordering of the input should be complex, internal dimensions, time (left to right, fastest to slowest).

dims

Integer vector with the sizes of the internal dimensions. For example, c(4,4) for spin correlators.

Value

raw_cf object with a data member which contains the data (as complex numbers) in the shape c(1,nts,dims), where nts is the number of time slices inferred from the length of cfdat and the product of the internal dimensions dims.


hadron documentation built on Sept. 9, 2022, 5:06 p.m.