Misc#

complex_normal(size, *[, precision, device, ...])

Generate complex normal random tensor with unit variance, compile-aware.

db_to_lin(x[, precision, device])

Converts the input [dB] to linear scale.

dbm_to_watt(x_dbm[, precision, device])

Converts the input [dBm] to Watt.

DeepUpdateDict

Dictionary class inheriting from dict enabling nested merging of the dictionary with a new one.

dict_keys_to_int(x)

Converts the string keys of an input dictionary to integers whenever possible.

ebnodb2no(ebno_db, num_bits_per_symbol, coderate)

Computes the noise variance No for a given Eb/No in dB.

hard_decisions(llr)

Transforms LLRs into hard decisions.

Interpolate()

Abstract class template for interpolating data defined on unstructured or rectangular grids.

lin_to_db(x[, precision, device])

Converts the input in linear scale to dB scale.

MCSDecoder(*args[, precision, device])

Class template for mapping a Modulation and Coding Scheme (MCS) index to the corresponding modulation order, i.e., number of bits per symbol, and coderate.

sample_bernoulli(shape, p[, precision, device])

Generates samples from a Bernoulli distribution with probability p.

scalar_to_shaped_tensor(inp, dtype, shape[, ...])

Converts a scalar input to a tensor of specified shape, or validates and casts an existing input tensor.

sim_ber(mc_fun, ebno_dbs, batch_size, ...[, ...])

Simulates until target number of errors is reached and returns BER/BLER.

SingleLinkChannel(num_bits_per_symbol, ...)

Class template for simulating single-link, i.e., single-carrier and single-stream, channels.

SplineGriddataInterpolation()

Interpolates data defined on rectangular or unstructured grids via Scipy's interpolate.RectBivariateSpline and interpolate.griddata, respectively.

to_list(x)

Converts the input to a list.

TransportBlock(*args[, precision, device])

Class template for computing the number and size (measured in number of bits) of code blocks within a transport block, given the modulation order, coderate and the total number of coded bits of a transport block.

watt_to_dbm(x_w[, precision, device])

Converts the input [Watt] to dBm.