Struct rusty_machine::math::linalg::vector::Vector
[−]
[src]
pub struct Vector<T> {
pub size: usize,
pub data: Vec<T>,
}Fields
size: usize
data: Vec<T>
Methods
impl<T: Zero + One + Copy> Vector<T>[src]
fn new(data: Vec<T>) -> Vector<T>
fn zeros(size: usize) -> Vector<T>
fn ones(size: usize) -> Vector<T>
impl<T: Copy + One + Zero + Mul<T, Output=T> + Add<T, Output=T>> Vector<T>[src]
Trait Implementations
impl<T: Copy + One + Zero + Mul<T, Output=T>> Mul<T> for Vector<T>[src]
type Output = Vector<T>
The resulting type after applying the * operator
fn mul(self, f: T) -> Vector<T>
The method for the * operator
impl<'a, T: Copy + One + Zero + Mul<T, Output=T>> Mul<T> for &'a Vector<T>[src]
type Output = Vector<T>
The resulting type after applying the * operator
fn mul(self, f: T) -> Vector<T>
The method for the * operator
impl<'a, T: Copy + One + Zero + Mul<T, Output=T>> Mul<&'a T> for Vector<T>[src]
type Output = Vector<T>
The resulting type after applying the * operator
fn mul(self, f: &T) -> Vector<T>
The method for the * operator
impl<'a, 'b, T: Copy + One + Zero + Mul<T, Output=T>> Mul<&'b T> for &'a Vector<T>[src]
type Output = Vector<T>
The resulting type after applying the * operator
fn mul(self, f: &T) -> Vector<T>
The method for the * operator
impl<T: Copy + One + Zero + PartialEq + Div<T, Output=T>> Div<T> for Vector<T>[src]
type Output = Vector<T>
The resulting type after applying the / operator
fn div(self, f: T) -> Vector<T>
The method for the / operator
impl<'a, T: Copy + One + Zero + PartialEq + Div<T, Output=T>> Div<T> for &'a Vector<T>[src]
type Output = Vector<T>
The resulting type after applying the / operator
fn div(self, f: T) -> Vector<T>
The method for the / operator
impl<'a, T: Copy + One + Zero + PartialEq + Div<T, Output=T>> Div<&'a T> for Vector<T>[src]
type Output = Vector<T>
The resulting type after applying the / operator
fn div(self, f: &T) -> Vector<T>
The method for the / operator
impl<'a, 'b, T: Copy + One + Zero + PartialEq + Div<T, Output=T>> Div<&'b T> for &'a Vector<T>[src]
type Output = Vector<T>
The resulting type after applying the / operator
fn div(self, f: &T) -> Vector<T>
The method for the / operator
impl<T: Copy + One + Zero + Add<T, Output=T>> Add<T> for Vector<T>[src]
type Output = Vector<T>
The resulting type after applying the + operator
fn add(self, f: T) -> Vector<T>
The method for the + operator
impl<'a, T: Copy + One + Zero + Add<T, Output=T>> Add<T> for &'a Vector<T>[src]
type Output = Vector<T>
The resulting type after applying the + operator
fn add(self, f: T) -> Vector<T>
The method for the + operator
impl<'a, T: Copy + One + Zero + Add<T, Output=T>> Add<&'a T> for Vector<T>[src]
type Output = Vector<T>
The resulting type after applying the + operator
fn add(self, f: &T) -> Vector<T>
The method for the + operator
impl<'a, 'b, T: Copy + One + Zero + Add<T, Output=T>> Add<&'b T> for &'a Vector<T>[src]
type Output = Vector<T>
The resulting type after applying the + operator
fn add(self, f: &T) -> Vector<T>
The method for the + operator
impl<T: Copy + One + Zero + Add<T, Output=T>> Add<Vector<T>> for Vector<T>[src]
type Output = Vector<T>
The resulting type after applying the + operator
fn add(self, v: Vector<T>) -> Vector<T>
The method for the + operator
impl<'a, T: Copy + One + Zero + Add<T, Output=T>> Add<Vector<T>> for &'a Vector<T>[src]
type Output = Vector<T>
The resulting type after applying the + operator
fn add(self, v: Vector<T>) -> Vector<T>
The method for the + operator
impl<'a, T: Copy + One + Zero + Add<T, Output=T>> Add<&'a Vector<T>> for Vector<T>[src]
type Output = Vector<T>
The resulting type after applying the + operator
fn add(self, v: &Vector<T>) -> Vector<T>
The method for the + operator
impl<'a, 'b, T: Copy + One + Zero + Add<T, Output=T>> Add<&'b Vector<T>> for &'a Vector<T>[src]
type Output = Vector<T>
The resulting type after applying the + operator
fn add(self, v: &Vector<T>) -> Vector<T>
The method for the + operator
impl<T: Copy + One + Zero + Sub<T, Output=T>> Sub<T> for Vector<T>[src]
type Output = Vector<T>
The resulting type after applying the - operator
fn sub(self, f: T) -> Vector<T>
The method for the - operator
impl<'a, T: Copy + One + Zero + Sub<T, Output=T>> Sub<T> for &'a Vector<T>[src]
type Output = Vector<T>
The resulting type after applying the - operator
fn sub(self, f: T) -> Vector<T>
The method for the - operator
impl<'a, T: Copy + One + Zero + Sub<T, Output=T>> Sub<&'a T> for Vector<T>[src]
type Output = Vector<T>
The resulting type after applying the - operator
fn sub(self, f: &T) -> Vector<T>
The method for the - operator
impl<'a, 'b, T: Copy + One + Zero + Sub<T, Output=T>> Sub<&'b T> for &'a Vector<T>[src]
type Output = Vector<T>
The resulting type after applying the - operator
fn sub(self, f: &T) -> Vector<T>
The method for the - operator
impl<T: Copy + One + Zero + Sub<T, Output=T>> Sub<Vector<T>> for Vector<T>[src]
type Output = Vector<T>
The resulting type after applying the - operator
fn sub(self, v: Vector<T>) -> Vector<T>
The method for the - operator
impl<'a, T: Copy + One + Zero + Sub<T, Output=T>> Sub<Vector<T>> for &'a Vector<T>[src]
type Output = Vector<T>
The resulting type after applying the - operator
fn sub(self, v: Vector<T>) -> Vector<T>
The method for the - operator
impl<'a, T: Copy + One + Zero + Sub<T, Output=T>> Sub<&'a Vector<T>> for Vector<T>[src]
type Output = Vector<T>
The resulting type after applying the - operator
fn sub(self, v: &Vector<T>) -> Vector<T>
The method for the - operator
impl<'a, 'b, T: Copy + One + Zero + Sub<T, Output=T>> Sub<&'b Vector<T>> for &'a Vector<T>[src]
type Output = Vector<T>
The resulting type after applying the - operator
fn sub(self, v: &Vector<T>) -> Vector<T>
The method for the - operator
impl<T> Index<usize> for Vector<T>[src]
type Output = T
The returned type after indexing
fn index(&self, idx: usize) -> &T
The method for the indexing (Foo[Bar]) operation