public static class Vector.GP extends Vector
Vector
. Also see Matrix.GP2
.Vector.Derived, Vector.Doubles, Vector.GP, Vector.Ints, Vector.Slice, Vector.Strings, Vector.Weighted
Value.Atomic, Value.Bool, Value.Char, Value.Chars, Value.Cts, Value.Defer, Value.Discrete, Value.Enum, Value.Inc_Or, Value.Int, Value.Lambda, Value.List, Value.Maybe, Value.Option, Value.Real, Value.Scannable, Value.Structured, Value.Triv, Value.Tuple
Modifier and Type | Field and Description |
---|---|
protected Value[] |
elts
The array of Values held in 'this' GP.
|
Constructor and Description |
---|
GP(Value[] elts)
Given an array [] of Values, create a Vector.
|
Modifier and Type | Method and Description |
---|---|
Value |
elt(int i)
|
Value[] |
elts()
All the elements (components, fields) as an array; this default
implementation may well be bettered in a sub-class.
|
int |
nElts()
The number of elements (rows) in 'this' Vector.
|
addMore, addMore, AoM, append, append, as_1xn, as_nx1, asDiagonal, asMatrix, asQ, asQrotn, bOp, closes, col, cols, combine, compareTo, constAoM, constNlAoM, constWt, csv, csv, delete, delete, dot, doubles, doubles, doubles, drop, drop, dropLast, elt, elts, eltType, foldl, foldl, foldr, foldr, fromScannable, ints, ints, isRectangular, isSquare, main, map, match, merge, n, nCols, nearlySymmetric, nearlySymmetric, nElts, nlAoM, nlAoM, nlAoM, norm_Cts, norm, normalised, normalised1, normalised2, opens, repeat, rotate, rotate, rowLength, scaled, shape, singleton, slice, sorted, sorted, sorted, strings, sumSq, take, takeLast, times, toSeries, type, uniqueElts, unzip, unzip, uOp, values, weight, weight, weight, weightLike, weightLike, wt, wtMedian, wtNlAoM, wtNlAoM, wts, wts, x, zip, zip
AoM, frth, fst, print, separator, snd, thrd, toString
protected final Value[] elts
public GP(Value[] elts)
public int nElts()
Vector
wts()
.public Value[] elts()
Value.Structured
elts
in class Value.Structured