Struct nalgebra::Matrix6 [] [src]

pub struct Matrix6<N> {
    pub m11: N,
    pub m21: N,
    pub m31: N,
    pub m41: N,
    pub m51: N,
    pub m61: N,
    pub m12: N,
    pub m22: N,
    pub m32: N,
    pub m42: N,
    pub m52: N,
    pub m62: N,
    pub m13: N,
    pub m23: N,
    pub m33: N,
    pub m43: N,
    pub m53: N,
    pub m63: N,
    pub m14: N,
    pub m24: N,
    pub m34: N,
    pub m44: N,
    pub m54: N,
    pub m64: N,
    pub m15: N,
    pub m25: N,
    pub m35: N,
    pub m45: N,
    pub m55: N,
    pub m65: N,
    pub m16: N,
    pub m26: N,
    pub m36: N,
    pub m46: N,
    pub m56: N,
    pub m66: N,
}

Square matrix of dimension 6.

Fields

m11: N m21: N m31: N m41: N m51: N m61: N m12: N m22: N m32: N m42: N m52: N m62: N m13: N m23: N m33: N m43: N m53: N m63: N m14: N m24: N m34: N m44: N m54: N m64: N m15: N m25: N m35: N m45: N m55: N m65: N m16: N m26: N m36: N m46: N m56: N m66: N

Methods

impl<N> Matrix6<N>
[src]

fn new(m11: N, m12: N, m13: N, m14: N, m15: N, m16: N, m21: N, m22: N, m23: N, m24: N, m25: N, m26: N, m31: N, m32: N, m33: N, m34: N, m35: N, m36: N, m41: N, m42: N, m43: N, m44: N, m45: N, m46: N, m51: N, m52: N, m53: N, m54: N, m55: N, m56: N, m61: N, m62: N, m63: N, m64: N, m65: N, m66: N) -> Matrix6<N>

impl<N: Copy> Matrix6<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 Matrix6<N>
[src]

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

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

Formats the value using the given formatter.

impl<N: Hash> Hash for Matrix6<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 Matrix6<N>
[src]

fn clone(&self) -> Matrix6<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 Matrix6<N>
[src]

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

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

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

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

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

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

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

This method tests for !=.

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

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

fn new_identity(dimension: usize) -> Matrix6<N>

Return the identity matrix of specified dimension

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

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

Returns a value with filled by val.

impl<N> AsRef<[[N; 6]; 6]> for Matrix6<N>
[src]

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

Performs the conversion.

impl<N> AsMut<[[N; 6]; 6]> for Matrix6<N>
[src]

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

Performs the conversion.

impl<'a, N> From<&'a [[N; 6]; 6]> for &'a Matrix6<N>
[src]

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

Performs the conversion.

impl<'a, N> From<&'a mut [[N; 6]; 6]> for &'a mut Matrix6<N>
[src]

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

Performs the conversion.

impl<'a, N: Clone> From<&'a [[N; 6]; 6]> for Matrix6<N>
[src]

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

Performs the conversion.

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

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

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

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

type Output = Matrix6<N>

The resulting type after applying the + operator

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

The method for the + operator

impl<N: AddAssign<N>> AddAssign<Matrix6<N>> for Matrix6<N>
[src]

fn add_assign(&mut self, right: Matrix6<N>)

The method for the += operator

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

type Output = Matrix6<N>

The resulting type after applying the - operator

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

The method for the - operator

impl<N: SubAssign<N>> SubAssign<Matrix6<N>> for Matrix6<N>
[src]

fn sub_assign(&mut self, right: Matrix6<N>)

The method for the -= operator

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

type Output = Matrix6<N>

The resulting type after applying the + operator

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

The method for the + operator

impl<N: Copy + AddAssign<N>> AddAssign<N> for Matrix6<N>
[src]

fn add_assign(&mut self, right: N)

The method for the += operator

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

type Output = Matrix6<N>

The resulting type after applying the - operator

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

The method for the - operator

impl<N: Copy + SubAssign<N>> SubAssign<N> for Matrix6<N>
[src]

fn sub_assign(&mut self, right: N)

The method for the -= operator

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

type Output = Matrix6<N>

The resulting type after applying the * operator

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

The method for the * operator

impl<N: Copy + MulAssign<N>> MulAssign<N> for Matrix6<N>
[src]

fn mul_assign(&mut self, right: N)

The method for the *= operator

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

type Output = Matrix6<N>

The resulting type after applying the / operator

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

The method for the / operator

impl<N: Copy + DivAssign<N>> DivAssign<N> for Matrix6<N>
[src]

fn div_assign(&mut self, right: N)

The method for the /= operator

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

fn abs(m: &Matrix6<N>) -> Matrix6<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 Matrix6<N>
[src]

fn zero() -> Matrix6<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 Matrix6<N>
[src]

fn one() -> Matrix6<N>

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

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

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

Gets a vector-like read-only iterator.

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

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

Gets a vector-like read-write iterator.

impl<N> Dimension for Matrix6<N>
[src]

fn dimension(_: Option<Matrix6<N>>) -> usize

The dimension of the object.

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

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

Returns the shape of an indexable object.

impl<N: Copy> Indexable<(usize, usize), N> for Matrix6<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 Matrix6<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 Matrix6<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<Matrix6<N>> for Matrix6<N>
[src]

type Output = Matrix6<N>

The resulting type after applying the * operator

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

The method for the * operator

impl<N: Copy + BaseNum> MulAssign<Matrix6<N>> for Matrix6<N>
[src]

fn mul_assign(&mut self, right: Matrix6<N>)

The method for the *= operator

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

type Output = Vector6<N>

The resulting type after applying the * operator

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

The method for the * operator

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

type Output = Point6<N>

The resulting type after applying the * operator

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

The method for the * operator

impl<N: Copy + BaseNum> Inverse for Matrix6<N>
[src]

fn inverse(&self) -> Option<Matrix6<N>>

Returns the inverse of m.

fn inverse_mut(&mut self) -> bool

In-place version of inverse.

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

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

Computes the transpose of a matrix.

fn transpose_mut(&mut self)

In-place version of transposed.

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

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

Default epsilon for approximation.

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

Default ULPs for approximation.

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

Tests approximate equality using a custom epsilon.

fn approx_eq_ulps(&self, other: &Matrix6<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<Vector6<N>> for Matrix6<N>
[src]

fn nrows(&self) -> usize

The number of column of self.

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

Writes the i-th row of self.

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

Reads the i-th row of self.

impl<N: Copy + Zero> Column<Vector6<N>> for Matrix6<N>
[src]

fn ncols(&self) -> usize

The number of column of this matrix or vector.

fn set_column(&mut self, column: usize, v: Vector6<N>)

Writes the i-th column of self.

fn column(&self, column: usize) -> Vector6<N>

Reads the i-th column of self.

impl<N: Clone + Copy + Zero> ColumnSlice<DVector6<N>> for Matrix6<N>
[src]

fn column_slice(&self, cid: usize, rstart: usize, rend: usize) -> DVector6<N>

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

impl<N: Clone + Copy + Zero> RowSlice<DVector6<N>> for Matrix6<N>
[src]

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

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

impl<N: Copy + Zero> Diagonal<Vector6<N>> for Matrix6<N>
[src]

fn from_diagonal(diagonal: &Vector6<N>) -> Matrix6<N>

Creates a new matrix with the given diagonal.

fn diagonal(&self) -> Vector6<N>

The diagonal of this matrix.

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

fn eigen_qr(&self, eps: &N, niter: usize) -> (Matrix6<N>, Vector6<N>)

Computes the eigenvectors and eigenvalues of this matrix.

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

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

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

impl<N: BaseNum + Cast<f64> + Clone> Mean<Vector6<N>> for Matrix6<N>
[src]

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

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

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

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

Formats the value using the given formatter.