Struct wee_matrix::core::Matrix [] [src]

pub struct Matrix {
    pub data: Rc<MatrixData>,
    pub view: MatrixRange,
    pub transposed: Transpose,
}

View into matrix data. A single MatrixData structure can back multiple Matrix views, with different range specifications (to denote submatrices) or transpositions.

Fields

Reference to the underlying matrix storage structure.

The range of values from the underlying matrix storage this matrix shows

Whether or not to transpose the data in the underlying matrix storage

Methods

impl Matrix
[src]

[src]

Create a matrix (with new underlying matrix storage) from data vector (in column-major order) with the specificied dimensions

[src]

Create a matrix (with new underlying matrix storage) consisting entirely of the value 1.0, with specified dimensions

[src]

Create a matrix (with new underlying matrix storage) consisting entirely of the value 0.0, with specified dimensions

[src]

Create a matrix (with new underlying matrix storage) with the provided data vector as its diagonal (and zeroes elsewhere)

[src]

Create an identity matrix (with new underlying matrix storage) of given size

[src]

Create a random matrix (with new underlying matrix storage) of given dimensions, with values between 0.0 and 1.0.

[src]

Create a random matrix (with new underlying matrix storage) of given dimensions, with values drawn from a standard normal distribution (mean 0.0, standard deviation 1.0)

[src]

Create a random matrix (with new underlying matrix storage) of given dimensions, with values drawn from a normal distribution with specified mean and standard deviation

[src]

Retrieve the number of rows of this matrix

[src]

Retrieve the number of columns of this matrix

[src]

Retrieve the dimensions of this matrix

[src]

Retrieve the minimum dimension (either number of rows or number of columns, whichever is smaller) of this matrix

[src]

Retrieve the maximum dimension (either number of rows or number of columns, whichever is larger) of this matrix

[src]

Retrieve the number of values in this matrix

[src]

Whether or not this matrix is square

[src]

Whether or not this matrix is a vector (either row or column)

[src]

Whether or not this matrix is a row vector (only consists of one row)

[src]

Whether or not this matrix is a column vector (only consists of one column)

[src]

Generate a new, transposed, matrix view into the underlying matrix data

[src]

Short-cut for transpose() method

[src]

Generate an iterator over the matrix values

[src]

Retrieve a specific value from the matrix

Failures

Returns Err if specified row, column is out of bounds

[src]

Sets a specific value in the matrix

Failures

Returns Err if specified row, column is out of bounds

[src]

Generate a new matrix (with new underlying matrix data, copied from the given matrices) which is composed of a horizontal concatenation of the two given matrices. The new matrix will have the same number of rows, and a number of columns equal to the sum of the number of columns of the given matrices.

Panics

Panics if the two given matrices do not have the same number of rows.

[src]

Generate a new matrix (with new underlying matrix data, copied from the given matrices) which is composed of a vertical concatenation of the two given matrices. The new matrix will have the same number of columns, and a number of rows equal to the sum of the number of rows of the given matrices.

Panics

Panics if the two given matrices do not have the same number of columns.

[src]

Returns whether or not this matrix view is a subview (does not show all of the underlying data)

[src]

Pointer to the underlying matrix data

[src]

Generate a new matrix (with new underlying data) which is of a symmetric matrix copied from either the lower triangular portion or the upper triangular portion of this matrix.

impl Matrix
[src]

[src]

Multiply a matrix by specified scalar, in-place.

impl Matrix
[src]

[src]

Generate a new matrix by applying a function to each value in this matrix

[src]

Generate a new row vector by applying a function to each column of this matrix

[src]

Generate a new column vector by applying a function to each row of this matrix

impl Matrix
[src]

[src]

Computes the reciprocal of the L1-norm condition number of the matrix

[src]

Computes the recpirocal of the Inf-norm condition number of the matrix

[src]

Computes the L2-norm condition number of this matrix

[src]

Computes the condition number using the specified matrix norm

Trait Implementations

impl Debug for Matrix
[src]

[src]

Formats the value using the given formatter.

impl Display for Matrix
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Matrix
[src]

[src]

Copies all of the data represented by this matrix view into a new matrix (with new underlying data).

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Add<Matrix> for Matrix
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<'a> Add<&'a Matrix> for Matrix
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<'a> Add<Matrix> for &'a Matrix
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<'a, 'b> Add<&'b Matrix> for &'a Matrix
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl AddAssign<Matrix> for Matrix
[src]

[src]

Performs the += operation.

impl<'a> AddAssign<&'a Matrix> for Matrix
[src]

[src]

Performs the += operation.

impl Sub<Matrix> for Matrix
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<'a> Sub<&'a Matrix> for Matrix
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<'a> Sub<Matrix> for &'a Matrix
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<'a, 'b> Sub<&'b Matrix> for &'a Matrix
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl SubAssign<Matrix> for Matrix
[src]

[src]

Performs the -= operation.

impl<'a> SubAssign<&'a Matrix> for Matrix
[src]

[src]

Performs the -= operation.

impl Neg for Matrix
[src]

The resulting type after applying the - operator.

[src]

Performs the unary - operation.

impl<'b> Neg for &'b Matrix
[src]

The resulting type after applying the - operator.

[src]

Performs the unary - operation.

impl Mul<Matrix> for Matrix
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl<'a> Mul<&'a Matrix> for Matrix
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl<'a> Mul<Matrix> for &'a Matrix
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl<'a, 'b> Mul<&'b Matrix> for &'a Matrix
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl MulAssign<Matrix> for Matrix
[src]

[src]

Performs the *= operation.

impl<'a> MulAssign<&'a Matrix> for Matrix
[src]

[src]

Performs the *= operation.

impl Mul<f64> for Matrix
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl<'a> Mul<f64> for &'a Matrix
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl MulAssign<f64> for Matrix
[src]

[src]

Performs the *= operation.

impl CloneSub<Range<usize>, Range<usize>> for Matrix
[src]

The submatrix output type

[src]

Clone a new submatrix from this matrix, using specified row and column ranges.

impl CloneSub<Range<usize>, RangeTo<usize>> for Matrix
[src]

The submatrix output type

[src]

Clone a new submatrix from this matrix, using specified row and column ranges.

impl CloneSub<Range<usize>, RangeFrom<usize>> for Matrix
[src]

The submatrix output type

[src]

Clone a new submatrix from this matrix, using specified row and column ranges.

impl CloneSub<Range<usize>, RangeFull> for Matrix
[src]

The submatrix output type

[src]

Clone a new submatrix from this matrix, using specified row and column ranges.

impl CloneSub<RangeTo<usize>, Range<usize>> for Matrix
[src]

The submatrix output type

[src]

Clone a new submatrix from this matrix, using specified row and column ranges.

impl CloneSub<RangeTo<usize>, RangeTo<usize>> for Matrix
[src]

The submatrix output type

[src]

Clone a new submatrix from this matrix, using specified row and column ranges.

impl CloneSub<RangeTo<usize>, RangeFrom<usize>> for Matrix
[src]

The submatrix output type

[src]

Clone a new submatrix from this matrix, using specified row and column ranges.

impl CloneSub<RangeTo<usize>, RangeFull> for Matrix
[src]

The submatrix output type

[src]

Clone a new submatrix from this matrix, using specified row and column ranges.

impl CloneSub<RangeFrom<usize>, Range<usize>> for Matrix
[src]

The submatrix output type

[src]

Clone a new submatrix from this matrix, using specified row and column ranges.

impl CloneSub<RangeFrom<usize>, RangeTo<usize>> for Matrix
[src]

The submatrix output type

[src]

Clone a new submatrix from this matrix, using specified row and column ranges.

impl CloneSub<RangeFrom<usize>, RangeFrom<usize>> for Matrix
[src]

The submatrix output type

[src]

Clone a new submatrix from this matrix, using specified row and column ranges.

impl CloneSub<RangeFrom<usize>, RangeFull> for Matrix
[src]

The submatrix output type

[src]

Clone a new submatrix from this matrix, using specified row and column ranges.

impl CloneSub<RangeFull, Range<usize>> for Matrix
[src]

The submatrix output type

[src]

Clone a new submatrix from this matrix, using specified row and column ranges.

impl CloneSub<RangeFull, RangeTo<usize>> for Matrix
[src]

The submatrix output type

[src]

Clone a new submatrix from this matrix, using specified row and column ranges.

impl CloneSub<RangeFull, RangeFrom<usize>> for Matrix
[src]

The submatrix output type

[src]

Clone a new submatrix from this matrix, using specified row and column ranges.

impl CloneSub<RangeFull, RangeFull> for Matrix
[src]

The submatrix output type

[src]

Clone a new submatrix from this matrix, using specified row and column ranges.

impl CloneSub<usize, Range<usize>> for Matrix
[src]

The submatrix output type

[src]

Clone a new submatrix from this matrix, using specified row and column ranges.

impl CloneSub<usize, RangeTo<usize>> for Matrix
[src]

The submatrix output type

[src]

Clone a new submatrix from this matrix, using specified row and column ranges.

impl CloneSub<usize, RangeFrom<usize>> for Matrix
[src]

The submatrix output type

[src]

Clone a new submatrix from this matrix, using specified row and column ranges.

impl CloneSub<usize, RangeFull> for Matrix
[src]

The submatrix output type

[src]

Clone a new submatrix from this matrix, using specified row and column ranges.

impl CloneSub<Range<usize>, usize> for Matrix
[src]

The submatrix output type

[src]

Clone a new submatrix from this matrix, using specified row and column ranges.

impl CloneSub<RangeTo<usize>, usize> for Matrix
[src]

The submatrix output type

[src]

Clone a new submatrix from this matrix, using specified row and column ranges.

impl CloneSub<RangeFrom<usize>, usize> for Matrix
[src]

The submatrix output type

[src]

Clone a new submatrix from this matrix, using specified row and column ranges.

impl CloneSub<RangeFull, usize> for Matrix
[src]

The submatrix output type

[src]

Clone a new submatrix from this matrix, using specified row and column ranges.

impl SubMatrix<Range<usize>, Range<usize>> for Matrix
[src]

The submatrix output type

[src]

Create a new submatrix view from this matrix, using specified row and column ranges.

impl SubMatrix<Range<usize>, RangeTo<usize>> for Matrix
[src]

The submatrix output type

[src]

Create a new submatrix view from this matrix, using specified row and column ranges.

impl SubMatrix<Range<usize>, RangeFrom<usize>> for Matrix
[src]

The submatrix output type

[src]

Create a new submatrix view from this matrix, using specified row and column ranges.

impl SubMatrix<Range<usize>, RangeFull> for Matrix
[src]

The submatrix output type

[src]

Create a new submatrix view from this matrix, using specified row and column ranges.

impl SubMatrix<RangeTo<usize>, Range<usize>> for Matrix
[src]

The submatrix output type

[src]

Create a new submatrix view from this matrix, using specified row and column ranges.

impl SubMatrix<RangeTo<usize>, RangeTo<usize>> for Matrix
[src]

The submatrix output type

[src]

Create a new submatrix view from this matrix, using specified row and column ranges.

impl SubMatrix<RangeTo<usize>, RangeFrom<usize>> for Matrix
[src]

The submatrix output type

[src]

Create a new submatrix view from this matrix, using specified row and column ranges.

impl SubMatrix<RangeTo<usize>, RangeFull> for Matrix
[src]

The submatrix output type

[src]

Create a new submatrix view from this matrix, using specified row and column ranges.

impl SubMatrix<RangeFrom<usize>, Range<usize>> for Matrix
[src]

The submatrix output type

[src]

Create a new submatrix view from this matrix, using specified row and column ranges.

impl SubMatrix<RangeFrom<usize>, RangeTo<usize>> for Matrix
[src]

The submatrix output type

[src]

Create a new submatrix view from this matrix, using specified row and column ranges.

impl SubMatrix<RangeFrom<usize>, RangeFrom<usize>> for Matrix
[src]

The submatrix output type

[src]

Create a new submatrix view from this matrix, using specified row and column ranges.

impl SubMatrix<RangeFrom<usize>, RangeFull> for Matrix
[src]

The submatrix output type

[src]

Create a new submatrix view from this matrix, using specified row and column ranges.

impl SubMatrix<RangeFull, Range<usize>> for Matrix
[src]

The submatrix output type

[src]

Create a new submatrix view from this matrix, using specified row and column ranges.

impl SubMatrix<RangeFull, RangeTo<usize>> for Matrix
[src]

The submatrix output type

[src]

Create a new submatrix view from this matrix, using specified row and column ranges.

impl SubMatrix<RangeFull, RangeFrom<usize>> for Matrix
[src]

The submatrix output type

[src]

Create a new submatrix view from this matrix, using specified row and column ranges.

impl SubMatrix<RangeFull, RangeFull> for Matrix
[src]

The submatrix output type

[src]

Create a new submatrix view from this matrix, using specified row and column ranges.

impl SubMatrix<Range<usize>, usize> for Matrix
[src]

The submatrix output type

[src]

Create a new submatrix view from this matrix, using specified row and column ranges.

impl SubMatrix<RangeTo<usize>, usize> for Matrix
[src]

The submatrix output type

[src]

Create a new submatrix view from this matrix, using specified row and column ranges.

impl SubMatrix<RangeFrom<usize>, usize> for Matrix
[src]

The submatrix output type

[src]

Create a new submatrix view from this matrix, using specified row and column ranges.

impl SubMatrix<RangeFull, usize> for Matrix
[src]

The submatrix output type

[src]

Create a new submatrix view from this matrix, using specified row and column ranges.

impl SubMatrix<usize, Range<usize>> for Matrix
[src]

The submatrix output type

[src]

Create a new submatrix view from this matrix, using specified row and column ranges.

impl SubMatrix<usize, RangeTo<usize>> for Matrix
[src]

The submatrix output type

[src]

Create a new submatrix view from this matrix, using specified row and column ranges.

impl SubMatrix<usize, RangeFrom<usize>> for Matrix
[src]

The submatrix output type

[src]

Create a new submatrix view from this matrix, using specified row and column ranges.

impl SubMatrix<usize, RangeFull> for Matrix
[src]

The submatrix output type

[src]

Create a new submatrix view from this matrix, using specified row and column ranges.

impl LUDecompose for Matrix
[src]

How this decomposition will store permutations

[src]

Decompose into an LU decomposition structure

impl QRDecompose for Matrix
[src]

How the decomposition will store the scalar factors for the elementary reflectors (a.k.a. Householder reflections). See LAPACK's dgeqrfp for more details. Read more

[src]

Decompose into a a QR decomposition structure

impl CholeskyDecompose for Matrix
[src]

[src]

Decompose into a cholesky decomposition structure.

impl EigenDecompose for Matrix
[src]

Storage type for eigenvalues

[src]

Perform eigendecomposition into eigenvalue / eigenvector decomposition structure.

impl SingularValueDecompose for Matrix
[src]

Storage type for singular values

[src]

Perform singular value decomposition into SVD structure.

impl Solve for Matrix
[src]

The right-hand side type (the type of B in the equation AX=B)

The output (solution) type (the type of X in the equation AX=B)

[src]

Solve the equation AX=B for X. Solution can either be exact (if possible) or approximate. Shortcut for calling solve_exact or solve_approx. Read more

[src]

Solve the equation AX=B for the exact solution X Read more

[src]

Solve the equation AX=B for the exact solution X. Assumes A is a symmetric matrix. Only the upper-triangular portion of A is considered; no failure occurs if A is not symmetric. Read more

[src]

Solve the equation AX=B for the approximate solution X. Read more

[src]

Compute the inverse of A. Read more

impl GramSolve for Matrix
[src]

The right-hand side type (the type of B in the equation A'AX=B)

The output (solution) type (the type of X in the equation A'AX=B)

[src]

Solve the equation A'AX=B for the exact solution X Read more

impl VectorNorm for Matrix
[src]

[src]

Compute the specified norm type on the vector. Read more

impl MatrixNorm for Matrix
[src]

[src]

Compute the specified matrix norm type