Functions
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 <cassert>

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'). More...
 

Detailed Description

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

Author
Tim Cootes

Definition in file vnl_matrix_update.h.

Function Documentation

◆ vnl_matrix_update()

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 20 of file vnl_matrix_update.h.