Struct nalgebra::Mat1 [] [src]

pub struct Mat1<N> {
    pub m11: N,
}

Square matrix of dimension 1.

Fields

m11: N

Methods

impl<N> Mat1<N>
[src]

fn new(m11: N) -> Mat1<N>

impl<N: Copy> Mat1<N>
[src]

unsafe fn at_fast(&self, (i, j): (usize, usize)) -> N

unsafe fn set_fast(&mut self, (i, j): (usize, usize), val: N)

Trait Implementations

impl<N: Copy> Copy for Mat1<N>
[src]

impl<N: Debug> Debug for Mat1<N>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<N: Hash> Hash for Mat1<N>
[src]

fn hash<__HN: Hasher>(&self, __arg_0: &mut __HN)

Feeds this value into the state given, updating the hasher as necessary.

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0

Feeds a slice of this type into the state provided.

impl<N: Clone> Clone for Mat1<N>
[src]

fn clone(&self) -> Mat1<N>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<N: Decodable> Decodable for Mat1<N>
[src]

fn decode<__DN: Decoder>(__arg_0: &mut __DN) -> Result<Mat1<N>, __DN::Error>

impl<N: Encodable> Encodable for Mat1<N>
[src]

fn encode<__SN: Encoder>(&self, __arg_0: &mut __SN) -> Result<(), __SN::Error>

impl<N: PartialEq> PartialEq for Mat1<N>
[src]

fn eq(&self, __arg_0: &Mat1<N>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Mat1<N>) -> bool

This method tests for !=.

impl<N: Eq> Eq for Mat1<N>
[src]

impl<N: Zero + One> Eye for Mat1<N>
[src]

fn new_identity(dim: usize) -> Mat1<N>

Return the identity matrix of specified dimension

impl<N: Copy> Repeat<N> for Mat1<N>
[src]

fn repeat(val: N) -> Mat1<N>

Returns a value with filled by val.

impl<N> AsRef<[[N; 1]; 1]> for Mat1<N>
[src]

fn as_ref(&self) -> &[[N; 1]; 1]

Performs the conversion.

impl<N> AsMut<[[N; 1]; 1]> for Mat1<N>
[src]

fn as_mut(&mut self) -> &mut [[N; 1]; 1]

Performs the conversion.

impl<'a, N> From<&'a [[N; 1]; 1]> for &'a Mat1<N>
[src]

fn from(arr: &'a [[N; 1]; 1]) -> &'a Mat1<N>

Performs the conversion.

impl<'a, N> From<&'a mut [[N; 1]; 1]> for &'a mut Mat1<N>
[src]

fn from(arr: &'a mut [[N; 1]; 1]) -> &'a mut Mat1<N>

Performs the conversion.

impl<Nin: Copy, Nout: Copy + Cast<Nin>> Cast<Mat1<Nin>> for Mat1<Nout>
[src]

fn from(v: Mat1<Nin>) -> Mat1<Nout>

Converts an element of type T to an element of type Self.

impl<N: Add<N, Output=N>> Add<Mat1<N>> for Mat1<N>
[src]

type Output = Mat1<N>

The resulting type after applying the + operator

fn add(self, right: Mat1<N>) -> Mat1<N>

The method for the + operator

impl<N: Sub<N, Output=N>> Sub<Mat1<N>> for Mat1<N>
[src]

type Output = Mat1<N>

The resulting type after applying the - operator

fn sub(self, right: Mat1<N>) -> Mat1<N>

The method for the - operator

impl<N: Copy + Add<N, Output=N>> Add<N> for Mat1<N>
[src]

type Output = Mat1<N>

The resulting type after applying the + operator

fn add(self, right: N) -> Mat1<N>

The method for the + operator

impl<N: Copy + Sub<N, Output=N>> Sub<N> for Mat1<N>
[src]

type Output = Mat1<N>

The resulting type after applying the - operator

fn sub(self, right: N) -> Mat1<N>

The method for the - operator

impl<N: Copy + Mul<N, Output=N>> Mul<N> for Mat1<N>
[src]

type Output = Mat1<N>

The resulting type after applying the * operator

fn mul(self, right: N) -> Mat1<N>

The method for the * operator

impl<N: Copy + Div<N, Output=N>> Div<N> for Mat1<N>
[src]

type Output = Mat1<N>

The resulting type after applying the / operator

fn div(self, right: N) -> Mat1<N>

The method for the / operator

impl<N: Absolute<N>> Absolute<Mat1<N>> for Mat1<N>
[src]

fn abs(m: &Mat1<N>) -> Mat1<N>

Computes some absolute value of this object. Typically, this will make all component of a matrix or vector positive. Read more

impl<N: Zero> Zero for Mat1<N>
[src]

fn zero() -> Mat1<N>

Returns the additive identity element of Self, 0. Read more

fn is_zero(&self) -> bool

Returns true if self is equal to the additive identity.

impl<N: Copy + BaseNum> One for Mat1<N>
[src]

fn one() -> Mat1<N>

Returns the multiplicative identity element of Self, 1. Read more

impl<N> Iterable<N> for Mat1<N>
[src]

fn iter<'l>(&'l self) -> Iter<'l, N>

Gets a vector-like read-only iterator.

impl<N> IterableMut<N> for Mat1<N>
[src]

fn iter_mut<'l>(&'l mut self) -> IterMut<'l, N>

Gets a vector-like read-write iterator.

impl<N> Dim for Mat1<N>
[src]

fn dim(_: Option<Mat1<N>>) -> usize

The dimension of the object.

impl<N> Shape<(usize, usize)> for Mat1<N>
[src]

fn shape(&self) -> (usize, usize)

Returns the shape of an indexable object.

impl<N: Copy> Indexable<(usize, usize), N> for Mat1<N>
[src]

fn swap(&mut self, (i1, j1): (usize, usize), (i2, j2): (usize, usize))

Swaps the i-th element of self with its j-th element.

unsafe fn unsafe_at(&self, (i, j): (usize, usize)) -> N

Reads the i-th element of self. Read more

unsafe fn unsafe_set(&mut self, (i, j): (usize, usize), val: N)

Writes to the i-th element of self. Read more

impl<N> Index<(usize, usize)> for Mat1<N>
[src]

type Output = N

The returned type after indexing

fn index(&self, (i, j): (usize, usize)) -> &N

The method for the indexing (Foo[Bar]) operation

impl<N> IndexMut<(usize, usize)> for Mat1<N>
[src]

fn index_mut(&mut self, (i, j): (usize, usize)) -> &mut N

The method for the indexing (Foo[Bar]) operation

impl<N: Copy + BaseNum> Mul<Mat1<N>> for Mat1<N>
[src]

type Output = Mat1<N>

The resulting type after applying the * operator

fn mul(self, right: Mat1<N>) -> Mat1<N>

The method for the * operator

impl<N: Copy + BaseNum> Mul<Vec1<N>> for Mat1<N>
[src]

type Output = Vec1<N>

The resulting type after applying the * operator

fn mul(self, right: Vec1<N>) -> Vec1<N>

The method for the * operator

impl<N: Copy + BaseNum> Mul<Pnt1<N>> for Mat1<N>
[src]

type Output = Pnt1<N>

The resulting type after applying the * operator

fn mul(self, right: Pnt1<N>) -> Pnt1<N>

The method for the * operator

impl<N: Copy> Transpose for Mat1<N>
[src]

fn transpose(&self) -> Mat1<N>

Computes the transpose of a matrix.

fn transpose_mut(&mut self)

In-place version of transposed.

impl<N: ApproxEq<N>> ApproxEq<N> for Mat1<N>
[src]

fn approx_epsilon(_: Option<Mat1<N>>) -> N

Default epsilon for approximation.

fn approx_ulps(_: Option<Mat1<N>>) -> u32

Default ULPs for approximation.

fn approx_eq_eps(&self, other: &Mat1<N>, epsilon: &N) -> bool

Tests approximate equality using a custom epsilon.

fn approx_eq_ulps(&self, other: &Mat1<N>, ulps: u32) -> bool

Tests approximate equality using units in the last place (ULPs)

fn approx_eq(&self, other: &Self) -> bool

Tests approximate equality.

impl<N: Copy + Zero> Row<Vec1<N>> for Mat1<N>
[src]

fn nrows(&self) -> usize

The number of column of self.

fn set_row(&mut self, row: usize, v: Vec1<N>)

Writes the i-th row of self.

fn row(&self, row: usize) -> Vec1<N>

Reads the i-th row of self.

impl<N: Copy + Zero> Col<Vec1<N>> for Mat1<N>
[src]

fn ncols(&self) -> usize

The number of column of this matrix or vector.

fn set_col(&mut self, col: usize, v: Vec1<N>)

Writes the i-th column of self.

fn col(&self, col: usize) -> Vec1<N>

Reads the i-th column of self.

impl<N: Clone + Copy + Zero> ColSlice<DVec1<N>> for Mat1<N>
[src]

fn col_slice(&self, cid: usize, rstart: usize, rend: usize) -> DVec1<N>

Returns a view to a slice of a column of a matrix.

impl<N: Clone + Copy + Zero> RowSlice<DVec1<N>> for Mat1<N>
[src]

fn row_slice(&self, rid: usize, cstart: usize, cend: usize) -> DVec1<N>

Returns a view to a slice of a row of a matrix.

impl<N: Copy + Zero> Diag<Vec1<N>> for Mat1<N>
[src]

fn from_diag(diag: &Vec1<N>) -> Mat1<N>

Creates a new matrix with the given diagonal.

fn diag(&self) -> Vec1<N>

The diagonal of this matrix.

impl<N: BaseNum + Copy> ToHomogeneous<Mat2<N>> for Mat1<N>
[src]

fn to_homogeneous(&self) -> Mat2<N>

Gets the homogeneous coordinates form of this object.

impl<N: BaseNum + Copy> FromHomogeneous<Mat2<N>> for Mat1<N>
[src]

fn from(m: &Mat2<N>) -> Mat1<N>

Builds an object from its homogeneous coordinate form. Read more

impl<N> EigenQR<N, Vec1<N>> for Mat1<N> where N: BaseFloat + ApproxEq<N> + Clone
[src]

fn eigen_qr(&self, eps: &N, niter: usize) -> (Mat1<N>, Vec1<N>)

Computes the eigenvectors and eigenvalues of this matrix.

impl<N: Rand> Rand for Mat1<N>
[src]

fn rand<R: Rng>(rng: &mut R) -> Mat1<N>

Generates a random instance of this type using the specified source of randomness. Read more

impl<N: BaseNum + Cast<f64> + Clone> Mean<Vec1<N>> for Mat1<N>
[src]

fn mean(&self) -> Vec1<N>

Computes the mean of the observations stored by v. Read more

impl<N: Display + BaseFloat> Display for Mat1<N>
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<N: BaseNum + ApproxEq<N>> Inv for Mat1<N>
[src]

fn inv(&self) -> Option<Mat1<N>>

Returns the inverse of m.

fn inv_mut(&mut self) -> bool

In-place version of inverse.

impl<N: BaseNum> Det<N> for Mat1<N>
[src]

fn det(&self) -> N

Returns the determinant of m.