You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: mtimes.m
    path of file: ./repos/scGEAToolbox/tensor_toolbox/@tenmat
    
    the code of the file until where you have to start completion: function C = mtimes(A, B)
%MTIMES Multiplies two tenmat objects.
%
%   C = MTIMES(A,B) computes the product of A and B. The result is a
%   TENMAT object and can be transformed into a tensor.

    
function C = mtimes(A, B)
%MTIMES Multiplies two tenmat objects.
%
%   C = MTIMES(A,B) computes the product of A and B. The result is a
%   TENMAT object and can be transformed into a tensor.
%
%   C = MTIMES(A,B) is called for the syntax 'A * B' when A or B is a
%   TENMAT object.
%
%   See also TENMAT.
%
%Tensor Toolbox for MATLAB: <a href="https://www.tensortoolbox.org">www.tensortoolbox.org</a>


% Handle scalar input
if ~isa(B, 'tenmat') && numel(B) == 1
    C = A;
    C.data = C.data * B;
    return;
end