dcv.core.utils

Module for various utilities used throughout the library.

Members

Functions

merge
auto merge(Slices slices)

Merge multiple slices into one.

neumann
auto neumann(Slice!(kind, packs, Iterator) tensor, size_t[N] indices...)

Neumann boundary condition test

periodic
auto periodic(Slice!(kind, packs, Iterator) tensor, size_t[N] indices...)

Periodic boundary condition test

staticPack
auto staticPack(Slice!(kind, packs, T*) slice)
staticUnpack
auto staticUnpack(Slice!(kind, packs, T[CH]*) slice)

Pack and unpack (N, T*) slices to (N-1, TM*).

symmetric
auto symmetric(Slice!(kind, packs, Iterator) tensor, size_t[N] indices...)

Symmetric boundary condition test

Static functions

clip
T clip(V v)

Clip value by it's value range.

emptySlice
Slice!(SliceKind.contiguous, packs, V*) emptySlice()

Convenience method to return an empty slice - used mainly as default argument in functions in library.

Templates

BoundaryConditionTest
template BoundaryConditionTest(SliceKind kind, size_t[] packs, T, size_t N)

Alias for generalized boundary condition test function.

isBoundaryCondition
template isBoundaryCondition(alias bc)

Check if given function can perform boundary condition test.

Meta

Authors

Relja Ljubobratovic

License

$(LINK3 http://www.boost.org/LICENSE_1_0.txt, Boost Software License - Version 1.0).