function pop = california_migration_matrix ( pop )

%*****************************************************************************80
%
%% california_migration_matrix() approximates next year's California population.
%
%  Discussion:
%
%    This function reformulates the scalar code as a matrix operation
%    pop = A * pop.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    20 January 2025
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real pop(2): the populations of California and the rest of the US
%    at the end of this year.
%
%  Output:
%
%    real pop(2): the populations next year.
%
  A =  [ ...
    0.70, 0.10; ...
    0.30, 0.90 ];

  pop = ( A * pop' )';
  
  return
end

