<commit_before>//******************************************************************************
// FILE : function_matrix_resize.cpp
//
// LAST MODIFIED : 7 October 2004
//
// DESCRIPTION :
//==============================================================================

#if defined (ONE_TEMPLATE_DEFINITION_IMPLEMENTED)
#include "computed_variable/function_matrix_resize_implementation.cpp"
#else // defined (ONE_TEMPLATE_DEFINITION_IMPLEMENTED)
#include "computed_variable/function_matrix_resize.hpp"
#endif // defined (ONE_TEMPLATE_DEFINITION_IMPLEMENTED)

#if !defined (AIX)
template<>
Function_handle Function_variable_matrix_resize<Scalar>::evaluate_derivative(
	std::list<Function_variable_handle>& independent_variables)
//******************************************************************************
// LAST MODIFIED : 7 October 2004
//
// DESCRIPTION :
// ???DB.  To be done
//==============================================================================
{
	boost::intrusive_ptr< Function_matrix_resize<Scalar> >
		function_matrix_resize;
	Function_handle result(0);
	Function_size_type order;

	if ((function_matrix_resize=boost::dynamic_pointer_cast<
		Function_matrix_resize<Scalar>,Function>(function()))&&
		(0<(order=independent_variables.size())))
	{
		Function_size_type number_of_columns,number_of_dependent_values,
			number_of_independent_values,number_of_rows;
		boost::intrusive_ptr< Function_matrix<Scalar> > derivative,matrix;

		if ((matrix=boost::dynamic_pointer_cast<Function_matrix<Scalar>,
			Function>(function_matrix_resize->matrix_private->evaluate()))&&
			(row_private<=(number_of_rows=matrix->number_of_rows()))&&
			(column_private<=(number_of_columns=matrix->number_of_columns()))&&
			(derivative=boost::dynamic_pointer_cast<Function_matrix<Scalar>,
			Function>(function_matrix_resize->matrix_private->
			evaluate_derivative(independent_variables)))&&
			(number_of_rows*number_of_columns==
			(number_of_dependent_values=derivative->number_of_rows())))
		{
			Function_size_type dependent_row,i,j;
<commit_msg>Removed unused variables<commit_after>//******************************************************************************
// FILE : function_matrix_resize.cpp
//
// LAST MODIFIED : 18 October 2004
//
// DESCRIPTION :
//==============================================================================

#if defined (ONE_TEMPLATE_DEFINITION_IMPLEMENTED)
#include "computed_variable/function_matrix_resize_implementation.cpp"
#else // defined (ONE_TEMPLATE_DEFINITION_IMPLEMENTED)
#include "computed_variable/function_matrix_resize.hpp"
#endif // defined (ONE_TEMPLATE_DEFINITION_IMPLEMENTED)

#if !defined (AIX)
template<>
Function_handle Function_variable_matrix_resize<Scalar>::evaluate_derivative(
	std::list<Function_variable_handle>& independent_variables)
//******************************************************************************
// LAST MODIFIED : 18 October 2004
//
// DESCRIPTION :
// ???DB.  To be done
//==============================================================================
{
	boost::intrusive_ptr< Function_matrix_resize<Scalar> >
		function_matrix_resize;
	Function_handle result(0);

	if ((function_matrix_resize=boost::dynamic_pointer_cast<
		Function_matrix_resize<Scalar>,Function>(function()))&&
		(0<independent_variables.size()))
	{
		Function_size_type number_of_columns,number_of_independent_values,
			number_of_rows;
		boost::intrusive_ptr< Function_matrix<Scalar> > derivative,matrix;

		if ((matrix=boost::dynamic_pointer_cast<Function_matrix<Scalar>,
			Function>(function_matrix_resize->matrix_private->evaluate()))&&
			(row_private<=(number_of_rows=matrix->number_of_rows()))&&
			(column_private<=(number_of_columns=matrix->number_of_columns()))&&
			(derivative=boost::dynamic_pointer_cast<Function_matrix<Scalar>,
			Function>(function_matrix_resize->matrix_private->
			evaluate_derivative(independent_variables)))&&
			(number_of_rows*number_of_columns==
			derivative->number_of_rows()))
		{
			Function_size_type dependent_row,i,j;

{'fraction_non_alphanumeric': 0.2594246031746032, 'fraction_numerical': 0.006448412698412698, 'mean_word_length': 9.502604166666666, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 43, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4037848', 'n_tokens_mistral': 1239, 'n_tokens_neox': 1104, 'n_words': 138}