net.sourceforge.combean.mathprog.linalg.statics
Class SparseVectorStringifier
java.lang.Object
net.sourceforge.combean.mathprog.linalg.statics.SparseVectorStringifier
public class SparseVectorStringifier
- extends Object
Collection of static utility methods for representing sparse vectors as strings.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SparseVectorStringifier
public SparseVectorStringifier()
convertToString
public static <Label> String convertToString(SparseVec<Label> svec)
- Represent a sparse vector as string
- Type Parameters:
Label
- - Parameters:
svec
- the sparse vector to be converted to a string
- Returns:
- string representation of svec