Die Suche ergab 3 Treffer

von Einsteigercoder
Samstag 12. Dezember 2020, 16:11
Forum: Wissenschaftliches Rechnen
Thema: Gauß Elimination
Antworten: 4
Zugriffe: 3644

Re: Gauß Elimination

ich krieg jtz bei if b!= n: eine Fehlermeldung
von Einsteigercoder
Samstag 12. Dezember 2020, 01:16
Forum: Wissenschaftliches Rechnen
Thema: Gauß Elimination
Antworten: 4
Zugriffe: 3644

Gauß Elimination

Ich hab ehier ein problem mir wird gesagt das n undefiniert ist woran liegt es?

def gaussian_elimination(A: np.ndarray, b: np.ndarray, use_pivoting: bool = True) -> (np.ndarray, np.ndarray):
"""
Gaussian Elimination of Ax=b with or without pivoting.

Arguments:
A : matrix, representing left ...
von Einsteigercoder
Donnerstag 3. Dezember 2020, 02:02
Forum: Codesnippets
Thema: Hilfe bei Matrix multiplication
Antworten: 2
Zugriffe: 3855

Hilfe bei Matrix multiplication

Kann mir jmd bei dem code hier helfen komme nicht weiter

import numpy as np

from lib import timedcall, plot_2d


def matrix_multiplication(a: np.ndarray, b: np.ndarray) -> np.ndarray:
"""
Calculate product of two matrices a * b.

Arguments:
a : first matrix
b : second matrix

Return:
c ...