// Copyright (c) the JPEG XL Project Authors. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file.
#include"lib/jxl/enc_linalg.h"
#include <cmath>
#include"lib/jxl/base/status.h"
namespace jxl {
void ConvertToDiagonal(const Matrix2x2& A, Vector2& diag, Matrix2x2& U) { // Check A is symmetric.
JXL_DASSERT(std::abs(A[0][1] - A[1][0]) < 1e-15);
double b = -(A[0][0] + A[1][1]); double c = A[0][0] * A[1][1] - A[0][1] * A[0][1]; double d = b * b - 4.0 * c;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.