Show the flaw by printing the error message.
Show the flaw by printing the error message.
the method where the error occurred
the error message
Form a matrix from a vector and a scalar, column-wise.
Form a matrix from a vector and a scalar, column-wise.
the first vector -> column 0
the second scalar -> column 1 (repeat s)
Form a matrix from a scalar and a vector, column-wise.
Form a matrix from a scalar and a vector, column-wise.
the first scalar -> column 0 (repeat s)
the second vector -> column 1
Form a matrix from two vectors, column-wise.
Form a matrix from two vectors, column-wise.
the first vector -> column 0
the second vector -> column 1
Form a matrix from a vector and a scalar, row-wise.
Form a matrix from a vector and a scalar, row-wise.
the first vector -> row 0
the second scalar -> row 1 (repeat scalar)
Form a matrix from scalar and a vector, row-wise.
Form a matrix from scalar and a vector, row-wise.
the first scalar -> row 0 (repeat s)
the second vector -> row 1
Form a matrix from two vectors, row-wise.
Form a matrix from two vectors, row-wise.
the first vector -> row 0
the second vector -> row 1
Compute the outer product of vector x and vector y.
Compute the outer product of vector x and vector y. The result of the outer product is a matrix where c(i, j) is the product of i-th element of x with the j-th element of y.
the first vector
the second vector
The MatrixC companion object provides operations for MatrixC that don't require 'this' (like static methods in Java). Typically used to form matrices from vectors.