C++
C#
VB
JScript
All

# dense_matrix_generate

Copyright (C) 2005 IENT-RWTH Aachen

template<class F > inline typename DenseMatrix<typename F::result_type>::self dense_matrix_generate(int m, int n, const F &f)
template<class Arg1,class Arg2,class Res> inline typename DenseMatrix<Res >::self dense_matrix_generate(int m, int n, Res (*f)(Arg1,Arg2))

Creates an dense matrix and initalizes it with a function

Parameters

m | Height of the dense vector
n | Width of the dense vector
f | The function to call

Remarks

The function f is called for each position of X

    X(i,j) = f(i,j);

See Also

generate, dense_vector_generate, DenseVector