ord.matrix: Give the Order of a Symmetric Matrix or Half Matrix

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

The dimensions of a symmetric matrix are equal; this value is, by definition, the order of the matrix. For class halfmatrix, the order is found using a quadratic expression with length as an argument.

Usage

1
2
3
4
## S3 method for class 'matrix'
ord(x, ...)
## S3 method for class 'halfmatrix'
ord(x, ...)

Arguments

x

symmetric matrix or halfmatrix

...

extra arguments, ignored

Details

It is an error if x is a matrix but not symmetric. If x is a vector of appropriate length its order can be found by specifying the method explicitly, even if x is not classed as halfmatrix: ord.halfmatrix(x).

Value

scalar numeric

Author(s)

Tim Bergsma

References

http://metrumrg.googlecode.com

See Also

is.square.matrix, isSymmetric.matrix half.matrix

Examples

1
2
3

metrumrg documentation built on May 2, 2019, 5:55 p.m.