
org.ojalgo.algebra.VectorSpace Maven / Gradle / Ivy
Show all versions of ojalgo Show documentation
/*
* Copyright 1997-2025 Optimatika
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package org.ojalgo.algebra;
/**
*
* A vector space is a set of objects called vectors, where a vector is a tuple of fields/scalars/numbers.
* Each vector space has two operations: vector addition and scalar multiplication. Eight axioms must be
* satisfied. The first four are the group axioms of the additive group of vectors. The remaining four relates
* to scalar multiplication, and are:
*
*
* - Compatibility of scalar multiplication with field multiplication: a(bV) = (ab)V
* - Identity element of scalar multiplication: 1V = V, where 1 denotes the multiplicative identity of the
* field.
* - Distributivity of scalar multiplication with respect to vector addition: a(U + V) = aU + aV
* - Distributivity of scalar multiplication with respect to field addition: (a + b)V = aV + bV
*
*
* To enable the use of existing Java classes as scalars this interface declares the scalar type to be a
* subclass of {@linkplain Comparable} (think {@linkplain Number}) rather than an implementation of
* {@linkplain Field}.
*
*
* Any field is also a vector space in itself.
*
*
* @param The vector type
* @param The scalar type
* @author apete
* @see Group.Additive
* @see Field
* @see Vector space
* @see Examples of vector spaces
*/
public interface VectorSpace> extends Group.Additive, ScalarOperation.Multiplication {
/**
*
* This method will (most likely) be moved to some other interface in the future! Just have to figure
* out where it fits...
*
*
* The conjugate transpose of a matrix and/or the conjugate of a scalar/field like ComplexNumber or
* Quaternion.
*
*
* The conjugate transpose of a real matrix is simply its transpose.
*
*/
T conjugate();
}