# NM task-centric program program list

List of Numerical Methods programs in Madagascar. An overview of all task-centric pages can be found in the main Task-centric program list.

## Operation on file content

• Generate simple data (spikes, boxes, planes, constants): spike
• Mathematical operations on data files: math
• Scale data: scale
• Rotate a portion of one or more axes in the data hypercube: rotate
• Zero a portion of the dataset: cut
• Extend a dataset by duplicating in the specified axis dimension: spray

## Complex number operations

• Convert real data to complex (by adding zero imaginary part): rtoc
• Extract real part of a complex dataset: real
• Extract imaginary part of a complex dataset: imag
• Create a complex dataset from its real and imaginary parts: cmplx

# Statistical operations on files

## Single-file

• Display dataset attributes: attr
• Compute a histogram of data values: histogram
• Computes what clip value corresponds to a given pclip: quantile
• Clip the data: clip
• One- or two-sided data clipping: clip2
• Percentile clip: pclip
• Threshold float/complex inputs given a constant/varying threshold level: thr
• Soft thresholding: threshold
• Construct incremental minimum or maximum lists from an RSF file: listminmax
• Sort a float/complex vector by absolute values: sort

## Multi-file

• Element by element minimum or maximum of two RSF files: minmax
• Similarity measure between two datasets: similarity

# Mathematics algorithms

## Basic mathematical processes

• Causal integration on the first axis: causint
• Fast Fourier Transform along the first axis (from real to complex): fft1
• FFT transform on extra axis (from complex to complex): fft3
• 3D FFT with centering and Hermitian scaling: fft3d
• Frequency spectra: spectra
• Frequency spectra in 2-D: spectra2
• 1-D Digital Wavelet Transform: dwt
• Multi-dimensional cosine transform: cosft

## Linear Algebra

• Simple matrix multiplication: matmult
• Simple matrix multiplication for complex matrices: cmatmult
• Find eigenvalues and eigenvectors of a symmetric positive definite matrix: dmeig
• Kroneker product with square matrices: kron