# SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.algebra.linear.matrix.doubles.operation

## Class SVEC

• All Implemented Interfaces:
Vector, AbelianGroup<Vector>, BanachSpace<Vector,Real>, HilbertSpace<Vector,Real>, VectorSpace<Vector,Real>, DeepCopyable

public class SVEC
extends DenseVector
SVEC converts a symmetric matrix K = {Kij} into a vector of dimension n(n+1)/2. That is, $\rm{svec}(K) = [k_{1,1}, \sqrt2k_{1,2}, ..., \sqrt2k_{1,n}, k_{2,2}, \sqrt2k_{2,3}, ..., \sqrt2k_{2,n}, ... k_{n,n},]$ SVEC is the inverse operator of MAT.
"Andreas Antoniou, Wu-Sheng Lu, "eq. 14.37," Practical Optimization: Algorithms and Engineering Applications."
• ### Constructor Summary

Constructors
Constructor and Description
SVEC(Matrix A)
Construct the SVEC of a matrix.

• ### Methods inherited from class com.numericalmethod.suanshu.algebra.linear.vector.doubles.dense.DenseVector

add, add, add, angle, deepCopy, divide, divide, equals, get, hashCode, innerProduct, innerProduct, minus, minus, minus, multiply, multiply, norm, norm, opposite, pow, scaled, scaled, set, set, size, toArray, toString, ZERO
• ### Methods inherited from class java.lang.Object

clone, finalize, getClass, notify, notifyAll, wait, wait, wait
• ### Constructor Detail

• #### SVEC

public SVEC(Matrix A)
Construct the SVEC of a matrix.
Parameters:
A - a matrix