Struct gramschmidt::ModifiedGramSchmidt [] [src]

pub struct ModifiedGramSchmidt { /* fields omitted */ }

Methods

impl ModifiedGramSchmidt
[src]

[src]

Reserves the memory for a QR decomposition via a modified Gram Schmidt orthogonalization using the dimensions of a sample matrix.

The resulting object can be used to orthogonalize matrices of the same dimensions.

Example

extern crate gramschmidt;
extern crate ndarray;
extern crate ndarray_rand;
extern crate rand;

use gramschmidt::ModifiedGramSchmidt;
use ndarray::Array2;
use ndarray_rand::RandomExt;
use rand::distributions::Normal;

let matrix = Array2::random((10,10), Normal::new(0.0, 1.0));
let mut cgs = ModifiedGramSchmidt::from_matrix(&matrix);

[src]

Reserves the memory for a QR decomposition via a modified Gram Schmidt orthogonalization using a shape.

The resulting object can be used to orthogonalize matrices of the same dimensions.

Example

extern crate gramschmidt;

use gramschmidt::ModifiedGramSchmidt;

let fortran_order = false;
let mut cgs = ModifiedGramSchmidt::from_shape((10,10), fortran_order);

[src]

Computes a QR decomposition using the modified Gram Schmidt orthonormalization of the matrix a.

The input matrix a has to have exactly the same dimension and memory layout as was previously configured. Panics otherwise.

extern crate gramschmidt;
extern crate ndarray;
extern crate ndarray_rand;
extern crate rand;

use gramschmidt::ModifiedGramSchmidt;
use ndarray::Array2;
use ndarray_rand::RandomExt;
use rand::distributions::Normal;

let matrix = Array2::random((10,10), Normal::new(0.0, 1.0));
let mut cgs = ModifiedGramSchmidt::from_matrix(&matrix);

[src]

Return a reference to the matrix q.

[src]

Return a reference to the matrix q.

Trait Implementations

impl Clone for ModifiedGramSchmidt
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ModifiedGramSchmidt
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations