File:Cholesky decomposition.png
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Cholesky_decomposition.png (651 × 491 pixels, file size: 35 KB, MIME type: image/png)
File information
Structured data
Captions
Summary
[edit]DescriptionCholesky decomposition.png |
English: (add brief informal description here) |
Date | |
Source | Own work |
Author | Cosmia Nebula |
Puython source code |
---|
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.gridspec import SubplotSpec, GridSpec
# Create the figure and subplots using subplots_mosaic
fig = plt.figure(constrained_layout=True)
spec = GridSpec(1, 2, figure=fig, width_ratios=[1, 1])
# Diagram A: Unit Circle
ax_A = fig.add_subplot(spec[0, 0])
t = np.linspace(0, 2*np.pi, 100)
e_1 = np.array([1, 0])
e_2 = np.array([0, 1])
unit_circle = np.cos(t)[:, np.newaxis] * e_1 + np.sin(t)[:, np.newaxis] * e_2
ax_A.plot(unit_circle[:, 0], unit_circle[:, 1])
ax_A.quiver(0, 0, e_1[0], e_1[1], angles='xy', scale_units='xy', scale=1, color='red', label=r'$e_1}})
ax_A.quiver(0, 0, e_2[0], e_2[1], angles='xy', scale_units='xy', scale=1, color='blue', label=r'$e_2}})
ax_A.grid()
ax_A.set_aspect('equal', adjustable='datalim')
ax_A.set_title('Unit Circle')
ax_A.legend()
# Diagram B: Ellipse
ax_B = fig.add_subplot(spec[0, 1])
v_1 = np.array([1.3, 0])
v_2 = np.array([2, 1])
ellipse = np.cos(t)[:, np.newaxis] * v_1 + np.sin(t)[:, np.newaxis] * v_2
ax_B.plot(ellipse[:, 0], ellipse[:, 1])
ax_B.quiver(0, 0, v_1[0], v_1[1], angles='xy', scale_units='xy', scale=1, color='red', label=r'$v_1}})
ax_B.quiver(0, 0, v_2[0], v_2[1], angles='xy', scale_units='xy', scale=1, color='blue', label=r'$v_2}})
ax_B.grid()
ax_B.set_aspect('equal', adjustable='datalim')
ax_B.set_title('Ellipse')
ax_B.legend()
plt.show()
|
Licensing
[edit]I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 22:59, 30 August 2023 | 651 × 491 (35 KB) | Cosmia Nebula (talk | contribs) | Uploaded while editing "Cholesky decomposition" on en.wikipedia.org |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
- Usage on en.wikipedia.org
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Software used | |
---|---|
Horizontal resolution | 39.37 dpc |
Vertical resolution | 39.37 dpc |
Structured data
Items portrayed in this file
depicts
image/png
c865e04e42fb6ed466dab0b57dfb95573dc9879b
35,911 byte
491 pixel
651 pixel
Hidden categories: