k4d3 commited on
Commit
b98a3dd
1 Parent(s): a04f7c1

Signed-off-by: Balazs Horvath <[email protected]>

LINEAR_ALGEBRA.md CHANGED
@@ -6,15 +6,17 @@
6
 
7
  ---
8
 
9
- Linear Algebra is a branch of mathematics that deals with vectors, vector spaces and linear transformations.
10
 
11
  ### Vectors
12
 
13
  ---
14
 
15
- Vectors are entities that can be combined. They are often represented as an array of numbers, and each number corresponds to a coordinate in a space. A vector is a quantity that has both magnitude (or length) and direction often used to represent physical quantities such as force or velocity.
16
 
17
- Vectors can be represented in several ways, but one of the most common is an ordered list of numbers, known as a coordinate vector. For example vector $v$ might be represented as $v = [2, 3]$ which means it points 2 units in the `x` direction and 3 units in the `y` direction.
 
 
18
 
19
  #### Vector Addition
20
 
@@ -32,41 +34,59 @@ The dot product of two vectors is a scalar quantity that is the sum of the produ
32
 
33
  The magnitude of a vector $g = [a, b]$ is given by the square root of the sum of the squares of its components. This is denoted as $||g||$ and calculated as $||g|| = \sqrt{a^2 + b^2}$
34
 
35
-
36
  ### Matrices
37
 
38
  ---
39
 
40
  A matrix is a rectangular array of numbers arranged in rows and columns. Matrices are used to represent and manipulate linear equations. Each number in the matrix is called an element or entry. The position of an element is defined by its row number and column number.
41
 
 
 
 
 
42
  #### Matrix Addition and Subtraction
43
 
44
  Matrices can be added or subtracted element by element if they are of the same size. For example if we have two `2x2` matrices $A$ and $B$ then the sum $A+B$ is a new `2x2` matrix where each element is the sum of the corresponding elements in $A$ and $B$.
45
 
 
 
 
46
  #### Scalar Multiplication of a Matrix
47
 
48
  A matrix can be multiplied by a scalar. This is done by multiplying each element of the matrix by the scalar.
49
 
 
 
50
  #### Matrix Multiplication
51
 
52
- The multiplication of two matrices is more complex than their addition. For two matrices to be multiplied, the number of columns in the first matrix must be qual to the number of rows in the second matrix.
 
 
53
 
54
  #### Identity Matrix
55
 
56
  This is a special type of square matrix where all the elements of the principal diagonal are ones and all other elements are zeros. The identity matrix play a similar role in matrix algebra as the number 1 in regular algebra.
57
 
 
 
58
  #### Determinant
59
 
60
  The determinant is a special number that can be calculated from a square matrix. It has many important properties and uses, such as providing the solution of a system of linear equations.
61
 
 
 
62
  #### Inverse
63
 
64
  The inverse of a matrix $A$ is another matrix, denoted as $A^{-1}$, such that when $A$ is multiplied by $A^{-1}$, the result is the identity matrix. Not all matrices have an inverse.
65
 
 
 
66
  #### Transpose
67
 
68
  The transpose of a matrix is a new matrix whose rows are the columns of the original matrix and whose columns are the rows.
69
 
 
 
70
  - **Linear equations** are equations of the first order, representing straight lines in geometry. They are characterized by constants and variables without exponents or products of variables.
71
  - **Eigenvalues** and **Eigenvectors** are special sets of scalars and vectors associated with a matrix. They are fundamental in the study of linear transformations.
72
  - **Orthogonal Matrices** are square matrices whose columns and rows are orthogonal unit vectors (orthonormal vectors)
 
6
 
7
  ---
8
 
9
+ Linear Algebra is a branch of mathematics that deals with vectors, vector spaces and linear transformations. It has wide applications in fields like physics, computer graphics, data analysis and generating yiff.
10
 
11
  ### Vectors
12
 
13
  ---
14
 
15
+ Vectors are mathematical objects that have both magnitude (size) and direction. They can represent physical quantities like force, velocity or displacement. For example, if you're a furry running in a park, your velocity is a vector - it has a speed (magnitude) and a direction you're running in.
16
 
17
+ Vectors are often represented as an array of numbers, where each number corresponds to a coordinate in space. In a 2D plane, a vector $v$ can be represented as an ordered pair: $v = [v_1, v_2]$. Here $v_1$ and $v_2$ are the components of $v$ along the x and y axes respectively.
18
+
19
+ For example, the vector $v = [2, 3]$ can be visualized as an arrow starting at the origin $(0, 0)$ and pointing 2 units in the positive x-direction and 3 units in the positive y-direction.
20
 
21
  #### Vector Addition
22
 
 
34
 
35
  The magnitude of a vector $g = [a, b]$ is given by the square root of the sum of the squares of its components. This is denoted as $||g||$ and calculated as $||g|| = \sqrt{a^2 + b^2}$
36
 
 
37
  ### Matrices
38
 
39
  ---
40
 
41
  A matrix is a rectangular array of numbers arranged in rows and columns. Matrices are used to represent and manipulate linear equations. Each number in the matrix is called an element or entry. The position of an element is defined by its row number and column number.
42
 
43
+ A `2x2` matrix can be represented as follows:
44
+
45
+ $$A = \begin{bmatrix} a & b \\ c & d \end{bmatrix}$$
46
+
47
  #### Matrix Addition and Subtraction
48
 
49
  Matrices can be added or subtracted element by element if they are of the same size. For example if we have two `2x2` matrices $A$ and $B$ then the sum $A+B$ is a new `2x2` matrix where each element is the sum of the corresponding elements in $A$ and $B$.
50
 
51
+ It can be represented as:
52
+ $$A + B = \begin{bmatrix} a1 & b1 \\ c1 & d1 \end{bmatrix} + \begin{bmatrix} a2 & b2 \\ c2 & d2 \end{bmatrix} = \begin{bmatrix} a1+a2 & b1+b2 \\ c1+c2 & d1+d2 \end{bmatrix}$$
53
+
54
  #### Scalar Multiplication of a Matrix
55
 
56
  A matrix can be multiplied by a scalar. This is done by multiplying each element of the matrix by the scalar.
57
 
58
+ $$kA = k \cdot \begin{bmatrix} a & b \\ c & d \end{bmatrix} = \begin{bmatrix} ka & kb \\ kc & kd \end{bmatrix}$$
59
+
60
  #### Matrix Multiplication
61
 
62
+ The multiplication of two matrices is more complex than their addition. For two matrices to be multiplied, the number of columns in the first matrix must be equal to the number of rows in the second matrix.
63
+
64
+ $$AB = \begin{bmatrix} a1 & b1 \\ c1 & d1 \end{bmatrix} \cdot \begin{bmatrix} a2 & b2 \\ c2 & d2 \end{bmatrix} = \begin{bmatrix} a1*a2 + b1*c2 & a1*b2 + b1*d2 \\ c1*a2 + d1*c2 & c1*b2 + d1*d2 \end{bmatrix}$$
65
 
66
  #### Identity Matrix
67
 
68
  This is a special type of square matrix where all the elements of the principal diagonal are ones and all other elements are zeros. The identity matrix play a similar role in matrix algebra as the number 1 in regular algebra.
69
 
70
+ $$I = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}$$
71
+
72
  #### Determinant
73
 
74
  The determinant is a special number that can be calculated from a square matrix. It has many important properties and uses, such as providing the solution of a system of linear equations.
75
 
76
+ $$det(A) = det\begin{bmatrix} a & b \\ c & d \end{bmatrix} = ad - bc$$
77
+
78
  #### Inverse
79
 
80
  The inverse of a matrix $A$ is another matrix, denoted as $A^{-1}$, such that when $A$ is multiplied by $A^{-1}$, the result is the identity matrix. Not all matrices have an inverse.
81
 
82
+ $$A^{-1} = \frac{1}{det(A)} \begin{bmatrix} d & -b \\ -c & a \end{bmatrix}$$
83
+
84
  #### Transpose
85
 
86
  The transpose of a matrix is a new matrix whose rows are the columns of the original matrix and whose columns are the rows.
87
 
88
+ $$A^T = \begin{bmatrix} a & c \\ b & d \end{bmatrix}$$
89
+
90
  - **Linear equations** are equations of the first order, representing straight lines in geometry. They are characterized by constants and variables without exponents or products of variables.
91
  - **Eigenvalues** and **Eigenvectors** are special sets of scalars and vectors associated with a matrix. They are fundamental in the study of linear transformations.
92
  - **Orthogonal Matrices** are square matrices whose columns and rows are orthogonal unit vectors (orthonormal vectors)
README.md CHANGED
@@ -1295,7 +1295,7 @@ by spaceengine, a planet, black background
1295
  - [⬇️ Download](https://huggingface.co/k4d3/yiff_toolkit/resolve/main/ponyxl_loras/blp-v1e400.safetensors?download=true)
1296
  - [📊 Metadata](https://huggingface.co/k4d3/yiff_toolkit/raw/main/ponyxl_loras/blp-v1e400.json)
1297
 
1298
- Replicate [blp](https://e6ai.net/posts?tags=blp)'s unique style of AI art without employing 40 different custom nodes to alter sigmas and noise injection. I recommend you set your CFG to `6` and use `DPM++ 2M Karras` for the sampler and scheduler for a more realistic look or you can use `Euler a` for a more cartoony/dreamy generation with with a low CFG of `6`.
1299
 
1300
  There have been reports that if you use this LoRA with a negative weight of `-0.5` your generations will have a slight sepia tone.
1301
 
 
1295
  - [⬇️ Download](https://huggingface.co/k4d3/yiff_toolkit/resolve/main/ponyxl_loras/blp-v1e400.safetensors?download=true)
1296
  - [📊 Metadata](https://huggingface.co/k4d3/yiff_toolkit/raw/main/ponyxl_loras/blp-v1e400.json)
1297
 
1298
+ Replicate [blp](https://e6ai.net/posts?tags=blp)'s unique style of AI art without employing 40 different custom nodes to alter sigmas and noise injection. I recommend you set your CFG to `6` and use `DPM++ 2M Karras` for the sampler and scheduler for a more realistic look or you can use `Euler a` for a more cartoony/dreamy generation with a low CFG of `6`.
1299
 
1300
  There have been reports that if you use this LoRA with a negative weight of `-0.5` your generations will have a slight sepia tone.
1301
 
static/linear_algebra/furry-running.jpg ADDED

Git LFS Details

  • SHA256: cddc21f185a4079bdf9c54aa7349b87a7f011c44d1b5b36282d750c7ac7947d8
  • Pointer size: 131 Bytes
  • Size of remote file: 147 kB