1 // Code generated by "go generate gonum.org/v1/gonum/blas”; DO NOT EDIT.
3 // Copyright ©2015 The Gonum Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
9 import "gonum.org/v1/gonum/blas"
11 // SymmetricCols represents a matrix using the conventional column-major storage scheme.
12 type SymmetricCols Symmetric
14 // From fills the receiver with elements from a. The receiver
15 // must have the same dimensions and uplo as a and have adequate
16 // backing data storage.
17 func (t SymmetricCols) From(a Symmetric) {
19 panic("cblas128: mismatched dimension")
22 panic("cblas128: mismatched BLAS uplo")
26 panic("cblas128: bad BLAS uplo")
28 for i := 0; i < a.N; i++ {
29 for j := i; j < a.N; j++ {
30 t.Data[i+j*t.Stride] = a.Data[i*a.Stride+j]
34 for i := 0; i < a.N; i++ {
35 for j := 0; j <= i; j++ {
36 t.Data[i+j*t.Stride] = a.Data[i*a.Stride+j]
42 // From fills the receiver with elements from a. The receiver
43 // must have the same dimensions and uplo as a and have adequate
44 // backing data storage.
45 func (t Symmetric) From(a SymmetricCols) {
47 panic("cblas128: mismatched dimension")
50 panic("cblas128: mismatched BLAS uplo")
54 panic("cblas128: bad BLAS uplo")
56 for i := 0; i < a.N; i++ {
57 for j := i; j < a.N; j++ {
58 t.Data[i*t.Stride+j] = a.Data[i+j*a.Stride]
62 for i := 0; i < a.N; i++ {
63 for j := 0; j <= i; j++ {
64 t.Data[i*t.Stride+j] = a.Data[i+j*a.Stride]
70 // SymmetricBandCols represents a symmetric matrix using the band column-major storage scheme.
71 type SymmetricBandCols SymmetricBand
73 // From fills the receiver with elements from a. The receiver
74 // must have the same dimensions, bandwidth and uplo as a and
75 // have adequate backing data storage.
76 func (t SymmetricBandCols) From(a SymmetricBand) {
78 panic("cblas128: mismatched dimension")
81 panic("cblas128: mismatched bandwidth")
84 panic("cblas128: short stride for source")
87 panic("cblas128: short stride for destination")
90 panic("cblas128: mismatched BLAS uplo")
104 panic("cblas128: bad BLAS uplo")
115 // From fills the receiver with elements from a. The receiver
116 // must have the same dimensions, bandwidth and uplo as a and
117 // have adequate backing data storage.
118 func (t SymmetricBand) From(a SymmetricBandCols) {
120 panic("cblas128: mismatched dimension")
123 panic("cblas128: mismatched bandwidth")
125 if a.Stride < a.K+1 {
126 panic("cblas128: short stride for source")
128 if t.Stride < t.K+1 {
129 panic("cblas128: short stride for destination")
131 if t.Uplo != a.Uplo {
132 panic("cblas128: mismatched BLAS uplo")
135 Rows: t.N, Cols: t.N,
140 Rows: a.N, Cols: a.N,
146 panic("cblas128: bad BLAS uplo")