Functions
core/vnl/algo/vnl_matrix_update.h File Reference

Function to compute M=M+a*b'. More...

#include <vnl/vnl_vector.h>
#include <vnl/vnl_matrix.h>
#include <vcl_cassert.h>

Go to the source code of this file.

Functions

template<class T >
void vnl_matrix_update (vnl_matrix< T > &M, const vnl_vector< T > &a, const vnl_vector< T > &b)
 Perform rank 1 update of M: M+=(a*b').

Detailed Description

Function to compute M=M+a*b'.

Author:
Tim Cootes

Definition in file vnl_matrix_update.h.


Function Documentation

template<class T >
void vnl_matrix_update ( vnl_matrix< T > &  M,
const vnl_vector< T > &  a,
const vnl_vector< T > &  b 
) [inline]

Perform rank 1 update of M: M+=(a*b').

Requires a.size()==M.rows(), b.size()==M.columns()

Definition at line 17 of file vnl_matrix_update.h.