Home > @josh-brown/vector > VectorBuilder
Provides methods for constructing Vectors of a given type
Signature:
export declare class VectorBuilder<S, V extends Vector<S>> The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the VectorBuilder class.
|
Method |
Modifiers |
Description |
|---|---|---|
|
Constructs a vector consisting of two vectors end-to-end | ||
|
Constructs a vector that has the value 1 at one index, and 0 at the others | ||
|
Constructs a Vector of dimension 0 | ||
|
Constructs a vector whose entries are all equal to the provided value | ||
|
Constructs a vector with entries given by _entry = f(i)_ where _f_ is | ||
|
Constructs a vector of all ones | ||
|
Constructs a vector whose entries are (uniformly-distributed) random numbers between | ||
|
Constructs a vector whose entries are normally distributed, with the specified mean and standard deviation | ||
|
Constructs a vector whose entries match the input vector, but offset by a given amount | ||
|
Constructs a vector of all zeros |