public class RCDoubleMatrix1D
extends cern.colt.matrix.DoubleMatrix1D
Modifier and Type | Field and Description |
---|---|
protected cern.colt.list.IntArrayList |
indexes |
protected cern.colt.list.DoubleArrayList |
values |
Constructor and Description |
---|
RCDoubleMatrix1D(double[] values) |
RCDoubleMatrix1D(int length) |
RCDoubleMatrix1D(cern.colt.list.IntArrayList indexes,
cern.colt.list.DoubleArrayList values) |
Modifier and Type | Method and Description |
---|---|
cern.colt.matrix.DoubleMatrix1D |
assign(double[] v) |
cern.colt.matrix.DoubleMatrix1D |
assign(cern.colt.function.DoubleFunction function)
WARNING this only assigns to the non-empty values, for performance reasons.
|
double |
get(int index) |
double |
getQuick(int index) |
cern.colt.matrix.DoubleMatrix1D |
like(int s) |
cern.colt.matrix.DoubleMatrix2D |
like2D(int rows,
int columns) |
void |
setQuick(int column,
double value) |
String |
toString() |
protected cern.colt.matrix.DoubleMatrix1D |
viewSelectionLike(int[] offsets) |
double |
zDotProduct(cern.colt.matrix.DoubleMatrix1D y) |
double |
zSum() |
aggregate, aggregate, assign, assign, assign, assign, cardinality, cardinality, copy, equals, equals, getContent, getNonZeros, getNonZeros, haveSharedCells, haveSharedCellsRaw, like, set, swap, toArray, toArray, view, viewFlip, viewPart, viewSelection, viewSelection, viewSorted, viewStrides, zDotProduct, zDotProduct, zDotProduct
_offset, _rank, checkIndex, checkIndexes, checkRange, checkSize, checkSize, index, setUp, setUp, size, stride, toStringShort, vFlip, vPart, vStrides
protected cern.colt.list.IntArrayList indexes
protected cern.colt.list.DoubleArrayList values
public RCDoubleMatrix1D(double[] values)
values
- public RCDoubleMatrix1D(int length)
length
- public RCDoubleMatrix1D(cern.colt.list.IntArrayList indexes, cern.colt.list.DoubleArrayList values)
indexes
- These MUST be in sorted order.values
- These MuST be in the same order as the indexes, meaning that indexes[0] is the column for
values[0].public cern.colt.matrix.DoubleMatrix1D assign(double[] v)
assign
in class cern.colt.matrix.DoubleMatrix1D
public cern.colt.matrix.DoubleMatrix1D assign(cern.colt.function.DoubleFunction function)
assign
in class cern.colt.matrix.DoubleMatrix1D
DoubleMatrix1D.assign(cern.colt.function.DoubleFunction)
public double get(int index)
get
in class cern.colt.matrix.DoubleMatrix1D
public double getQuick(int index)
getQuick
in class cern.colt.matrix.DoubleMatrix1D
public cern.colt.matrix.DoubleMatrix1D like(int s)
like
in class cern.colt.matrix.DoubleMatrix1D
public cern.colt.matrix.DoubleMatrix2D like2D(int rows, int columns)
like2D
in class cern.colt.matrix.DoubleMatrix1D
public void setQuick(int column, double value)
setQuick
in class cern.colt.matrix.DoubleMatrix1D
public String toString()
toString
in class cern.colt.matrix.DoubleMatrix1D
public double zDotProduct(cern.colt.matrix.DoubleMatrix1D y)
zDotProduct
in class cern.colt.matrix.DoubleMatrix1D
public double zSum()
zSum
in class cern.colt.matrix.DoubleMatrix1D
protected cern.colt.matrix.DoubleMatrix1D viewSelectionLike(int[] offsets)
viewSelectionLike
in class cern.colt.matrix.DoubleMatrix1D
Copyright © 2003–2022 UBC Michael Smith Laboratories. All rights reserved.