forked from pa-m/mat32
-
Notifications
You must be signed in to change notification settings - Fork 0
/
consts.go
54 lines (46 loc) · 1.57 KB
/
consts.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// Copyright ©2016 The Gonum Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package mat32
// TriKind represents the triangularity of the matrix.
type TriKind bool
const (
// Upper specifies an upper triangular matrix.
Upper TriKind = true
// Lower specifies a lower triangular matrix.
Lower TriKind = false
)
// SVDKind specifies the treatment of singular vectors during an SVD
// factorization.
type SVDKind int
const (
// SVDNone specifies that no singular vectors should be computed during
// the decomposition.
SVDNone SVDKind = iota + 1
// SVDThin computes the thin singular vectors, that is, it computes
// A = U~ * Σ * V~^T
// where U~ is of size m×min(m,n), Σ is a diagonal matrix of size min(m,n)×min(m,n)
// and V~ is of size n×min(m,n).
SVDThin
// SVDFull computes the full singular value decomposition,
// A = U * Σ * V^T
// where U is of size m×m, Σ is an m×n diagonal matrix, and V is an n×n matrix.
SVDFull
)
// GSVDKind specifies the treatment of singular vectors during a GSVD
// factorization.
type GSVDKind int
const (
// GSVDU specifies that the U singular vectors should be computed during
// the decomposition.
GSVDU GSVDKind = 1 << iota
// GSVDV specifies that the V singular vectors should be computed during
// the decomposition.
GSVDV
// GSVDQ specifies that the Q singular vectors should be computed during
// the decomposition.
GSVDQ
// GSVDNone specifies that no singular vector should be computed during
// the decomposition.
GSVDNone
)