I apologize for posting this back to this list - I got an undeliverable
address error when trying to reply directly to you.
The following message to <ian.m.scott@...> was
The reason for the problem:
5.1.0 - Unknown address error 550-'unknown recipient:
Please see the following:
From: Michael Bowers [mailto:mbowers@...]
Sent: Thursday, May 13, 2010 3:35 PM
To: 'Ian Scott'
Subject: RE: [Vxl-users] vnl_copy
Thanks for getting back to me Ian.
I can't find vnl_copy test code under core/vnl/tests. Am I looking in the
wrong place for that test?
In vnl_copy I find the following instantiations:
VNL_COPY_INSTANTIATE_twoway(double, long double);
VNL_COPY_INSTANTIATE_twoway(vcl_complex<double>, vcl_complex<long double>);
There's no instantiation for
vnl_copy< vnl_matrix<double>, vnl_matrix<double> >
vnl_copy< vnl_matrix<float>, vnl_matrix<float> >
Did I miss something? Would it be possible to put this instantiation in
From: Ian Scott [mailto:ian.m.scott@...]
Sent: Thursday, May 13, 2010 10:57 AM
Subject: Re: [Vxl-users] vnl_copy
vnl_copy(const T&, T&)
appears to be instantiated for T = vnl_matrix<double> and
vnl_matrix<float>, amongst others. I committed test code to confirm that.
What other types in particular do you need it instantiated for?
From: <mbowers@......> - 2010-04-28 17:31
> I built a template class
> template <
> typename TInputType,
> typename TOutputType
> class ClassA
> that has members
> vnl_matrix<TInputType> mInput;
> vnl_matrix<TOutputType> mOutput;
> The user can of course instantiate with different types, so when I assign
> from one type to the other I use vnl_copy(mInput, mOutput). My problem
> occurs when mInputType = mOutputType. vnl_copy isn't instantiated for
> this and I get an undefined ref error while linking.
> Is it possible to instantiate the vnl_copy functions for cases where the
> src and destination matrices are the same type?
> Thank you,
> Mike B.