xTAx {statnet.common} | R Documentation |
Common quadratic forms
Description
Common quadratic forms
Usage
xTAx(x, A)
xAxT(x, A)
xTAx_solve(x, A, ...)
xTAx_qrsolve(x, A, tol = 1e-07, ...)
sandwich_solve(A, B, ...)
Arguments
x |
a vector |
A |
a square matrix |
... |
additional arguments to subroutines |
tol |
tolerance argument passed to the relevant subroutine |
B |
a square matrix |
Details
These are somewhat inspired by emulator::quad.form.inv() and others.
Functions
-
xTAx()
: Evaluatefor vector
and square matrix
.
-
xAxT()
: Evaluatefor vector
and square matrix
.
-
xTAx_solve()
: Evaluatefor vector
and invertible matrix
using
solve()
. -
xTAx_qrsolve()
: Evaluatefor vector
and matrix
using QR decomposition and confirming that
is in the span of
if
is singular; returns
rank
andnullity
as attributes just in case subsequent calculations (e.g., hypothesis test degrees of freedom) are affected. -
sandwich_solve()
: Evaluatefor
a square matrix and
invertible.
[Package statnet.common version 4.9.0 Index]