# Path: alphafold/model/geometry/struct_of_array.py
# def get_item(instance, key):
# def get_shape(instance):
# def get_len(instance):
# def get_dtype(instance):
# def replace(instance, **kwargs):
# def post_init(instance):
# def flatten(instance):
# def make_metadata_class(cls):
# def get_fields(cls_or_instance, filterfn, return_values=False):
# def get_array_fields(cls, return_values=False):
# def get_metadata_fields(cls, return_values=False):
#   def __init__(self, same_dtype=True):
#   def __call__(self, cls):
#     def unflatten(aux, data):
# class StructOfArray:
# 
# Path: alphafold/model/geometry/utils.py
# def unstack(value: jnp.ndarray, axis: int = -1) -> List[jnp.ndarray]:


import dataclasses
import jax
import jax.numpy as jnp
import numpy as np
from typing import Union
from alphafold.model.geometry import struct_of_array
from alphafold.model.geometry import utils
# Copyright 2021 DeepMind Technologies Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Vec3Array Class."""

from __future__ import annotations


Float = Union[float, jnp.ndarray]

VERSION = '0.1'



# Path: alphafold/model/geometry/struct_of_array.py
# def get_item(instance, key):
# def get_shape(instance):
# def get_len(instance):
# def get_dtype(instance):
# def replace(instance, **kwargs):
# def post_init(instance):
# def flatten(instance):
# def make_metadata_class(cls):
# def get_fields(cls_or_instance, filterfn, return_values=False):
# def get_array_fields(cls, return_values=False):
# def get_metadata_fields(cls, return_values=False):
#   def __init__(self, same_dtype=True):
#   def __call__(self, cls):
#     def unflatten(aux, data):
# class StructOfArray:
# 
# Path: alphafold/model/geometry/utils.py
# def unstack(value: jnp.ndarray, axis: int = -1) -> List[jnp.ndarray]:


# Path: alphafold/model/geometry/vector.py
import dataclasses
import jax
import jax.numpy as jnp
import numpy as np
from typing import Union
from alphafold.model.geometry import struct_of_array
from alphafold.model.geometry import utils

# Copyright 2021 DeepMind Technologies Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Vec3Array Class."""

from __future__ import annotations


Float = Union[float, jnp.ndarray]

VERSION = '0.1'



@struct_of_array.StructOfArray(same_dtype=True)