1/* Copyright 2019 Google LLC. All Rights Reserved.
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is distributed on an "AS IS" BASIS,
11WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14==============================================================================*/
15
16// As a matrix multiplication library, Ruy offers a Mul entry point, performing
17// matrix multiplication. For implementation purposes, it is much nicer to
18// be dealing with the transpose-and-multiply operation, doing
19// Destination = Transpose(LHS) * RHS
20// Indeed, the latter is performing dot-products between the *columns* of LHS
21// and the columns of RHS, whereas a plain matrix multiplication is performing
22// dot-products between the *rows* of LHS and the columns of RHS.
23// That is why TrMul is nicer to implement, allowing for a more symmetric
24// treatment of LHS and RHS.
25
26#ifndef RUY_RUY_TRMUL_H_
27#define RUY_RUY_TRMUL_H_
28
29#include "ruy/ctx.h"
30#include "ruy/trmul_params.h"
31
32namespace ruy {
33
34struct ContextInternal;
35void TrMul(Ctx* ctx, TrMulParams* params);
36
37} // namespace ruy
38
39#endif // RUY_RUY_TRMUL_H_
40