2 #ifndef vnl_matrix_update_h_ 3 #define vnl_matrix_update_h_ 13 # include <vcl_msvc_warnings.h> 29 for (
unsigned i=0;i<nr;++i)
36 for (
unsigned j=nc;j;--j) row[j] += ai*b_data[j];
40 #endif // vnl_matrix_update_h_ An ordinary mathematical matrix.
size_t size() const
Return the length, number of elements, dimension of this vector.
T const * data_block() const
Access the contiguous block storing the elements in the vector. O(1).
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').
An ordinary mathematical matrix.
T const *const * data_array() const
Access the 2D array, so that elements can be accessed with array[row][col] directly.
Mathematical vector class, templated by type of element.
unsigned int rows() const
Return the number of rows.
unsigned int columns() const
Return the number of columns.