package
0.0.0-20250215161537-52257d049256
Repository: https://github.com/davidkleiven/gopf.git
Documentation: pkg.go.dev
# Functions
Blur applies a blurring kernel to the data.
Clear sets all elements in the slice to zero.
CmplxEqualApprox returns true if to complex arrays are equal within the passed tolerance.
DivRealScalar divides each element in the comlex array by a real scalar.
Dot calculates the dot product between two slices.
Draw draws the shape onto the passed grid.
ElemwiseAdd adds dst and data and places the result in dst.
ElemwiseMul multiplies dst and data and places the result in dst.
Identity initializes a new identity transformation.
MaxReal calculates the maximum real part.
MinReal returns the minimum real-part value.
NewAffine initializes a new empty transformation.
NewFFTW returns a new FFTWWrapper.
NewGrid initializes a new grid type.
NewProduct returns a new product iterator.
NodeIdx returns the index of the node corresponding to a given typle of index.
Pos converts the node number to position.
ProdInt calculates the product of all the elements in the passed sequence.
RotX returns the rotation transformation corresponding to a rotation about th x-axis c = cos angle, s = sin angle ** ** * 1 0 0 * * 0 c -s * * 0 s c * ** **.
RotY the rotation transformation an angle about the y-axis c = cos angle, s = sin angle ** ** * c 0 s * * 0 1 0 * * -s 0 c * ** **.
RotZ returns the rotation transformation corresonding to rotation about the z-axis by an angle alpha.
Scaling returns a new scaling transformation.
Translation initializes a new translation transformation.
Voronoi assigns each pixel/voxel of the data array to the closest points amongst the generating points in pts.
Wrap wrap pos such that it is inside the box defined by domainsize.
# Structs
Affine is a type used to represent affine transformations.
Ball represents a ball in n dimensions.
BoundingBox represents the bounding box for the shape.
Box represents a rectangle in 2D and a box in 3D.
BoxKernel returns a blurring kernel that is 1 inside a box and zero outside.
FFTWWrapper implemente the FourierTransform interface.
Grid is a type that represents a computatoinal grid.
Product implements a generic product.
RealPartSlice implements the MutableSlice interface.
RealSlice implements the MutableSlice interface when the underlying data is a real array.
# Interfaces
BlurKernel is an interfae for kernel functions used for blurring.
ImmutableSlice is a type for wrapping slices that can be accessed, but not altered slices.
MutableSlice is an interface for slice wrapeprs where the underlying data array can be both accessed and altered.
Shape is represents a generic interface to represent geometrical shapes.