public class SparseVector extends Object
Constructor and Description |
---|
SparseVector(int N) |
Modifier and Type | Method and Description |
---|---|
double |
dot(SparseVector b) |
double |
get(int i) |
static void |
main(String[] args) |
int |
nnz() |
double |
norm() |
SparseVector |
plus(SparseVector b) |
void |
put(int i,
double value) |
SparseVector |
scale(double alpha) |
int |
size() |
double |
sum() |
String |
toString() |
public void put(int i, double value)
public double get(int i)
public int nnz()
public int size()
public double dot(SparseVector b)
public double sum()
public double norm()
public SparseVector scale(double alpha)
public SparseVector plus(SparseVector b)
public static void main(String[] args)
Copyright © 2017. All Rights Reserved.