Learn R Programming

pgs (version 0.4-0)

VecLat: Generator of VecLat objects

Description

Create an object of class "VecLat" representing a vector lattice.

Usage

VecLat(gmat)

Arguments

gmat
a vector or a matrix. If gmat is a vector, it is transformed into a one-column matrix.

Value

A VecLat-class object.

See Also

VecLat-class, generators for 2D lattices HexLat2, QcxLat2, RectLat2, generators for 3D lattices BCRectLat3, FCRectLat3, RectLat3.

Examples

Run this code
## Planar square lattice
VecLat(diag(2))
## Planar discrete horizontal line
VecLat(c(1,0))

Run the code above in your browser using DataLab